Redo Themeing system
This commit is contained in:
parent
54f3338a3c
commit
ff728f9165
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -1,6 +1,6 @@
|
|||||||
pika-gnome-layouts (2.0-99pika3) kinetic; urgency=low
|
pika-gnome-layouts (2.0-99pika4) kinetic; urgency=low
|
||||||
|
|
||||||
* Fix Windows 11 layout
|
* Redo Themeing system
|
||||||
|
|
||||||
-- Ward Nakchbandi <hotrod.master@hotmail.com> Sat, 01 Oct 2022 14:50:00 +0200
|
-- Ward Nakchbandi <hotrod.master@hotmail.com> Sat, 01 Oct 2022 14:50:00 +0200
|
||||||
|
|
||||||
|
@ -1,27 +1,25 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
# Remove current libadwaita theme
|
||||||
rm -rfv $HOME/.config/gtk-4.0
|
rm -rfv $HOME/.config/gtk-4.0
|
||||||
THEME=$(dconf read /org/gnome/desktop/interface/gtk-theme | sed "s+'++" | sed "s+'++" | sed "s+-Dark++" | sed "s+-Light++" )
|
|
||||||
if echo $THEME | grep -i orchis
|
# Import Theme Settings From system dir
|
||||||
then
|
if [ -f /etc/pika_theme ]
|
||||||
if [[ $1 = dark ]]
|
then
|
||||||
then
|
. "/etc/pika_theme"
|
||||||
kvantummanager --set Orchis-dark
|
fi
|
||||||
cp -rfv /usr/share/themes/$THEME-Dark/gtk-4.0 $HOME/.config/
|
|
||||||
else
|
# Import Theme Settings From user dir
|
||||||
kvantummanager --set Orchis
|
if [ -f $HOME/.config/pika_theme ]
|
||||||
cp -rfv /usr/share/themes/$THEME-Light/gtk-4.0 $HOME/.config/
|
then
|
||||||
fi
|
. "$HOME/.config/pika_theme"
|
||||||
else
|
fi
|
||||||
if [ -f $HOME/.config/pika_theme ]
|
|
||||||
. "$HOME/.config/pika_theme"
|
if [[ $1 = dark ]]
|
||||||
then
|
then
|
||||||
if [[ $1 = dark ]]
|
kvantummanager --set $KVANTUM_THEME_DARK
|
||||||
then
|
cp -rfv $GTK_THEME_PATH_DARK/gtk-4.0 $HOME/.config/
|
||||||
kvantummanager --set $KVANTUM_THEME_DARK
|
else
|
||||||
cp -rfv $GTK_THEME_PATH_DARK/gtk-4.0 $HOME/.config/
|
kvantummanager --set $KVANTUM_THEME_LIGHT
|
||||||
else
|
cp -rfv $GTK_THEME_PATH_LIGHT/gtk-4.0 $HOME/.config/
|
||||||
kvantummanager --set $KVANTUM_THEME_LIGHT
|
|
||||||
cp -rfv $GTK_THEME_PATH_LIGHT/gtk-4.0 $HOME/.config/
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
Loading…
x
Reference in New Issue
Block a user