From 0c25bb466cddaac50dcc8835f8bd8a959fce18b6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 30 Oct 2013 09:40:21 +0530 Subject: [PATCH] Keep only useful entries in the color theme --- src/calibre/gui2/tweak_book/editor/themes.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/calibre/gui2/tweak_book/editor/themes.py b/src/calibre/gui2/tweak_book/editor/themes.py index f068be64de..74ba428129 100644 --- a/src/calibre/gui2/tweak_book/editor/themes.py +++ b/src/calibre/gui2/tweak_book/editor/themes.py @@ -27,15 +27,9 @@ THEMES = { Cursor bg=656565 Normal fg=f6f3e8 bg=242424 - NonText fg=808080 bg=303030 LineNr fg=857b6f bg=000000 - StatusLine fg=f6f3e8 bg=444444 italic - StatusLineNC fg=857b6f bg=444444 - VertSplit fg=444444 bg=444444 - Folded bg=384048 fg=a0a8b0 - Title fg=f6f3e8 bold + LineNrC fg=yellow Visual fg=f6f3e8 bg=444444 - SpecialKey fg=808080 bg=343434 Comment fg=99968b Todo fg=8f8f8f @@ -75,6 +69,7 @@ def read_theme(raw): continue bold = italic = False fg = bg = name = underline = underline_color = None + line = line.partition('#')[0] for i, token in enumerate(line.split()): if i == 0: name = token