Convert themes and plugins to use the update colors. Themes are no longer burdened with escaping the unprintable characters

This commit is contained in:
JFSIII
2011-06-17 19:45:21 -04:00
parent 46b8d27815
commit 1b7c9419bf
14 changed files with 94 additions and 75 deletions

View File

@@ -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
}