mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-08 20:01:53 +00:00
Limit title length when too many status icons & shade background of every other icon (#1195)
* Shading alternate icon backgrounds on title bar * Shading alternate icons on title bar * Shading alternate icons on title bar * Clang
This commit is contained in:
@@ -131,10 +131,12 @@ class StatusTray : public View {
|
||||
StatusTray(const StatusTray&) = delete;
|
||||
StatusTray& operator=(const StatusTray&) = delete;
|
||||
|
||||
void add_button(ImageButton* child);
|
||||
void add(Widget* child);
|
||||
void update_layout();
|
||||
void clear();
|
||||
void paint(Painter& painter) override;
|
||||
uint8_t width() { return width_; };
|
||||
|
||||
private:
|
||||
static constexpr uint8_t height = 16;
|
||||
@@ -142,6 +144,7 @@ class StatusTray : public View {
|
||||
// track of the right edge.
|
||||
const Point pos_{};
|
||||
uint8_t width_{};
|
||||
bool shading_{};
|
||||
};
|
||||
|
||||
class SystemStatusView : public View {
|
||||
|
||||
Reference in New Issue
Block a user