mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-20 04:54:25 -04:00
Fix icons behavior in topbar. When plugged and no charging regular dischrging icon is displayed.
23 lines
615 B
C++
23 lines
615 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "BatteryWidgetBase.hpp"
|
|
|
|
namespace gui
|
|
{
|
|
class Label;
|
|
class BatteryWidgetText : public BatteryWidgetBase
|
|
{
|
|
public:
|
|
BatteryWidgetText(Item *parent, uint32_t x, uint32_t y, uint32_t w, uint32_t h);
|
|
|
|
private:
|
|
void showBatteryLevel(std::uint32_t percentage) override;
|
|
void showBatteryChargingDone() override;
|
|
void showBatteryCharging() override;
|
|
Label *label = nullptr;
|
|
};
|
|
} // namespace gui
|