From bd272698508dd511266bc6a38d2f04b4b6e3d788 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 28 Mar 2007 03:51:27 +0000 Subject: [PATCH] more updates for toggled states. also updating the theme files. --- render/theme.c | 16 ++++++++-------- themes/Mikachu/openbox-3/themerc.xml | 8 ++++---- themes/Natura/openbox-3/themerc.xml | 8 ++++---- themes/artwiz-boxed/openbox-3/themerc.xml | 8 ++++---- themes/bear2/openbox-3/themerc.xml | 8 ++++---- themes/orang/openbox-3/themerc.xml | 8 ++++---- tools/themetoxml/themetoxml.c | 4 ++-- 7 files changed, 30 insertions(+), 30 deletions(-) diff --git a/render/theme.c b/render/theme.c index 933114e..695b7e0 100644 --- a/render/theme.c +++ b/render/theme.c @@ -304,17 +304,17 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, &theme->titlebut_toggled_hover_focused_color, NULL)) theme->titlebut_toggled_hover_focused_color = RrColorNew(inst, - theme->titlebut_focused_unpressed_color->r, - theme->titlebut_focused_unpressed_color->g, - theme->titlebut_focused_unpressed_color->b); + theme->titlebut_toggled_focused_unpressed_color->r, + theme->titlebut_toggled_focused_unpressed_color->g, + theme->titlebut_toggled_focused_unpressed_color->b); if (!FIND(color, L("window","inactive","buttons","toggled-hover","image"), &theme->titlebut_toggled_hover_unfocused_color, NULL)) theme->titlebut_toggled_hover_unfocused_color = RrColorNew(inst, - theme->titlebut_unfocused_unpressed_color->r, - theme->titlebut_unfocused_unpressed_color->g, - theme->titlebut_unfocused_unpressed_color->b); + theme->titlebut_toggled_unfocused_unpressed_color->r, + theme->titlebut_toggled_unfocused_unpressed_color->g, + theme->titlebut_toggled_unfocused_unpressed_color->b); if (!FIND(color, L("menu","title","text","primary"), &theme->menu_title_color, NULL)) theme->menu_title_color = RrColorNew(inst, 0, 0, 0); @@ -650,14 +650,14 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, { RrAppearanceFree(theme->a_toggled_hover_focused_max); theme->a_toggled_hover_focused_max = - RrAppearanceCopy(theme->a_focused_unpressed_max); + RrAppearanceCopy(theme->a_toggled_focused_unpressed_max); } if (!FIND(appearance, L("window","inactive","buttons","toggled-hover"), theme->a_toggled_hover_unfocused_max, TRUE)) { RrAppearanceFree(theme->a_toggled_hover_unfocused_max); theme->a_toggled_hover_unfocused_max = - RrAppearanceCopy(theme->a_unfocused_unpressed_max); + RrAppearanceCopy(theme->a_toggled_unfocused_unpressed_max); } theme->a_disabled_focused_close = diff --git a/themes/Mikachu/openbox-3/themerc.xml b/themes/Mikachu/openbox-3/themerc.xml index 1da7484..515015c 100644 --- a/themes/Mikachu/openbox-3/themerc.xml +++ b/themes/Mikachu/openbox-3/themerc.xml @@ -51,13 +51,13 @@ - + - + @@ -122,13 +122,13 @@ - + - + diff --git a/themes/Natura/openbox-3/themerc.xml b/themes/Natura/openbox-3/themerc.xml index d48a55f..5c12641 100644 --- a/themes/Natura/openbox-3/themerc.xml +++ b/themes/Natura/openbox-3/themerc.xml @@ -50,11 +50,11 @@ - + - + @@ -111,12 +111,12 @@ - + - + diff --git a/themes/artwiz-boxed/openbox-3/themerc.xml b/themes/artwiz-boxed/openbox-3/themerc.xml index 104f7a2..9c360b6 100644 --- a/themes/artwiz-boxed/openbox-3/themerc.xml +++ b/themes/artwiz-boxed/openbox-3/themerc.xml @@ -33,12 +33,12 @@ - + - + @@ -90,12 +90,12 @@ - + - + diff --git a/themes/bear2/openbox-3/themerc.xml b/themes/bear2/openbox-3/themerc.xml index 39d4bab..bda587d 100644 --- a/themes/bear2/openbox-3/themerc.xml +++ b/themes/bear2/openbox-3/themerc.xml @@ -42,10 +42,10 @@ - + - + @@ -91,10 +91,10 @@ - + - + diff --git a/themes/orang/openbox-3/themerc.xml b/themes/orang/openbox-3/themerc.xml index 4b25b36..84ded30 100644 --- a/themes/orang/openbox-3/themerc.xml +++ b/themes/orang/openbox-3/themerc.xml @@ -41,10 +41,10 @@ - + - + @@ -82,9 +82,9 @@ - + - + diff --git a/tools/themetoxml/themetoxml.c b/tools/themetoxml/themetoxml.c index a75cf19..e6f947b 100644 --- a/tools/themetoxml/themetoxml.c +++ b/tools/themetoxml/themetoxml.c @@ -451,9 +451,9 @@ int main(int argc, char **argv) APPEARANCE4("window.inactive.button.pressed.bg", "window", "inactive", "buttons", "pressed"); APPEARANCE4("window.active.button.toggled.bg", - "window", "active", "buttons", "toggled"); + "window", "active", "buttons", "toggled-unpressed"); APPEARANCE4("window.inactive.button.toggled.bg", - "window", "inactive", "buttons", "toggled"); + "window", "inactive", "buttons", "toggled-unpressed"); APPEARANCE4("window.active.button.unpressed.bg", "window", "active", "buttons", "unpressed"); APPEARANCE4("window.inactive.button.unpressed.bg", -- 1.9.1