forked from openkylin/qt5-ukui-platformtheme
Set theme-color default value to #3790FA
This commit is contained in:
parent
fc1a2b2305
commit
c5c909ae46
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue