]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/config: let icon theme name default to theme
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 29 Jan 2025 11:25:41 +0000 (12:25 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 2 Feb 2025 15:05:37 +0000 (15:05 +0000)
docs/labwc-config.5.scd
src/config/rcxml.c

index 1c160a45f2ffab7c58404fe201b8fdb0429a717f..8742dd6aaec7be0caaa859308d0d883088fc86f9 100644 (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
index 0dfdc6048f6317b7a0e5773d62eed8bfc510ae8d..90fcfe152e05715f27fca687fbfd7cebcfde0a3e 100644 (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");