From f6b0882dfbfb51252bfb40013dfcd85cdae31781 Mon Sep 17 00:00:00 2001 From: redgl0w Date: Fri, 10 Jan 2020 07:26:05 +0100 Subject: [PATCH] Corrected theme issue --- apps/external/main_controller.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/external/main_controller.cpp b/apps/external/main_controller.cpp index d878ec2bc..19d3b1543 100644 --- a/apps/external/main_controller.cpp +++ b/apps/external/main_controller.cpp @@ -90,29 +90,35 @@ void MainController::willDisplayCellForIndex(HighlightCell * cell, int index) { if(index == 0){ myTextCell->setText("External is not compatible"); myTextCell->setTextColor(Palette::Red); + myTextCell->setHighlighted(myTextCell->isHighlighted()); } else { myTextCell->setText("with n0100"); myTextCell->setTextColor(Palette::Red); + myTextCell->setHighlighted(myTextCell->isHighlighted()); } }else{ if(index == k_numberOfCells-1){ myTextCell->setText("zardam.github.io/nw-external-apps/"); myTextCell->setTextColor(Palette::AccentText); + myTextCell->setHighlighted(myTextCell->isHighlighted()); return; } if(index == k_numberOfCells-2){ myTextCell->setText("Get more apps at"); myTextCell->setTextColor(Palette::AccentText); + myTextCell->setHighlighted(myTextCell->isHighlighted()); return; } if(index == 0 && numberOfFiles() == 0){ myTextCell->setText("No apps installed"); myTextCell->setTextColor(Palette::Red); + myTextCell->setHighlighted(myTextCell->isHighlighted()); } if(numberOfFiles() > 0){ if(fileAtIndex(index, f)) { myTextCell->setText(f.name); - myTextCell->setTextColor(f.isExecutable ? KDColorBlack : Palette::GreyDark); + myTextCell->setTextColor(f.isExecutable ? Palette::PrimaryText : Palette::Palette::SecondaryText); + myTextCell->setHighlighted(myTextCell->isHighlighted()); } } } @@ -120,9 +126,11 @@ void MainController::willDisplayCellForIndex(HighlightCell * cell, int index) { if(index == 0){ myTextCell->setText("External is not compatible"); myTextCell->setTextColor(Palette::Red); + myTextCell->setHighlighted(myTextCell->isHighlighted()); } else { myTextCell->setText("with the simulator"); myTextCell->setTextColor(Palette::Red); + myTextCell->setHighlighted(myTextCell->isHighlighted()); } #endif }