mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-20 01:42:38 +02:00
style(battery): animates background when battery is in a critical state
This commit is contained in:
@@ -50,7 +50,7 @@ auto waybar::modules::Battery::update() -> void
|
||||
_label.get_style_context()->add_class("charging");
|
||||
else
|
||||
_label.get_style_context()->remove_class("charging");
|
||||
if (value < 52 && !charging)
|
||||
if (value < 16 && !charging)
|
||||
_label.get_style_context()->add_class("warning");
|
||||
else
|
||||
_label.get_style_context()->remove_class("warning");
|
||||
|
Reference in New Issue
Block a user