From 557b086d258187cfda0f98f19287e155928c9fd7 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sat, 25 Jun 2022 01:35:47 +0200 Subject: [PATCH] macos: fix theme color variant name like the theme did --- setup/macos/NetRadiant | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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" -- 2.39.2