From fb5fd8c81988ae3886de60085bd929bbe844420a Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 1 Sep 2025 13:56:55 +0200 Subject: [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 --- searxng_extra/update/update_pygments.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'searxng_extra') diff --git a/searxng_extra/update/update_pygments.py b/searxng_extra/update/update_pygments.py index 3c01bd6da..1d3a127cf 100755 --- a/searxng_extra/update/update_pygments.py +++ b/searxng_extra/update/update_pygments.py @@ -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')) -- cgit v1.2.3