mirror of
https://github.com/labwc/labwc.git
synced 2026-04-13 08:21:15 -04:00
[dirty] more debug
This commit is contained in:
parent
3683106c28
commit
85768e8965
1 changed files with 4 additions and 0 deletions
|
|
@ -524,6 +524,7 @@ entry(struct theme *theme, const char *key, const char *value)
|
||||||
}
|
}
|
||||||
if (match_glob(key, "titlebar.height")) {
|
if (match_glob(key, "titlebar.height")) {
|
||||||
theme->title_height = atoi(value);
|
theme->title_height = atoi(value);
|
||||||
|
wlr_log(WLR_ERROR, "updated title height to %d", theme->title_height);
|
||||||
}
|
}
|
||||||
if (match_glob(key, "menu.items.padding.x")) {
|
if (match_glob(key, "menu.items.padding.x")) {
|
||||||
theme->menu_item_padding_x = atoi(value);
|
theme->menu_item_padding_x = atoi(value);
|
||||||
|
|
@ -957,6 +958,9 @@ static void
|
||||||
post_processing(struct theme *theme)
|
post_processing(struct theme *theme)
|
||||||
{
|
{
|
||||||
int h = MAX(font_height(&rc.font_activewindow), font_height(&rc.font_inactivewindow));
|
int h = MAX(font_height(&rc.font_activewindow), font_height(&rc.font_inactivewindow));
|
||||||
|
wlr_log(WLR_ERROR, "got font height active: %d", font_height(&rc.font_activewindow));
|
||||||
|
wlr_log(WLR_ERROR, "got font height inactive: %d", font_height(&rc.font_inactivewindow));
|
||||||
|
wlr_log(WLR_ERROR, "got max font height: %d", h);
|
||||||
if (theme->title_height < h) {
|
if (theme->title_height < h) {
|
||||||
wlr_log(WLR_ERROR, "adjusting title height to %d + 2 * padding_height (%d)",
|
wlr_log(WLR_ERROR, "adjusting title height to %d + 2 * padding_height (%d)",
|
||||||
h, theme->padding_height);
|
h, theme->padding_height);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue