From 00cbf00bb73809b3738f8a679f179c8a941ae78e Mon Sep 17 00:00:00 2001 From: Dolphin Oracle Date: Sun, 14 Jul 2024 19:37:16 -0400 Subject: [PATCH] force lower case for dark check. (redo) --- debian/changelog | 4 ++-- defaultlook.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 867edba2..e44327c3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,8 @@ mx-tweak (24.07.01mx23) mx; urgency=medium - * force lowercase on dark theme name check + * revise dark check to be case insensitive - -- Dolphin Oracle Sun, 14 Jul 2024 16:59:38 -0400 + -- Dolphin Oracle Sun, 14 Jul 2024 18:54:58 -0400 mx-tweak (24.04.01mx23) mx; urgency=medium diff --git a/defaultlook.cpp b/defaultlook.cpp index 87e44304..a4284bf1 100644 --- a/defaultlook.cpp +++ b/defaultlook.cpp @@ -3683,7 +3683,7 @@ void defaultlook::settheme(const QString &type, const QString &theme, const QStr if (runCmd("grep gtk-theme-name $HOME/.gtkrc-2.0").exitCode == 0) { cmd = "sed -i 's/gtk-theme-name=.*/gtk-theme-name=\"" + theme + "\"/' $HOME/.gtkrc-2.0"; } else { - cmd = "echo gtk-theme-name=\"" + theme + "\" >> $HOME/.gtkrc-2.0";tolower + cmd = "echo gtk-theme-name=\"" + theme + "\" >> $HOME/.gtkrc-2.0"; } system(cmd.toUtf8());