summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/theme.c15
-rw-r--r--render/theme.h4
2 files changed, 16 insertions, 3 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"),
diff --git a/render/theme.h b/render/theme.h
index 64c3abcf..e02a69e2 100644
--- a/render/theme.h
+++ b/render/theme.h
@@ -41,8 +41,6 @@ struct _RrTheme {
gint paddingy;
gint handle_height;
gint fbwidth; /*!< frame border width */
- gint tswidth; /*!< title separator width - between the titlebar and the
- client */
gint mbwidth; /*!< menu border width */
gint cbwidthx;
gint cbwidthy;
@@ -62,6 +60,8 @@ struct _RrTheme {
RrColor *menu_border_color;
RrColor *frame_focused_border_color;
RrColor *frame_unfocused_border_color;
+ RrColor *title_separator_focused_color;
+ RrColor *title_separator_unfocused_color;
RrColor *cb_focused_color;
RrColor *cb_unfocused_color;
RrColor *title_focused_color;