]> git.mdlowis.com Git - proto/labwc.git/commitdiff
theme: handle border.color for backward compatibility
authorJohan Malm <jgm323@gmail.com>
Fri, 24 Sep 2021 20:26:31 +0000 (21:26 +0100)
committerJohan Malm <jgm323@gmail.com>
Fri, 24 Sep 2021 20:26:31 +0000 (21:26 +0100)
docs/labwc-theme.5.scd
src/theme.c

index aa832f9e236bf74a50171be7fac97ea330963c86..8e71d8e974df73a1c30251d36bf905a797621347 100644 (file)
@@ -70,6 +70,10 @@ elements are not listed here, but are supported.
 *menu.items.active.text.color*
        Text color of active menu item
 
+*border.color*
+       Set all border colors. This is obsolete, but supported for backward
+       compatibility as some themes still contain it.
+
 # BUTTONS
 
 The images used for the titlebar buttons are 1-bit xbm (X Bitmaps). These are
index 62c813fa3af17496c1fe6faf1b3238dfd306dae3..88a62d481d2b9f4408862479c3c36001cc4c5248 100644 (file)
@@ -137,6 +137,11 @@ entry(struct theme *theme, const char *key, const char *value)
        if (match(key, "window.inactive.border.color")) {
                parse_hexstr(value, theme->window_inactive_border_color);
        }
+       /* border.color is obsolete, but handled for backward compatibility */
+       if (match(key, "border.color")) {
+               parse_hexstr(value, theme->window_active_border_color);
+               parse_hexstr(value, theme->window_inactive_border_color);
+       }
 
        if (match(key, "window.active.title.bg.color")) {
                parse_hexstr(value, theme->window_active_title_bg_color);