mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-13 12:12:16 -04:00
Merge remote-tracking branch 'upstream/master'
Conflicts: firmware/application/Makefile firmware/application/core_control.cpp firmware/application/touch.cpp firmware/application/ui_debug.cpp firmware/application/ui_debug.hpp firmware/application/ui_navigation.cpp firmware/baseband/baseband_thread.cpp
This commit is contained in:
commit
1b0da68d65
252 changed files with 10752 additions and 7183 deletions
|
@ -32,17 +32,19 @@ void MenuItemView::select() {
|
|||
}
|
||||
|
||||
void MenuItemView::highlight() {
|
||||
set_highlight(true);
|
||||
set_highlighted(true);
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void MenuItemView::unhighlight() {
|
||||
set_highlight(false);
|
||||
set_highlighted(false);
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void MenuItemView::paint(Painter& painter) {
|
||||
const auto r = screen_rect();
|
||||
|
||||
const auto paint_style = (flags.highlighted && parent()->has_focus()) ? style().invert() : style();
|
||||
const auto paint_style = (highlighted() && parent()->has_focus()) ? style().invert() : style();
|
||||
|
||||
const auto font_height = paint_style.font.line_height();
|
||||
|
||||
|
@ -68,11 +70,6 @@ void MenuItemView::paint(Painter& painter) {
|
|||
);
|
||||
}
|
||||
|
||||
void MenuItemView::set_highlight(const bool value) {
|
||||
flags.highlighted = value;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
/* MenuView **************************************************************/
|
||||
|
||||
MenuView::~MenuView() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue