summaryrefslogtreecommitdiff
path: root/searxng_extra/update
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2025-09-01 13:56:55 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2025-09-01 14:51:15 +0200
commitfb5fd8c81988ae3886de60085bd929bbe844420a (patch)
tree132422cedcf43f8ec62cdf13c38ebbf27afb5f66 /searxng_extra/update
parent9ac9c8c4f50acd801bfc39107c94d17ee9bee72b (diff)
[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>
Diffstat (limited to 'searxng_extra/update')
-rwxr-xr-xsearxng_extra/update/update_pygments.py5
1 files changed, 1 insertions, 4 deletions
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'))