Now shows the percentage and the correct icon

This commit is contained in:
Erik Reider
2022-03-15 20:22:04 +01:00
parent 4ee81c8dea
commit 5e9faeb2d0
2 changed files with 51 additions and 25 deletions

View File

@ -29,12 +29,15 @@ class UPower : public AModule {
void addDevice(UpDevice *device);
void setDisplayDevice();
void resetDevices();
static void clicked();
Gtk::Box box_;
Gtk::Image icon_;
Gtk::Label label_;
// Config
bool hideIfEmpty = true;
uint iconSize = 32;
UpClient *client = NULL;
UpDevice *displayDevice = NULL;
std::map<std::string, UpDevice *> devices;