We now check for GTK theme by GTK version
This commit is contained in:
parent
cbc33486f7
commit
5e8953c7fa
1 changed files with 5 additions and 3 deletions
8
fetch
8
fetch
|
@ -1153,8 +1153,8 @@ getgtk () {
|
|||
;;
|
||||
esac
|
||||
|
||||
if [ -z "$gtk2theme" ] && [ -z "$gtk3theme" ]; then
|
||||
# Check for gtk2 theme
|
||||
# Check for gtk2 theme
|
||||
if [ -z "$gtk2theme" ]; then
|
||||
if [ -f "$HOME/.gtkrc-2.0" ]; then
|
||||
gtk2theme=$(grep "^[^#]*$name" "$HOME/.gtkrc-2.0")
|
||||
|
||||
|
@ -1164,8 +1164,10 @@ getgtk () {
|
|||
|
||||
gtk2theme=${gtk2theme/${name}*=}
|
||||
gtk2theme=${gtk2theme//\"}
|
||||
fi
|
||||
|
||||
# Check for gtk3 theme
|
||||
# Check for gtk3 theme
|
||||
if [ -z "$gtk3theme" ]; then
|
||||
if [ -f "$HOME/.config/gtk-3.0/settings.ini" ]; then
|
||||
gtk3theme=$(grep "^[^#]*$name" "$HOME/.config/gtk-3.0/settings.ini")
|
||||
|
||||
|
|
Loading…
Reference in a new issue