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
+31
View File
@@ -0,0 +1,31 @@
#pragma once
#include <cstdint>
#include <optional>
#include <string_view>
namespace chatterino {
enum StreamerModeSetting : std::uint8_t {
Disabled,
Enabled,
DetectStreamingSoftware,
};
constexpr std::optional<std::string_view> qmagicenumDisplayName(
StreamerModeSetting value) noexcept
{
switch (value)
{
case Disabled:
return "Disabled";
case Enabled:
return "Enabled";
case DetectStreamingSoftware:
return "Automatic (Detect streaming software)";
}
}
} // namespace chatterino