src/config: let icon theme name default to theme

This commit is contained in:
Consolatis 2025-01-29 12:25:41 +01:00
parent a41dbc8614
commit 51af3a5d2d
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. The name of the Openbox theme to use. It is not set by default.
*<theme><icon>* *<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>* *<theme><fallbackAppIcon>*
The name of the icon to use as a fallback when the application icon 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"); 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 (!rc.title_layout_loaded) {
#if HAVE_LIBSFDO #if HAVE_LIBSFDO
fill_title_layout("icon:iconify,max,close"); fill_title_layout("icon:iconify,max,close");