From 060b59f7ed715b69a7039117571ba44c14acbaa7 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Wed, 29 Jan 2025 12:25:41 +0100 Subject: [PATCH] src/config: let icon theme name default to theme --- docs/labwc-config.5.scd | 2 +- src/config/rcxml.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index 1c160a45..8742dd6a 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -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 icon theme to use. It is not set by default. + The name of the icon theme to use. Inherits ** if not set. ** The name of the icon to use as a fallback when the application icon diff --git a/src/config/rcxml.c b/src/config/rcxml.c index 0dfdc604..90fcfe15 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -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");