Set default username boldness to DemiBold (63)

This commit is contained in:
fourtf 2019-07-28 20:23:39 +02:00
parent 25fe7e7df5
commit 4e4c7d4c0b
2 changed files with 4 additions and 5 deletions

View file

@ -49,7 +49,7 @@ public:
"/appearance/messages/collapseMessagesMinLines", 0};
BoolSetting alternateMessages = {
"/appearance/messages/alternateMessageBackground", false};
FloatSetting boldScale = {"/appearance/boldScale", 50};
FloatSetting boldScale = {"/appearance/boldScale", 63};
BoolSetting showTabCloseButton = {"/appearance/showTabCloseButton", true};
BoolSetting showTabLive = {"/appearance/showTabLiveButton", false};
BoolSetting hidePreferencesButton = {"/appearance/hidePreferencesButton",

View file

@ -265,15 +265,14 @@ void GeneralPage::initLayout(SettingsLayout &layout)
layout.addCheckbox("Lowercase domains", s.lowercaseDomains);
layout.addCheckbox("Bold @usernames", s.boldUsernames);
layout.addDropdown<float>(
"Username font weight", {"0", "25", "Default", "75", "100"},
s.boldScale,
"Username font weight", {"50", "Default", "75", "100"}, s.boldScale,
[](auto val) {
if (val == 50)
if (val == 63)
return QString("Default");
else
return QString::number(val);
},
[](auto args) { return fuzzyToFloat(args.value, 50.f); });
[](auto args) { return fuzzyToFloat(args.value, 63.f); });
layout.addCheckbox("Show link info when hovering", s.linkInfoTooltip);
layout.addCheckbox("Double click links to open", s.linksDoubleClickOnly);
layout.addCheckbox("Unshorten links", s.unshortLinks);