make a few settings into pajlada::Settings::Settings

Add setting to hide badges

Give focus to text input if you click anywhere in a chat widget
This commit is contained in:
Rasmus Karlsson
2017-06-11 20:53:43 +02:00
parent 945ca5d17a
commit 7c3cd930f3
11 changed files with 71 additions and 27 deletions
+6 -4
View File
@@ -5,6 +5,7 @@
#include "settingssnapshot.hpp"
#include <QSettings>
#include <pajlada/settings/setting.hpp>
namespace chatterino {
@@ -36,6 +37,11 @@ private:
void updateWordTypeMask();
public:
// new pajlada settings BBaper
pajlada::Settings::Setting<bool> showTimestamps;
pajlada::Settings::Setting<bool> showTimestampSeconds;
pajlada::Settings::Setting<bool> showBadges;
// Settings
Setting<QString> theme;
Setting<float> themeHue;
@@ -43,8 +49,6 @@ public:
Setting<float> emoteScale;
Setting<float> mouseScrollMultiplier;
Setting<bool> scaleEmotesByLineHeight;
Setting<bool> showTimestamps;
Setting<bool> showTimestampSeconds;
Setting<bool> showLastMessageIndicator;
Setting<bool> allowDouplicateMessages;
Setting<bool> linksDoubleClickOnly;
@@ -76,8 +80,6 @@ public:
static SettingsManager instance;
return instance;
}
private:
};
} // namespace chatterino