mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 19:49:58 +02:00
[apps/settings] Add a menu "Font size" in settings
This commit is contained in:
@@ -169,6 +169,9 @@ void MainController::willDisplayCellForIndex(HighlightCell * cell, int index) {
|
||||
case k_indexOfComplexFormatCell:
|
||||
childIndex = (int)preferences->complexFormat();
|
||||
break;
|
||||
case k_indexOfFontCell:
|
||||
childIndex = GlobalPreferences::sharedGlobalPreferences()->font() == KDFont::LargeFont ? 0 : 1;
|
||||
break;
|
||||
}
|
||||
I18n::Message message = childIndex >= 0 ? model()->children(index)->children(childIndex)->label() : I18n::Message::Default;
|
||||
myTextCell->setSubtitle(message);
|
||||
|
||||
Reference in New Issue
Block a user