Small fixes
This commit is contained in:
+1
-2
@@ -76,7 +76,7 @@ void TextButton::paint(BitmapBuffer * dc)
|
||||
if (bgColorHandler) {
|
||||
bgColor = bgColorHandler();
|
||||
} else if (checked()) {
|
||||
bgColor = EDIT_MARKER_COLOR;
|
||||
bgColor = HIGHLIGHT_COLOR;
|
||||
} else if (hasFocus()) {
|
||||
bgColor = FOCUS_BGCOLOR;
|
||||
}
|
||||
@@ -88,7 +88,6 @@ void TextButton::paint(BitmapBuffer * dc)
|
||||
} else {
|
||||
dc->drawSolidFilledRect(0, 0, rect.w, rect.h, bgColor);
|
||||
}
|
||||
textColor = FOCUS_COLOR;
|
||||
}
|
||||
else {
|
||||
dc->drawSolidFilledRect(0, 0, rect.w, rect.h, bgColor);
|
||||
|
||||
+3
-1
@@ -104,7 +104,9 @@ void Choice::setValues(const char * const values[])
|
||||
void Choice::paint(BitmapBuffer * dc)
|
||||
{
|
||||
FormField::paint(dc);
|
||||
theme->drawChoice(dc, this, textHandler ? textHandler(getValue()).c_str() : values[getValue() - vmin].c_str());
|
||||
theme->drawChoice(dc, this,
|
||||
textHandler ? textHandler(getValue()).c_str()
|
||||
: values[getValue() - vmin].c_str());
|
||||
}
|
||||
|
||||
#if defined(HARDWARE_KEYS)
|
||||
|
||||
+2
@@ -227,6 +227,8 @@ void Menu::onEvent(event_t event)
|
||||
|
||||
void Menu::paint(BitmapBuffer * dc)
|
||||
{
|
||||
ModalWindow::paint(dc);
|
||||
|
||||
rect_t r(content->getRect());
|
||||
if (toolbar) {
|
||||
r.x = toolbar->left();
|
||||
|
||||
Reference in New Issue
Block a user