加入ColorSet的enum方便获取,SpkLoading使用主题色

This commit is contained in:
RigoLigo
2021-07-23 14:21:04 +08:00
parent e2821b13e0
commit d49917c6fb
3 changed files with 22 additions and 4 deletions
+3 -3
View File
@@ -268,9 +268,9 @@ namespace SpkUi
void UiMetaObject::SetAccentColor(QColor aColor)
{
CurrentColorSet[3] = aColor.lighter(80);
CurrentColorSet[4] = aColor;
CurrentColorSet[10] = ColorTextOnBackground(aColor);
CurrentColorSet[AccentColor] = aColor.lighter(80);
CurrentColorSet[AccentColorHighlighted] = aColor;
CurrentColorSet[TextOnAccentColor] = ColorTextOnBackground(aColor);
qApp->setStyleSheet(StylesheetFromColors(CurrentColorSet));
}