refactor: Fonts (#5228)

This commit is contained in:
pajlada
2024-03-10 14:27:08 +01:00
committed by GitHub
parent e56f7136a9
commit e7508332ff
16 changed files with 128 additions and 143 deletions
+2 -3
View File
@@ -166,8 +166,7 @@ void GeneralPage::initLayout(GeneralPageView &layout)
}
layout.addDropdown<QString>(
"Font", {"Segoe UI", "Arial", "Choose..."},
getIApp()->getFonts()->chatFontFamily,
"Font", {"Segoe UI", "Arial", "Choose..."}, s.chatFontFamily,
[](auto val) {
return val;
},
@@ -177,7 +176,7 @@ void GeneralPage::initLayout(GeneralPageView &layout)
true, "", true);
layout.addDropdown<int>(
"Font size", {"9pt", "10pt", "12pt", "14pt", "16pt", "20pt"},
getIApp()->getFonts()->chatFontSize,
s.chatFontSize,
[](auto val) {
return QString::number(val) + "pt";
},