I'm trying to perform an edit to UI White so that the battery bar shows colors corresponding to the state. I'm using the below code but the bar simply refuses to change color. Am I doing something wrong?
EmDash00 wrote: ↑December 31st, 2018, 7:48 pm
Am I doing something wrong?
Yep, you've forgot to add a DynamicVariables=1 option to the [MeterBar] Bar meter. Add it and refresh your skin.
And one more: there is no need to use the [MeasurePower] as a section variable into the Formula option of [powerColor] measure. Replace this option with the following one: Formula=(( MeasurePower = 100 ) ? 1 : (( MeasurePower > 49 ) ? 2 : (( MeasurePower > 10 ) ? 3 : 4))). This also makes useless the DynamicVariables=1 option of the measure. Remove it.
Note that the ".0":"" section of the Substitute option of the same [powerColor] measure is also not needed. Remove it as well: Substitute="2":"0,255,0,255","3":"255,255,0,255","4":"255,0,0,255","1":"0,0,255,255".
balala wrote: ↑December 31st, 2018, 8:15 pm
Yep, you've forgot to add a DynamicVariables=1 option to the [MeterBar] Bar meter. Add it and refresh your skin.
And one more: there is no need to use the [MeasurePower] as a section variable into the Formula option of [powerColor] measure. Replace this option with the following one: Formula=(( MeasurePower = 100 ) ? 1 : (( MeasurePower > 49 ) ? 2 : (( MeasurePower > 10 ) ? 3 : 4))). This also makes useless the DynamicVariables=1 option of the measure. Remove it.
Note that the ".0":"" section of the Substitute option of the same [powerColor] measure is also not needed. Remove it as well: Substitute="2":"0,255,0,255","3":"255,255,0,255","4":"255,0,0,255","1":"0,0,255,255".
THANK YOU SO MUCH. I spent hours trying to figure this out as a new user to rainmeter.
EmDash00 wrote: ↑December 31st, 2018, 8:40 pm
THANK YOU SO MUCH. I spent hours trying to figure this out as a new user to rainmeter.
You're welcome.
Forgetting the DynamicVariables=1 option is a common mistake, many times. New users many times have such problems. But if you'll keep working, you'll get used to it.
This time for example the [powerColor] is used as a section variable in the BarColor option of the [MeterBar] meter and section variables are always requiring to set the dynamic variables. That's why that option is needed.