From 70ddc4fea03113c2e4be8e33f97119cbbe89d9f2 Mon Sep 17 00:00:00 2001 From: Nyx <144965845+nnyyxxxx@users.noreply.github.com> Date: Sun, 22 Sep 2024 19:32:59 -0400 Subject: [PATCH] fix global theming (#630) * fix global theming * rewrite fix * fix issues with kvantum --------- Co-authored-by: nnyyxxxx --- core/tabs/system-setup/global-theme.sh | 30 ++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) mode change 100644 => 100755 core/tabs/system-setup/global-theme.sh diff --git a/core/tabs/system-setup/global-theme.sh b/core/tabs/system-setup/global-theme.sh old mode 100644 new mode 100755 index 934ccd906..07f9d4b22 --- a/core/tabs/system-setup/global-theme.sh +++ b/core/tabs/system-setup/global-theme.sh @@ -24,6 +24,26 @@ install_theme_tools() { esac } +applyTheming() { + printf "%b\n" "${YELLOW}Applying global theming...${RC}" + case "$XDG_CURRENT_DESKTOP" in + KDE) + lookandfeeltool -a org.kde.breezedark.desktop + successOutput + exit 0 + ;; + GNOME) + gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" + gsettings set org.gnome.desktop.interface icon-theme "Adwaita" + successOutput + exit 0 + ;; + *) + return + ;; + esac +} + configure_qt6ct() { printf "%b\n" "${YELLOW}Configuring qt6ct...${RC}" mkdir -p "$HOME/.config/qt6ct" @@ -46,17 +66,23 @@ EOF } configure_kvantum() { - printf "%b\n" "${YELLOW}Configuring Kvantum...${RC}\n" + printf "%b\n" "${YELLOW}Configuring Kvantum...${RC}" mkdir -p "$HOME/.config/Kvantum" cat < "$HOME/.config/Kvantum/kvantum.kvconfig" [General] -theme=Breeze +theme=KvArcDark EOF printf "%b\n" "${GREEN}Kvantum configured successfully.${RC}" } +successOutput() { + printf "%b\n" "${GREEN}Global theming applied successfully.${RC}" +} + checkEnv checkEscalationTool +applyTheming install_theme_tools configure_qt6ct configure_kvantum +successOutput \ No newline at end of file