Cosmetics

This commit is contained in:
Bertrand Songis
2019-10-04 19:05:32 +02:00
parent 39b1b3eeec
commit b07267d645
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ void Dialog::paint(BitmapBuffer * dc)
dc->drawRect(0, 0, width() - 1, height() - 1, 1, SOLID, DEFAULT_COLOR);
dc->drawSolidFilledRect(1, 1, width() - 3, PAGE_LINE_HEIGHT, TITLE_BGCOLOR);
dc->drawText(FIELD_PADDING_LEFT, FIELD_PADDING_TOP, title.c_str(), MENU_TITLE_COLOR);
dc->drawSolidFilledRect(1, PAGE_LINE_HEIGHT + 1, width() - 3, height() - PAGE_LINE_HEIGHT - 3, TEXT_BGCOLOR);
dc->drawSolidFilledRect(1, PAGE_LINE_HEIGHT + 1, width() - 3, height() - PAGE_LINE_HEIGHT - 3, DEFAULT_BGCOLOR);
}
void Dialog::deleteLater()
+1 -1
View File
@@ -44,6 +44,6 @@ void FabIconButton::paint(BitmapBuffer * dc)
dc->drawBitmap(0, 0, checked() ? &ALPHA_BUTTON_ON : &ALPHA_BUTTON_OFF);
const BitmapBuffer * mask = theme->getIconMask(icon);
if (mask) {
dc->drawMask((68 - mask->getWidth()) / 2, (68 - mask->getHeight()) / 2, mask, TEXT_BGCOLOR);
dc->drawMask((68 - mask->getWidth()) / 2, (68 - mask->getHeight()) / 2, mask, DEFAULT_BGCOLOR);
}
}
+1 -1
View File
@@ -123,7 +123,7 @@ enum FontSizeIndex
#define COLOR_IDX(att) uint8_t((att) >> 16)
//#define DEFAULT_COLOR COLOR(DEFAULT_COLOR_INDEX)
//#define TEXT_BGCOLOR COLOR(TEXT_BGCOLOR_INDEX)
//#define DEFAULT_BGCOLOR COLOR(DEFAULT_BGCOLOR_INDEX)
//#define FOCUS_COLOR COLOR(FOCUS_COLOR_INDEX)
//#define FOCUS_BGCOLOR COLOR(FOCUS_BGCOLOR_INDEX)
//#define TEXT_STATUSBAR_COLOR COLOR(TEXT_STATUSBAR_COLOR_INDEX)
+1 -1
View File
@@ -71,7 +71,7 @@ void Page::deleteLater()
void Page::paint(BitmapBuffer * dc)
{
dc->clear(TEXT_BGCOLOR);
dc->clear(DEFAULT_BGCOLOR);
}
#if defined(HARDWARE_KEYS)
+1 -1
View File
@@ -177,7 +177,7 @@ void TabsGroup::onKeyEvent(event_t event)
void TabsGroup::paint(BitmapBuffer * dc)
{
dc->clear(TEXT_BGCOLOR);
dc->clear(DEFAULT_BGCOLOR);
}
#if defined(HARDWARE_TOUCH)