[feature] check for GTK3/qt6c settings files (in progress 2)
This commit is contained in:
parent
334fa18594
commit
7d29b4e766
1 changed files with 6 additions and 2 deletions
|
|
@ -128,12 +128,16 @@ check_config() {
|
|||
fi
|
||||
|
||||
}
|
||||
_check_for_toolkit_settings_files() {
|
||||
_reset_settings() {
|
||||
## GTK3
|
||||
gtk3_settings_file="$XDG_CONFIG_HOME/gtk-3.0/settings.ini"
|
||||
gtk4_settings_file="$XDG_CONFIG_HOME/gtk-4.0/settings.ini"
|
||||
qt6ct_settings_file="$XDG_CONFIG_HOME/qt6ct/qt6ct.conf"
|
||||
|
||||
gsettings reset org.gnome.desktop.interface color-scheme
|
||||
gsettings reset org.gnome.desktop.interface gtk-theme
|
||||
gsettings reset org.gnome.desktop.interface icon-theme
|
||||
|
||||
if [[ ! -w "$gtk3_settings_file" ]]; then
|
||||
touch "$gtk3_settings_file"
|
||||
fi
|
||||
|
|
@ -286,7 +290,7 @@ case "$1" in
|
|||
check_config && restore-theme-on-login
|
||||
;;
|
||||
c)
|
||||
check_config && _check_for_toolkit_settings_files && preview
|
||||
check_config && _reset_settings && preview
|
||||
;;
|
||||
p)
|
||||
check_config && preview
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue