Corrected theme issue

This commit is contained in:
redgl0w
2020-01-10 07:26:05 +01:00
parent 35791b1ed7
commit f6b0882dfb

View File

@@ -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
}