theme: tidy up documentation

This commit is contained in:
Johan Malm 2024-10-13 20:43:18 +01:00 committed by Hiroaki Yamamoto
parent 7cc79edd62
commit 1934d0bf09
2 changed files with 7 additions and 0 deletions

View file

@ -33,6 +33,7 @@ window.label.text.justify: center
# window button width and spacing # window button width and spacing
window.button.width: 26 window.button.width: 26
window.button.height: 26
window.button.spacing: 0 window.button.spacing: 0
# window button hover effect # window button hover effect

View file

@ -701,6 +701,12 @@ entry(struct theme *theme, const char *key, const char *value)
theme->window_titlebar_padding_height = get_int_if_positive( theme->window_titlebar_padding_height = get_int_if_positive(
value, "window.titlebar.padding.height"); value, "window.titlebar.padding.height");
} }
if (match_glob(key, "titlebar.height")) {
wlr_log(WLR_ERROR, "titlebar.height is no longer supported");
}
if (match_glob(key, "padding.height")) {
wlr_log(WLR_ERROR, "padding.height is no longer supported");
}
if (match_glob(key, "menu.items.padding.x")) { if (match_glob(key, "menu.items.padding.x")) {
theme->menu_item_padding_x = get_int_if_positive( theme->menu_item_padding_x = get_int_if_positive(
value, "menu.items.padding.x"); value, "menu.items.padding.x");