diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-16 23:45:25 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-16 23:45:25 +0000 |
| commit | bb3e654edef54efd6d0c24cbf6014eb4f9468037 (patch) | |
| tree | 855564a7a1ce86aeca25f010d00319d3c652f69c /engines/openbox/theme.c | |
| parent | 9b1943f1feff3f1ed50f9a4039925a9956ada63c (diff) | |
will draw fonts when stop segging
Diffstat (limited to 'engines/openbox/theme.c')
| -rw-r--r-- | engines/openbox/theme.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/engines/openbox/theme.c b/engines/openbox/theme.c index 2c96224f..b5e4b982 100644 --- a/engines/openbox/theme.c +++ b/engines/openbox/theme.c @@ -250,8 +250,12 @@ gboolean load() } } - /* XXX load the font, not from the theme file tho, its in themerc_font */ - s_font_height = 10; + /* load the font, not from the theme file tho, its in themerc_font */ + s_winfont_shadow = 1; /* XXX read from themrc */ + s_winfont_shadow_offset = 2; /* XXX read from themerc */ + s_winfont = font_open(themerc_font); + s_winfont_height = font_height(s_winfont, s_winfont_shadow, + s_winfont_shadow_offset); if (!read_int(db, "handleWidth", &s_handle_height) || s_handle_height < 0 || s_handle_height > 100) s_handle_height = 6; @@ -268,6 +272,12 @@ gboolean load() s_cb_focused_color = color_new(0xff, 0xff, 0xff); if (!read_color(db, "window.frame.unfocusColor", &s_cb_unfocused_color)) s_cb_unfocused_color = color_new(0xff, 0xff, 0xff); + if (!read_color(db, "window.label.focus.textColor", + &s_title_focused_color)) + s_title_focused_color = color_new(0xff, 0xff, 0xff); + if (!read_color(db, "window.label.unfocus.textColor", + &s_title_unfocused_color)) + s_title_unfocused_color = color_new(0xff, 0xff, 0xff); if (!read_appearance(db, "window.title.focus", a_focused_title)) set_default_appearance(a_focused_title); @@ -318,6 +328,7 @@ gboolean load() a_icon->surface.data.planar.grad = Background_ParentRelative; + /* XXX load the button masks */ XrmDestroyDatabase(db); |
