Convert themes and plugins to use the update colors. Themes are no longer burdened with escaping the unprintable characters
This commit is contained in:
@@ -69,11 +69,11 @@ battery_charge(){
|
||||
local F_C='▸'
|
||||
# Depleted char
|
||||
local D_C='▹'
|
||||
local DEPLETED_COLOR='\[${normal}\]'
|
||||
local FULL_COLOR='\[${green}\]'
|
||||
local HALF_COLOR='\[${yellow}\]'
|
||||
local DANGER_COLOR='\[${red}\]'
|
||||
local BATTERY_OUTPUT='${DEPLETED_COLOR}${D_C}${D_C}${D_C}${D_C}${D_C}'
|
||||
local DEPLETED_COLOR="${normal}"
|
||||
local FULL_COLOR="${green}"
|
||||
local HALF_COLOR="${yellow}"
|
||||
local DANGER_COLOR="${red}"
|
||||
local BATTERY_OUTPUT="${DEPLETED_COLOR}${D_C}${D_C}${D_C}${D_C}${D_C}"
|
||||
local BATTERY_PERC=$(battery_percentage)
|
||||
|
||||
case $BATTERY_PERC in
|
||||
@@ -123,7 +123,7 @@ battery_charge(){
|
||||
echo "${HALF_COLOR}${F_C}${DEPLETED_COLOR}${D_C}${D_C}${D_C}${D_C}${normal}"
|
||||
;;
|
||||
*)
|
||||
echo "${DANGER_COLOR}UNPLG\[${normal}\]"
|
||||
echo "${DANGER_COLOR}UNPLG${normal}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user