对DDE下主题切换的修复

This commit is contained in:
RigoLigoRLC
2021-09-01 16:09:49 +08:00
parent f50b014b77
commit 6ddf44516a
3 changed files with 28 additions and 13 deletions

View File

@@ -2,6 +2,7 @@
#pragma once
#include <map>
#include <list>
#include <QColor>
namespace SpkUi
@@ -30,6 +31,13 @@ namespace SpkUi
ShadesEdge,
};
const std::list<ColorSetIndex> AccentColorExceptions
{
AccentColor,
AccentColorHighlighted,
TextOnAccentColor,
};
const std::map<ColorSetIndex, const char *> ColorSet2Token
{
{ GlobalBgnd, "GBG_" },
@@ -87,8 +95,8 @@ namespace SpkUi
{ TextOnGlobalBgnd, ColorTextOnBackground(0xf8f8f8) },
{ TextOnControlsBgnd, ColorTextOnBackground(0xf8f8f8) },
{ TextLighter, 0x2a2a2a },
{ GlossyEdge, 0xc5c5c5 },
{ ShadesEdge, 0x9d9d9d }
{ GlossyEdge, 0x9d9d9d },
{ ShadesEdge, 0xc5c5c5 }
};
using ColorSet = std::map<Qss::ColorSetIndex, QColor>;

View File

@@ -68,5 +68,5 @@ namespace SpkUi
void CrashSignalHandler(int);
void SetGlobalStyle(SpkUiStyle);
void SetGlobalStyle(const SpkUiStyle, const bool aPreserveAccentColor);
};