rendered paste bodyIndex: scripts/theme.py
===================================================================
RCS file: /cvsroot/urk/urk/scripts/theme.py,v
retrieving revision 1.30
diff -u -p -u -p -r1.30 theme.py
--- scripts/theme.py 28 Apr 2007 21:47:44 -0000 1.30
+++ scripts/theme.py 29 Apr 2007 12:26:18 -0000
@@ -6,8 +6,15 @@ import chaninfo
import events
from conf import conf
+textareas = {}
if 'font' in conf:
- textareas = {'font': conf['font']}
+ textareas['font'] = conf['font']
+if 'bg_color' in conf:
+ textareas['bg'] = conf['bg_color']
+if 'fg_color' in conf:
+ textareas['fg'] = conf['fg_color']
+
+if len(textareas) > 0:
widgets.set_style("view", textareas)
widgets.set_style("nicklist", textareas)