Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

qtlib: take color definitions from thg-color

The color extension gets aggravated if you use effect names it does not know
about; so if you want TortoiseHg to use a color different from that defined by
the color extension, but the define in [thg-color]. It will override any
definition found in [color].

For example, the default log.changeset effect is yellow, which looks quite awful
in a GUI window with a white background. So I specify:

[thg-color]
log.changeset = brown

We may want to ship some default thg-color defines in our site-wide ini file.

Changeset 8a2e965d918d

Parent fa305d406a78

by Steve Borho

Changes to one file · Browse files at 8a2e965d918d Showing diff from parent fa305d406a78 Diff from another changeset...

 
55
56
57
 
 
 
 
 
 
58
59
60
 
55
56
57
58
59
60
61
62
63
64
65
66
@@ -55,6 +55,12 @@
  cfgeffects = ui.configlist('color', status)   _styles[status] = ' '.join(cfgeffects)   + for status, cfgeffects in ui.configitems('thg-color'): + if '.' not in status: + continue + cfgeffects = ui.configlist('thg-color', status) + _styles[status] = ' '.join(cfgeffects) +  # See http://doc.trolltech.com/4.2/richtext-html-subset.html  # and http://www.w3.org/TR/SVG/types.html#ColorKeywords