mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
theme: remove titlebar.height option
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.
This commit is contained in:
parent
0aa4cfe32d
commit
2884f77b30
3 changed files with 1 additions and 16 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue