1
0
mirror of https://github.com/gryf/wmdocklib.git synced 2025-12-19 12:28:10 +01:00

1577060: colour choice at command line is lost

palette is now built using the options passed at command line.
This commit is contained in:
mfrasca
2006-10-14 07:51:13 +00:00
parent 0390c834a7
commit c729720b01

View File

@@ -397,15 +397,18 @@ def main():
for i in clConfig.iteritems(): for i in clConfig.iteritems():
config[i[0]] = i[1] config[i[0]] = i[1]
palette = {}
palette[0] = clConfig.get('background', 'black')
palette[2] = clConfig.get('textcolor', 'cyan3')
palette[7] = clConfig.get('barfgcolor', 'cyan')
palette[8] = clConfig.get('barbgcolor', 'cyan4')
palette[5] = clConfig.get('activitycolor', 'cyan2')
global char_width, char_height global char_width, char_height
char_width, char_height = wmdocklib.initPixmap(background, char_width, char_height = wmdocklib.initPixmap(background,
font_name='6x8', font_name='6x8',
palette={2:'cyan4', palette=palette,
3:'cyan3', bg=0, fg=2)
7:'cyan',
8:'cyan4',
0:'black'},
bg=0, fg=3)
pathsToMonitor = [] pathsToMonitor = []
for i in range(1,1000): for i in range(1,1000):