Full if → single line for macOS Light theme

This commit is contained in:
Joseph Durel 2018-02-01 23:46:50 -05:00
parent eb062afe95
commit 279a1e58bc

View file

@ -930,9 +930,7 @@ get_wm_theme() {
wm_theme="$(PlistBuddy -c "Print AppleInterfaceStyle" "$global_preferences")"
wm_theme_color="$(PlistBuddy -c "Print AppleAquaColorVariant" "$global_preferences")"
if [[ -z "$wm_theme" ]]; then
wm_theme="Light"
fi
[[ -z "$wm_theme" ]] && wm_theme="Light"
if [[ -z "$wm_theme_color" ]] || ((wm_theme_color == 1)); then
wm_theme_color="Blue"