Added CSS status classes

This commit is contained in:
Erik Reider
2022-03-19 19:22:00 +01:00
parent 5f19a54deb
commit 05effad18b
3 changed files with 37 additions and 0 deletions

View File

@ -37,6 +37,8 @@ class UPower : public AModule {
void removeDevices();
bool show_tooltip_callback(int, int, bool, const Glib::RefPtr<Gtk::Tooltip> &tooltip);
const std::string getDeviceStatus(UpDeviceState &state);
Gtk::Box box_;
Gtk::Image icon_;
Gtk::Label label_;
@ -54,6 +56,7 @@ class UPower : public AModule {
guint login1_id;
GDBusConnection *login1_connection;
UPowerTooltip *upower_tooltip;
std::string lastStatus;
};
} // namespace waybar::modules::upower