mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Set default username boldness to DemiBold (63)
This commit is contained in:
parent
25fe7e7df5
commit
4e4c7d4c0b
2 changed files with 4 additions and 5 deletions
|
@ -49,7 +49,7 @@ public:
|
||||||
"/appearance/messages/collapseMessagesMinLines", 0};
|
"/appearance/messages/collapseMessagesMinLines", 0};
|
||||||
BoolSetting alternateMessages = {
|
BoolSetting alternateMessages = {
|
||||||
"/appearance/messages/alternateMessageBackground", false};
|
"/appearance/messages/alternateMessageBackground", false};
|
||||||
FloatSetting boldScale = {"/appearance/boldScale", 50};
|
FloatSetting boldScale = {"/appearance/boldScale", 63};
|
||||||
BoolSetting showTabCloseButton = {"/appearance/showTabCloseButton", true};
|
BoolSetting showTabCloseButton = {"/appearance/showTabCloseButton", true};
|
||||||
BoolSetting showTabLive = {"/appearance/showTabLiveButton", false};
|
BoolSetting showTabLive = {"/appearance/showTabLiveButton", false};
|
||||||
BoolSetting hidePreferencesButton = {"/appearance/hidePreferencesButton",
|
BoolSetting hidePreferencesButton = {"/appearance/hidePreferencesButton",
|
||||||
|
|
|
@ -265,15 +265,14 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
||||||
layout.addCheckbox("Lowercase domains", s.lowercaseDomains);
|
layout.addCheckbox("Lowercase domains", s.lowercaseDomains);
|
||||||
layout.addCheckbox("Bold @usernames", s.boldUsernames);
|
layout.addCheckbox("Bold @usernames", s.boldUsernames);
|
||||||
layout.addDropdown<float>(
|
layout.addDropdown<float>(
|
||||||
"Username font weight", {"0", "25", "Default", "75", "100"},
|
"Username font weight", {"50", "Default", "75", "100"}, s.boldScale,
|
||||||
s.boldScale,
|
|
||||||
[](auto val) {
|
[](auto val) {
|
||||||
if (val == 50)
|
if (val == 63)
|
||||||
return QString("Default");
|
return QString("Default");
|
||||||
else
|
else
|
||||||
return QString::number(val);
|
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("Show link info when hovering", s.linkInfoTooltip);
|
||||||
layout.addCheckbox("Double click links to open", s.linksDoubleClickOnly);
|
layout.addCheckbox("Double click links to open", s.linksDoubleClickOnly);
|
||||||
layout.addCheckbox("Unshorten links", s.unshortLinks);
|
layout.addCheckbox("Unshorten links", s.unshortLinks);
|
||||||
|
|
Loading…
Reference in a new issue