]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
macos: fix theme color variant name like the theme did
authorThomas Debesse <dev@illwieckz.net>
Fri, 24 Jun 2022 23:35:47 +0000 (01:35 +0200)
committerThomas Debesse <dev@illwieckz.net>
Fri, 24 Jun 2022 23:35:47 +0000 (01:35 +0200)
setup/macos/NetRadiant

index 21933a1620ab26c37cbe9996442b9b99baecff31..9bfbf742039cfacb8736a22a4197b98215fd1eeb 100755 (executable)
@@ -33,12 +33,14 @@ then
        export GTK_PATH="${bundle_dir}"
 fi
 
-if [ "$(defaults read -g AppleInterfaceStyle 2>/dev/null)" = 'Dark' ]
-then
-       color='dark'
-else
-       color='light'
-fi
+color="$(defaults read -g AppleInterfaceStyle 2>/dev/null)"
+case "${color}" in
+       'Dark')
+               ;;
+       *)
+       color='Light'
+               ;;
+esac
 
 gtkrc_file="${bundle_dir}/share/themes/Mojave-${color}/gtk-2.0/gtkrc"