refactor: Fonts (#5228)
This commit is contained in:
@@ -25,6 +25,19 @@ using TimeoutButton = std::pair<QString, int>;
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
# define DEFAULT_FONT_FAMILY "Segoe UI"
|
||||
# define DEFAULT_FONT_SIZE 10
|
||||
#else
|
||||
# ifdef Q_OS_MACOS
|
||||
# define DEFAULT_FONT_FAMILY "Helvetica Neue"
|
||||
# define DEFAULT_FONT_SIZE 12
|
||||
# else
|
||||
# define DEFAULT_FONT_FAMILY "Arial"
|
||||
# define DEFAULT_FONT_SIZE 11
|
||||
# endif
|
||||
#endif
|
||||
|
||||
void _actuallyRegisterSetting(
|
||||
std::weak_ptr<pajlada::Settings::SettingData> setting);
|
||||
|
||||
@@ -134,6 +147,14 @@ public:
|
||||
|
||||
// BoolSetting collapseLongMessages =
|
||||
// {"/appearance/messages/collapseLongMessages", false};
|
||||
QStringSetting chatFontFamily{
|
||||
"/appearance/currentFontFamily",
|
||||
DEFAULT_FONT_FAMILY,
|
||||
};
|
||||
IntSetting chatFontSize{
|
||||
"/appearance/currentFontSize",
|
||||
DEFAULT_FONT_SIZE,
|
||||
};
|
||||
BoolSetting hideReplyContext = {"/appearance/hideReplyContext", false};
|
||||
BoolSetting showReplyButton = {"/appearance/showReplyButton", false};
|
||||
BoolSetting stripReplyMention = {"/appearance/stripReplyMention", true};
|
||||
|
||||
Reference in New Issue
Block a user