mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 17:27:39 +00:00
Fileman icon toolbar (#975)
* Add cut/copy/paste menu with icons * Add icons, file limit to fileman
This commit is contained in:
@@ -1143,9 +1143,18 @@ NewButton::NewButton(
|
||||
Rect parent_rect,
|
||||
std::string text,
|
||||
const Bitmap* bitmap
|
||||
) : NewButton { parent_rect, text, bitmap, Color::dark_cyan() }
|
||||
{ }
|
||||
|
||||
NewButton::NewButton(
|
||||
Rect parent_rect,
|
||||
std::string text,
|
||||
const Bitmap* bitmap,
|
||||
Color color
|
||||
) : Widget { parent_rect },
|
||||
text_ { text },
|
||||
bitmap_ (bitmap)
|
||||
bitmap_ { bitmap },
|
||||
color_ { color }
|
||||
{
|
||||
set_focusable(true);
|
||||
}
|
||||
|
@@ -466,6 +466,7 @@ public:
|
||||
NewButton(const NewButton&) = delete;
|
||||
NewButton& operator=(const NewButton&) = delete;
|
||||
NewButton(Rect parent_rect, std::string text, const Bitmap* bitmap);
|
||||
NewButton(Rect parent_rect, std::string text, const Bitmap* bitmap, Color color);
|
||||
NewButton(
|
||||
) : NewButton { { }, { }, { } }
|
||||
{
|
||||
@@ -486,8 +487,8 @@ public:
|
||||
|
||||
private:
|
||||
std::string text_;
|
||||
Color color_ = Color::dark_cyan();
|
||||
const Bitmap* bitmap_;
|
||||
Color color_;
|
||||
};
|
||||
|
||||
class Image : public Widget {
|
||||
|
Reference in New Issue
Block a user