From ddf1d6763c12b774a49bc37e2b58f1a0d5837fed Mon Sep 17 00:00:00 2001 From: xibowen Date: Tue, 28 Nov 2023 09:45:09 +0800 Subject: [PATCH] task185114, add org.ukui.style.yaml --- .../settings/org.ukui.style.yaml | 94 +++++++++++++++++++ .../ukui-config-style.cpp | 1 - 2 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 libqt5-ukui-style/settings/org.ukui.style.yaml diff --git a/libqt5-ukui-style/settings/org.ukui.style.yaml b/libqt5-ukui-style/settings/org.ukui.style.yaml new file mode 100644 index 0000000..8aafc9f --- /dev/null +++ b/libqt5-ukui-style/settings/org.ukui.style.yaml @@ -0,0 +1,94 @@ +style: + 4.1.0.0-0k12: + keys: + blur-exception-classes: + _type: s + default: [] + description: 'Example: [QWidget, QWidget1, QWidget2]' + summary: a list of QWidget based classes do not blur. + cursor-blink: + _type: b + default: true + description: Globally enable or disable blinking text cursor. + summary: Blink text cursor. + cursor-blink-time: + _type: i + default: 1200 + description: The interval of text cursor blink. + summary: Blink text cursor interval. + custom-highlight-color: + _type: s + default: #3D6BE5 + description: Set custom highlight color for UKUI desktop environment.Now is + to compatible with third party application + summary: Custom highlight color + enabled-global-blur: + _type: b + default: true + description: "Globally enable or disable the window blur effects for transparent\ + \ window.\n Setting it to \"false\" will disable the effects." + summary: Enable Window Blur Effects. + icon-theme-name: + _type: s + default: ukui-icon-theme-default + description: Icon Theme for Qt Applications.Have ukui ukui-classical ukui-fashion + summary: Icon Theme for Qt Applications. + menu-transparency: + _type: i + default: 72 + description: The default transparency of menu. + summary: Menu's transparency. + peony-side-bar-transparency: + _type: i + default: 72 + description: The default transparency of the peony side bar. + summary: Peony::SideBar's transparency. + style-name: + _type: s + default: ukui-light + description: Set style for UKUI desktop environment. Have ukui-dark ukui-default + ukui-light + summary: Current Qt Style + system-font: + _type: s + default: Noto Sans CJK SC + description: System Font for Qt Applications. + summary: System Font for Qt Applications. + system-font-size: + _type: s + default: 11 + description: System Font Size for Qt Applications. Use point size. + summary: System Font Size for Qt Applications. + system-palette: + _type: s + default: '' + description: Set default system palette for UKUI desktop environment. + summary: System Palette + theme-color: + _type: s + default: #3790FA + description: "Set theme color for UKUI desktop environment.include default,daybreakBlue,jamPurple,magenta,sunRed,sunsetOrange,dustGold,polarGreen,\n\ + \ and using rgba for example \"(125,125,125) or #3790FA" + summary: theme color + use-custom-highlight-color: + _type: b + default: false + description: Globally enable or disable custom highlight color.Now is to compatible + with third party application + summary: Use custom highlight color. + use-system-palette: + _type: b + default: false + description: Globally enable or disable system palette provided by ukui platform. + summary: Use system palette. + widget-theme-name: + _type: s + default: default + description: Set system theme. Have default,classical and fashion + summary: Current widget theme name + window-radius: + _type: i + default: 12 + description: Set the rounded corner size of the window + range: 0,12 + summary: Window Radius diff --git a/ukui-styles/qt5-config-style-ukui/ukui-config-style.cpp b/ukui-styles/qt5-config-style-ukui/ukui-config-style.cpp index cb73571..3ac9ced 100644 --- a/ukui-styles/qt5-config-style-ukui/ukui-config-style.cpp +++ b/ukui-styles/qt5-config-style-ukui/ukui-config-style.cpp @@ -4013,7 +4013,6 @@ void UKUIConfigStyle::drawComplexControl(QStyle::ComplexControl control, const Q painter->setPen(width <= 0 ? Qt::NoPen : sp->m_SpinBoxParameters.spinBoxUpClickPen); painter->setBrush(sp->m_SpinBoxParameters.spinBoxUpClickBrush); } else { - qDebug() << "focus." << focus; if (focus) { upOption.state |= State_MouseOver; int width = sp->m_SpinBoxParameters.spinBoxUpFocusHoverPen.width();