mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Workspaces scroll event (#19)
This commit is contained in:
@ -57,7 +57,8 @@ auto waybar::modules::Battery::update() -> void
|
||||
_label.get_style_context()->add_class("charging");
|
||||
else
|
||||
_label.get_style_context()->remove_class("charging");
|
||||
if (capacity < 16 && !charging)
|
||||
auto critical = _config["critical"] ? _config["critical"].asUInt() : 15;
|
||||
if (capacity <= critical && !charging)
|
||||
_label.get_style_context()->add_class("warning");
|
||||
else
|
||||
_label.get_style_context()->remove_class("warning");
|
||||
|
Reference in New Issue
Block a user