diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-02 21:19:49 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-02 21:19:49 +0000 |
| commit | 439d2c62fa83e4a233ea44f3eb5d706c6edfc3df (patch) | |
| tree | 446bf17fcee7e18c6feaedcb755eeb3a233185cc /render/theme.c | |
| parent | 25f215444b3c8e7b186b9c3892a9a4f659e79998 (diff) | |
remove the title separator width thing.
add a separate color for the title separator
Diffstat (limited to 'render/theme.c')
| -rw-r--r-- | render/theme.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/render/theme.c b/render/theme.c index cdddba16..3e0f9d13 100644 --- a/render/theme.c +++ b/render/theme.c @@ -207,7 +207,6 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name, if (!FIND(int, L("dimensions","window","border"), &theme->fbwidth, 0, 100)) theme->fbwidth = 1; - theme->tswidth = theme->fbwidth; /* menu border width inherits from frame border width */ if (!FIND(int, L("dimensions","menu","border"), @@ -222,6 +221,13 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name, if (!FIND(color, L("window","active","border"), &theme->frame_focused_border_color, NULL)) theme->frame_focused_border_color = RrColorNew(inst, 0, 0, 0); + /* title separator focused color inherits from focused boder color */ + if (!FIND(color, L("window","active","titleseparator"), + &theme->title_separator_focused_color, NULL)) + theme->title_separator_focused_color = + RrColorNew(inst, theme->frame_focused_border_color->r, + theme->frame_focused_border_color->g, + theme->frame_focused_border_color->b); /* frame unfocused border color inherits from frame focused border color */ if (!FIND(color, L("window","inactive","border"), &theme->frame_unfocused_border_color, NULL)) @@ -230,6 +236,13 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name, theme->frame_focused_border_color->r, theme->frame_focused_border_color->g, theme->frame_focused_border_color->b); + /* title separator unfocused color inherits from unfocused boder color */ + if (!FIND(color, L("window","inactive","titleseparator"), + &theme->title_separator_unfocused_color, NULL)) + theme->title_separator_unfocused_color = + RrColorNew(inst, theme->frame_unfocused_border_color->r, + theme->frame_unfocused_border_color->g, + theme->frame_unfocused_border_color->b); /* menu border color inherits from frame focused border color */ if (!FIND(color, L("menu","border"), |
