src/config: let icon theme name default to theme

This commit is contained in:
Consolatis 2025-01-29 12:25:41 +01:00 committed by Johan Malm
parent 1e2c709d6b
commit 060b59f7ed
2 changed files with 5 additions and 1 deletions

View file

@ -481,7 +481,7 @@ extending outward from the snapped edge.
The name of the Openbox theme to use. It is not set by default.
*<theme><icon>*
The name of the icon theme to use. It is not set by default.
The name of the icon theme to use. Inherits *<theme><name>* if not set.
*<theme><fallbackAppIcon>*
The name of the icon to use as a fallback when the application icon

View file

@ -1683,6 +1683,10 @@ post_processing(void)
rc.fallback_app_icon_name = xstrdup("labwc");
}
if (!rc.icon_theme_name && rc.theme_name) {
rc.icon_theme_name = xstrdup(rc.theme_name);
}
if (!rc.title_layout_loaded) {
#if HAVE_LIBSFDO
fill_title_layout("icon:iconify,max,close");