Merge pull request #1218 from dylanaraps/wm_theme-macos

WM Theme: update for Mojave
This commit is contained in:
black 2019-03-12 08:46:09 +02:00 committed by GitHub
commit 504783d820
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1753,15 +1753,23 @@ get_wm_theme() {
"Quartz Compositor") "Quartz Compositor")
global_preferences="${HOME}/Library/Preferences/.GlobalPreferences.plist" global_preferences="${HOME}/Library/Preferences/.GlobalPreferences.plist"
wm_theme="$(PlistBuddy -c "Print AppleInterfaceStyle" "$global_preferences")" wm_theme="$(PlistBuddy -c "Print AppleInterfaceStyle" "$global_preferences")"
wm_theme_color="$(PlistBuddy -c "Print AppleAquaColorVariant" "$global_preferences")" wm_theme_color="$(PlistBuddy -c "Print AppleAccentColor" "$global_preferences")"
[[ -z "$wm_theme" ]] && \ [[ -z "$wm_theme" ]] && \
wm_theme="Light" wm_theme="Light"
[[ -z "$wm_theme_color" ]] || ((wm_theme_color == 1)) && \ case "$wm_theme_color" in
wm_theme_color="Blue" "-1") wm_theme_color="Graphite" ;;
"0") wm_theme_color="Red" ;;
"1") wm_theme_color="Orange" ;;
"2") wm_theme_color="Yellow" ;;
"3") wm_theme_color="Green" ;;
"5") wm_theme_color="Purple" ;;
"6") wm_theme_color="Pink" ;;
*) wm_theme_color="Blue" ;;
esac
wm_theme="${wm_theme_color:-Graphite} ($wm_theme)" wm_theme="${wm_theme_color} ($wm_theme)"
;; ;;
*"Explorer") *"Explorer")