Set theme-color default value to #3790FA

This commit is contained in:
xibowen 2023-11-07 15:43:01 +08:00
parent fc1a2b2305
commit c5c909ae46
2 changed files with 8 additions and 7 deletions

View File

@ -61,9 +61,10 @@
<description>Set default system palette for UKUI desktop environment.</description>
</key>
<key type="s" name="theme-color">
<default>"daybreakBlue"</default>
<default>"#3790FA"</default>
<summary> theme color</summary>
<description>Set theme color for UKUI desktop environment.include default,daybreakBlue,jamPurple,magenta,sunRed,sunsetOrange,dustGold,polarGreen, and using rgba for example "(125,125,125)" </description>
<description>Set theme color for UKUI desktop environment.include default,daybreakBlue,jamPurple,magenta,sunRed,sunsetOrange,dustGold,polarGreen,
and using rgba for example "(125,125,125) or #3790FA" </description>
</key>
<key type="b" name="cursor-blink">
<default>true</default>
@ -88,7 +89,8 @@
<description>Set custom highlight color for UKUI desktop environment.Now is to compatible with third party application</description>
</key>
<key type="i" name="window-radius">
<default>8</default>
<default>12</default>
<range min="1" max="12"/>
<summary>Window Radius</summary>
<description>Set the rounded corner size of the window</description>
</key>

View File

@ -753,8 +753,7 @@ QPalette UKUIConfigStyle::standardPalette() const
color = QColor(249, 197, 61);
} else if (themeColor == "polarGreen") {
color = QColor(82, 196, 41);
}
else if(!themeColor.isEmpty() && themeColor.startsWith("(") && themeColor.endsWith(")")){
} else if (!themeColor.isEmpty() && themeColor.startsWith("(") && themeColor.endsWith(")")) {
QColor c = color;
QString colorStr = themeColor;
colorStr = colorStr.remove(colorStr.length() - 1, 1);
@ -782,9 +781,9 @@ QPalette UKUIConfigStyle::standardPalette() const
} else
c.setAlphaF(1.0);
}
}/* else if (list.length() == 1 && list[0].startsWith("#")) {
} else if (list.length() == 1 && list[0].length() == 7 && list[0].startsWith("#")) {
c = list[0];
}*/
}
color = c;
}