Add battery bar colour expressions

This commit is contained in:
ajp_anton
2026-06-18 14:56:01 +00:00
parent 7144b130f7
commit e1dfe637f8
6 changed files with 329 additions and 361 deletions
+7 -2
View File
@@ -165,11 +165,13 @@
<string name="battery_bar_colours_title">Default colours</string>
<string name="battery_bar_default_discharge_colour">Discharge colour</string>
<string name="battery_bar_default_charge_colour">Charge colour</string>
<string name="battery_bar_button_label_discharge">Discharge</string>
<string name="battery_bar_button_label_charge">Charge</string>
<string name="battery_bar_thresholds_title">Threshold colours</string>
<string name="battery_bar_thresholds_hint">Below a threshold, the first matching colour overrides the default.</string>
<string name="battery_bar_add_threshold">Add threshold</string>
<string name="battery_bar_colour_dialog_title">Set colour</string>
<string name="battery_bar_colour_dialog_hint">Examples: FA0, 80FA, or FFAA00</string>
<string name="battery_bar_colour_dialog_hint">Examples: #FA0, FA0, or #FA0 ; invRGB 0.5 *RGB</string>
<string name="battery_bar_threshold_percent_title">Threshold percent</string>
<string name="battery_bar_threshold_percent_hint">Applies when battery is at or below this percent.</string>
<string name="battery_bar_threshold_change_percent">Change threshold %</string>
@@ -179,7 +181,10 @@
<string name="battery_bar_threshold_remove">Remove threshold</string>
<string name="battery_bar_colour_auto">Auto</string>
<string name="battery_bar_colour_same_as_discharge">Same as discharge</string>
<string name="battery_bar_colour_same_as_default">Same as default</string>
<string name="battery_bar_colour_same_as_default">Default</string>
<string name="battery_bar_colour_help_show">Show colour syntax</string>
<string name="battery_bar_colour_help_hide">Hide colour syntax</string>
<string name="battery_bar_colour_help_text">Colour values:\n#FA0, #FFAA00, #80FFAA00, FA0, or [255, 255, 170, 0]\n\nPostfix math:\n#FA0 1.2 *RGB clip\n#FA0 invRGB\n\nOperators:\n+ - * / ^ inv min max sqrt clip dup\n\nChannels:\nAdd A, R, G, or B to limit vector operations.\nExamples: invRGB, *A, +RB\n\nTint variants:\nUse ; for a dark-tint expression.\nThe dark expression starts with the result from the bright expression.</string>
<string name="battery_bar_threshold_duplicate">A threshold at that percentage already exists.</string>
<string name="battery_bar_threshold_reordered">That threshold moved to a new position in the list.</string>
<string name="battery_bar_threshold_charge_note">Leave the field empty and press OK for \"Same as discharge\", or use the button below for \"Same as default\".</string>