feat: allow custom chat font weight (#6037)

This commit is contained in:
nerix
2025-03-07 20:19:24 +01:00
committed by GitHub
parent 0235451c56
commit 266dc8d202
5 changed files with 141 additions and 74 deletions
+10
View File
@@ -189,6 +189,16 @@ void GeneralPage::initLayout(GeneralPageView &layout)
[](auto args) {
return fuzzyToInt(args.value, 10);
});
layout.addDropdown<int>(
"Font weight",
{"100", "200", "300", "400", "500", "600", "700", "800", "900"},
s.chatFontWeight,
[](auto val) {
return QString::number(val);
},
[](auto args) {
return fuzzyToInt(args.value, 400);
});
layout.addDropdown<float>(
"Zoom", ZOOM_LEVELS, s.uiScale,
[](auto val) {