From: Thomas Debesse Date: Fri, 24 Jun 2022 23:35:47 +0000 (+0200) Subject: macos: fix theme color variant name like the theme did X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=557b086d258187cfda0f98f19287e155928c9fd7;p=xonotic%2Fnetradiant.git macos: fix theme color variant name like the theme did --- diff --git a/setup/macos/NetRadiant b/setup/macos/NetRadiant index 21933a16..9bfbf742 100755 --- a/setup/macos/NetRadiant +++ b/setup/macos/NetRadiant @@ -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"