mirror of
https://github.com/searxng/searxng.git
synced 2025-09-05 01:38:33 +02:00
[mod] simple client: pygments.less - switched dark theme to monokai
Compared to ``lightbulb`` theme we used in the past for the dark theme, the ``monokai`` has a better contrast [1]. BTW, the result list of SearXNG should not act as a code-checker: The border & color of class ``.err`` (used for syntax errors) has been removed / code snippets are often not well formed nor valid code and the rendering of such code fragments as errors obscures the view on the code snippet. [1] https://pygments.org/styles/ Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
9ac9c8c4f5
commit
fb5fd8c819
3 changed files with 92 additions and 89 deletions
|
@ -47,9 +47,6 @@ END_DARK_THEME = """
|
|||
|
||||
|
||||
class Formatter(HtmlFormatter): # pylint: disable=missing-class-docstring
|
||||
@property
|
||||
def _pre_style(self):
|
||||
return 'line-height: 100%;'
|
||||
|
||||
def get_style_lines(self, arg=None):
|
||||
style_lines = []
|
||||
|
@ -73,4 +70,4 @@ def generat_css(light_style, dark_style) -> str:
|
|||
if __name__ == '__main__':
|
||||
print("update: %s" % LESS_FILE)
|
||||
with LESS_FILE.open('w', encoding='utf8') as f:
|
||||
f.write(generat_css('default', 'lightbulb'))
|
||||
f.write(generat_css('default', 'monokai'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue