From 9da69a2c3a95f172f4fd776776e083a2b4c8864e Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Mon, 27 Mar 2023 00:38:54 +0300 Subject: [PATCH] Fix darkmode themeing --- pika-settings/debian/changelog | 6 +++++ pika-settings/debian/data/etc/pika_theme | 25 +++++++++++++++++++ .../debian/data/etc/skel/.config/pika_theme | 1 + .../schemas/90_pika-settings.gschema.override | 2 +- 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 pika-settings/debian/data/etc/pika_theme diff --git a/pika-settings/debian/changelog b/pika-settings/debian/changelog index 5e89fea..d96e0df 100644 --- a/pika-settings/debian/changelog +++ b/pika-settings/debian/changelog @@ -1,3 +1,9 @@ +pika-settings (3.0-99pika5) kinetic; urgency=low + + * Fix darkmode themeing + + -- Ward Nakchbandi Sat, 01 Oct 2022 14:50:00 +0200 + pika-settings (3.0-99pika4) kinetic; urgency=low * Fix arcmenu diff --git a/pika-settings/debian/data/etc/pika_theme b/pika-settings/debian/data/etc/pika_theme new file mode 100644 index 0000000..dae9587 --- /dev/null +++ b/pika-settings/debian/data/etc/pika_theme @@ -0,0 +1,25 @@ +#! /bin/bash +### This file is used to define kvantum and gtk4/libadwaita Themes for GNOME +## Set kvantum Themes + +# Set the kvantum theme gnome uses when in dark mode +# Example: KVANTUM_THEME_DARK=Orchis-dark + +KVANTUM_THEME_DARK=Orchis-dark + +# Set the kvantum theme gnome uses when in light mode +# Example: KVANTUM_THEME_LIGHT=Orchis + +KVANTUM_THEME_LIGHT=Orchis + +## Set GTK4/libadwaita Themes (Use PATHs) + +# Set the GTK4/libadwaita theme gnome uses when in dark mode +# Example: GTK_THEME_PATH_DARK=/usr/share/Orchis-Dark + +GTK_THEME_PATH_DARK=/usr/share/themes/"$(dconf read /org/gnome/desktop/interface/gtk-theme | sed "s+'++" | sed "s+'++" | sed "s+-Dark++" | sed "s+-Light++")"-Dark + +# Set the GTK4/libadwaita theme gnome uses when in lightmode +# Example: GTK_THEME_PATH_LIGHT=/usr/share/Orchis-Light + +GTK_THEME_PATH_LIGHT=/usr/share/themes/"$(dconf read /org/gnome/desktop/interface/gtk-theme | sed "s+'++" | sed "s+'++" | sed "s+-Dark++" | sed "s+-Light++")"-Light diff --git a/pika-settings/debian/data/etc/skel/.config/pika_theme b/pika-settings/debian/data/etc/skel/.config/pika_theme index bb24f08..4942947 100644 --- a/pika-settings/debian/data/etc/skel/.config/pika_theme +++ b/pika-settings/debian/data/etc/skel/.config/pika_theme @@ -1,3 +1,4 @@ +#! /bin/bash ### This file is used to define kvantum and gtk4/libadwaita Themes for GNOME ## Set kvantum Themes diff --git a/pika-settings/debian/data/usr/share/glib-2.0/schemas/90_pika-settings.gschema.override b/pika-settings/debian/data/usr/share/glib-2.0/schemas/90_pika-settings.gschema.override index fd27789..ded1f43 100644 --- a/pika-settings/debian/data/usr/share/glib-2.0/schemas/90_pika-settings.gschema.override +++ b/pika-settings/debian/data/usr/share/glib-2.0/schemas/90_pika-settings.gschema.override @@ -57,7 +57,7 @@ night = 'Orchis-Yellow-Dark' [org.gnome.shell.extensions.nightthemeswitcher.commands] enabled = true sunrise = '/usr/lib/pika/gnome-layouts/libadwaita.sh' -sunset = '/usr/lib/pika/gnome-layouts/libadwaita.sh' +sunset = '/usr/lib/pika/gnome-layouts/libadwaita.sh dark' [org.gnome.shell.extensions.arcmenu] custom-menu-button-icon = '/usr/share/pixmaps/pika-mono-logo.png'