Refactor StreamerMode/Theme setting widgets (#6317)

This commit is contained in:
pajlada
2025-07-12 14:05:49 +02:00
committed by GitHub
parent 49aa83244c
commit 627b6d806e
8 changed files with 164 additions and 152 deletions
+4 -7
View File
@@ -5,6 +5,7 @@
#include "common/LastMessageLineStyle.hpp"
#include "common/Modes.hpp"
#include "common/SignalVector.hpp"
#include "common/StreamerModeSetting.hpp"
#include "common/ThumbnailPreviewMode.hpp"
#include "common/TimeoutStackStyle.hpp"
#include "controllers/filters/FilterRecord.hpp"
@@ -84,12 +85,6 @@ enum class StreamLinkPreferredQuality : std::uint8_t {
AudioOnly,
};
enum StreamerModeSetting {
Disabled = 0,
Enabled = 1,
DetectStreamingSoftware = 2,
};
enum class TabStyle : std::uint8_t {
Normal,
Compact,
@@ -402,7 +397,9 @@ public:
// - "Always hide"
// - "Don't hide"
EnumSetting<StreamerModeSetting> enableStreamerMode = {
"/streamerMode/enabled", StreamerModeSetting::DetectStreamingSoftware};
"/streamerMode/enabled",
StreamerModeSetting::DetectStreamingSoftware,
};
BoolSetting streamerModeHideUsercardAvatars = {
"/streamerMode/hideUsercardAvatars", true};
BoolSetting streamerModeHideLinkThumbnails = {