~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to src/calibre/gui2/tweak_book/editor/themes.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-02-27 07:48:06 UTC
  • mto: This revision was merged to the branch mainline in revision 74.
  • Revision ID: package-import@ubuntu.com-20140227074806-64wdebb3ptosxhhx
Tags: upstream-1.25.0+dfsg
ImportĀ upstreamĀ versionĀ 1.25.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    CursorColumn bg={base02}
36
36
    ColorColumn  bg={base02}
37
37
    HighlightRegion bg={base00}
38
 
    MatchParen   fg={red} bg={base01} bold
 
38
    MatchParen   bg={base02} fg={magenta}
39
39
    Pmenu        fg={base0} bg={base02}
40
40
    PmenuSel     fg={base01} bg={base2}
41
41
 
76
76
    CursorColumn bg={cursor_loc}
77
77
    ColorColumn  bg={cursor_loc}
78
78
    HighlightRegion bg=3d3d3d
79
 
    MatchParen   fg=f6f3e8 bg=857b6f bold
 
79
    MatchParen   bg=444444
80
80
    Pmenu        fg=f6f3e8 bg=444444
81
81
    PmenuSel     fg=yellow bg={identifier}
82
82
    Tooltip      fg=black bg=ffffed
121
121
    CursorColumn bg={cursor_loc}
122
122
    ColorColumn  bg={cursor_loc}
123
123
    HighlightRegion bg=E3F988
124
 
    MatchParen   fg=white bg=80a090 bold
 
124
    MatchParen   bg=cfcfcf
125
125
    Pmenu        fg=white bg=808080
126
126
    PmenuSel     fg=white bg=808080
127
127
    Tooltip      fg=black bg=ffffed
245
245
    except (KeyError, AttributeError):
246
246
        return getattr(THEMES[default_theme()][name], attr).color()
247
247
 
 
248
def theme_format(theme, name):
 
249
    try:
 
250
        h = theme[name]
 
251
    except KeyError:
 
252
        h = THEMES[default_theme()][name]
 
253
    return highlight_to_char_format(h)