]> git.mdlowis.com Git - proto/labwc.git/commitdiff
theme: remove titlebar.height option
authorJohan Malm <jgm323@gmail.com>
Sun, 29 Sep 2024 17:22:47 +0000 (18:22 +0100)
committerJohan Malm <jgm323@gmail.com>
Tue, 8 Oct 2024 19:04:05 +0000 (20:04 +0100)
This theme setting does not exist in Openbox spec and has just been an
additional 'knob' to tweak the height which is otherwise derived from the
sizes of the objects within it plus padding.

docs/labwc-theme.5.scd
docs/themerc
src/theme.c

index e1b7bcb73279868ccbfc4d9a16bb3f5b1d622aac..a7d4459e8a585731e19116296a071b4f2fe351d3 100644 (file)
@@ -60,11 +60,6 @@ labwc-config(5).
        in the window decorations.
        Default is 3.
 
-*titlebar.height*
-       Window title bar height.
-       Default equals the vertical font extents of the title plus 2x
-       padding.height.
-
 *menu.items.padding.x*
        Horizontal padding of menu text entries in pixels.
        Default is 7.
index 4906420707d661374d1ecaf57a6c77daf6565e80..d6706c78cc9941c845aa5b9c9cf53b9f7a9af385 100644 (file)
@@ -10,10 +10,6 @@ border.width: 1
 padding.width: 0
 padding.height: 3
 
-# The following options has no default, but fallbacks back to
-# font-height + 2x padding.height if not set.
-# titlebar.height:
-
 # window border
 window.active.border.color: #e1dedb
 window.inactive.border.color: #f6f5f4
index 2926b80bd75e3f0bc2fe6f31435caab50cd8aeea..eb8803bda96ff61570502ae54ee9fdfcad42646d 100644 (file)
@@ -715,10 +715,6 @@ entry(struct theme *theme, const char *key, const char *value)
                theme->padding_height = get_int_if_positive(
                        value, "padding.height");
        }
-       if (match_glob(key, "titlebar.height")) {
-               theme->title_height = get_int_if_positive(
-                       value, "titlebar.height");
-       }
        if (match_glob(key, "menu.items.padding.x")) {
                theme->menu_item_padding_x = get_int_if_positive(
                        value, "menu.items.padding.x");
@@ -1474,9 +1470,7 @@ static void
 post_processing(struct theme *theme)
 {
        int h = MAX(font_height(&rc.font_activewindow), font_height(&rc.font_inactivewindow));
-       if (theme->title_height < h) {
-               theme->title_height = h + 2 * theme->padding_height;
-       }
+       theme->title_height = h + 2 * theme->padding_height;
 
        theme->menu_item_height = font_height(&rc.font_menuitem)
                + 2 * theme->menu_item_padding_y;