mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-13 12:22:05 +08:00
对DDE下主题切换的修复
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -68,5 +68,5 @@ namespace SpkUi
|
||||
|
||||
void CrashSignalHandler(int);
|
||||
|
||||
void SetGlobalStyle(SpkUiStyle);
|
||||
void SetGlobalStyle(const SpkUiStyle, const bool aPreserveAccentColor);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user