Contributors scroll (#2093)

* adding on_right

* menu view instead of console

* fixing on_right typo

---------

Co-authored-by: gullradriel <gullradriel@no-mail.com>
This commit is contained in:
gullradriel 2024-04-08 07:45:33 +02:00 committed by GitHub
parent 8e90c65a62
commit 004799e1a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 102 additions and 96 deletions

View file

@ -75,6 +75,7 @@ class MenuItemView : public Widget {
class MenuView : public View {
public:
std::function<void(void)> on_left{};
std::function<void(void)> on_right{};
std::function<void(void)> on_highlight{nullptr};
MenuView(Rect new_parent_rect = {0, 0, screen_width, screen_height - 16},