Full if → single line for macOS Light theme
This commit is contained in:
4
neofetch
4
neofetch
@@ -930,9 +930,7 @@ get_wm_theme() {
|
|||||||
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 AppleAquaColorVariant" "$global_preferences")"
|
||||||
|
|
||||||
if [[ -z "$wm_theme" ]]; then
|
[[ -z "$wm_theme" ]] && wm_theme="Light"
|
||||||
wm_theme="Light"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z "$wm_theme_color" ]] || ((wm_theme_color == 1)); then
|
if [[ -z "$wm_theme_color" ]] || ((wm_theme_color == 1)); then
|
||||||
wm_theme_color="Blue"
|
wm_theme_color="Blue"
|
||||||
|
|||||||
Reference in New Issue
Block a user