mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-06-22 22:23:49 +08:00
加入ColorSet的enum方便获取,SpkLoading使用主题色
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user