Make use theme colors instead of hard-coded ones (#65)

This commit is contained in:
lolocomotive
2021-10-28 19:13:21 +02:00
committed by GitHub
parent fbe542e5bf
commit f2f44f0f6f
2 changed files with 5 additions and 5 deletions

View File

@@ -37,10 +37,10 @@ namespace Code {
}
void toolboxIonKeys::toolboxIonView::drawRect(KDContext * ctx, KDRect rect) const {
ctx->fillRect(rect, Palette::GrayBright);
ctx->strokeRect(rect, Palette::GrayDark);
ctx->drawString(I18n::translate(I18n::Message::PressAKey),KDPoint(rect.left()+80, rect.top()+20));
ctx->fillRect(rect, Palette::WallScreen);
ctx->strokeRect(rect, Palette::ListCellBorder);
ctx->drawString(I18n::translate(I18n::Message::PressAKey),KDPoint(rect.left()+80, rect.top()+20),KDFont::LargeFont,Palette::PrimaryText,Palette::WallScreen);
}
View * toolboxIonKeys::view(){

View File

@@ -30,7 +30,7 @@ void ModalViewEmptyController::ModalViewEmptyView::setMessages(I18n::Message * m
void ModalViewEmptyController::ModalViewEmptyView::drawRect(KDContext * ctx, KDRect rect) const {
ctx->fillRect(bounds(), k_backgroundColor);
drawBorderOfRect(ctx, bounds(), Palette::GrayBright);
drawBorderOfRect(ctx, bounds(), Palette::ListCellBorder);
}
int ModalViewEmptyController::ModalViewEmptyView::numberOfSubviews() const {