mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-11-26 06:36:20 -05:00
Support for configurable Menu Color & scrolling fix (#1905)
* Support for Configurable Menu Color Scheme * Limit min value to 8 so doesn't get reset to default * Increased max encoder rate multiplier value to 15 * Fixed menu scrolling issue
This commit is contained in:
parent
d04c781ada
commit
13fd1b1f3b
8 changed files with 161 additions and 6 deletions
|
|
@ -1290,6 +1290,11 @@ void NewButton::set_color(Color color) {
|
|||
set_dirty();
|
||||
}
|
||||
|
||||
void NewButton::set_bg_color(Color color) {
|
||||
bg_color_ = color;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void NewButton::set_vertical_center(bool value) {
|
||||
vertical_center_ = value;
|
||||
set_dirty();
|
||||
|
|
@ -1343,7 +1348,7 @@ Style NewButton::paint_style() {
|
|||
s.background = style().foreground;
|
||||
s.foreground = Color::black();
|
||||
} else {
|
||||
s.background = Color::grey();
|
||||
s.background = bg_color_;
|
||||
s.foreground = style().foreground;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue