mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Added boldness adjustment for fonts (#1057)
* Added boldness adjustment for fonts * Moved setting and changed description of it
This commit is contained in:
parent
c43c1dc207
commit
3ea496a99b
|
@ -46,7 +46,7 @@ public:
|
|||
"/appearance/messages/collapseMessagesMinLines", 0};
|
||||
BoolSetting alternateMessages = {
|
||||
"/appearance/messages/alternateMessageBackground", false};
|
||||
IntSetting boldScale = {"/appearance/boldScale", 57};
|
||||
FloatSetting boldScale = {"/appearance/boldScale", 50};
|
||||
BoolSetting showTabCloseButton = {"/appearance/showTabCloseButton", true};
|
||||
BoolSetting showTabLive = {"/appearance/showTabLiveButton", false};
|
||||
BoolSetting hidePreferencesButton = {"/appearance/hidePreferencesButton",
|
||||
|
@ -173,8 +173,7 @@ public:
|
|||
"qrc:/sounds/ping3.wav"};
|
||||
|
||||
BoolSetting notificationToast = {"/notifications/enableToast", false};
|
||||
IntSetting openFromToast = {
|
||||
"/notifications/openFromToast",
|
||||
IntSetting openFromToast = {"/notifications/openFromToast",
|
||||
static_cast<int>(ToastReaction::OpenInBrowser)};
|
||||
|
||||
/// External tools
|
||||
|
|
|
@ -254,9 +254,17 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
|||
layout.addTitle("Miscellaneous");
|
||||
layout.addCheckbox("Show joined users (< 1000 chatters)", s.showJoins);
|
||||
layout.addCheckbox("Show parted users (< 1000 chatters)", s.showParts);
|
||||
layout.addDropdown("Boldness", {"Not implemented"});
|
||||
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,
|
||||
[](auto val) {
|
||||
if (val == 50)
|
||||
return QString("Default");
|
||||
else
|
||||
return QString::number(val);
|
||||
},
|
||||
[](auto args) { return fuzzyToFloat(args.value, 50.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);
|
||||
|
|
Loading…
Reference in a new issue