From 19eb3398ea60aa5afebaea88e2ba26511718be44 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 16 Sep 2022 01:29:49 +0100 Subject: [PATCH] Handle glue-the-gian and msm light theme too Signed-off-by: falkTX --- plugins/GlueTheGiant | 2 +- plugins/MSM | 2 +- plugins/Makefile | 3 +-- plugins/plugins.cpp | 4 ++++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/GlueTheGiant b/plugins/GlueTheGiant index 2c535bc..5f05d62 160000 --- a/plugins/GlueTheGiant +++ b/plugins/GlueTheGiant @@ -1 +1 @@ -Subproject commit 2c535bc38d61fd4d776aad7307c1dfbbed062b66 +Subproject commit 5f05d62ddc2773098daf1044eb6698581acd4eb6 diff --git a/plugins/MSM b/plugins/MSM index 2ebac75..3315c11 160000 --- a/plugins/MSM +++ b/plugins/MSM @@ -1 +1 @@ -Subproject commit 2ebac7567be4dbb00128b5d7aaccfdf4aac26e81 +Subproject commit 3315c11e8506c28cece304fe4b772383a2820f86 diff --git a/plugins/Makefile b/plugins/Makefile index 639061f..b80bc7a 100644 --- a/plugins/Makefile +++ b/plugins/Makefile @@ -1906,8 +1906,7 @@ $(BUILD_DIR)/MSM/%.cpp.o: MSM/%.cpp @echo "Compiling $<" $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \ $(foreach m,$(MSM_CUSTOM),$(call custom_module_names,$(m),MSM)) \ - -DpluginInstance=pluginInstance__MSM \ - -DDARKTHEME + -DpluginInstance=pluginInstance__MSM $(BUILD_DIR)/myth-modules/%.cpp.o: myth-modules/%.cpp -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)" diff --git a/plugins/plugins.cpp b/plugins/plugins.cpp index dc7220c..dab01bd 100644 --- a/plugins/plugins.cpp +++ b/plugins/plugins.cpp @@ -2942,6 +2942,10 @@ void updateStaticPluginsDarkMode() { panelTheme = darkMode ? 1 : 0; } + // glue the giant + { + gtg_default_theme = darkMode ? 1 : 0; + } #endif }