forked from openkylin/qt5-ukui-platformtheme
sync platformtheme 3.20
This commit is contained in:
parent
d83f2b5b24
commit
f7c20853d9
|
@ -1,10 +1,91 @@
|
|||
qt5-ukui-platformtheme (3.1.4.1~0509-0k0) v101; urgency=medium
|
||||
qt5-ukui-platformtheme (3.14.2.3-0k1) yangtze; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:无
|
||||
需求号:无
|
||||
其他改:修复gitee平台编译失败问题
|
||||
影响域:主题框架编译
|
||||
|
||||
-- xibowen <xibowen@kylinos.cn> Mon, 13 Jun 2022 16:22:00 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.14.2.3-0k0) yangtze; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:123302,修改viemitem下的checkbox没有颜色样式的问题
|
||||
123144,修改scroll的悬停状态样式不正确的问题
|
||||
需求号:无
|
||||
其他改:调整颜色渐变规则,按照设计稿需求调整悬停渐变颜色样式
|
||||
影响域:tree,table,list控件的checkbox模式样式,scroll悬停颜色,所有控件的渐变颜色规律
|
||||
|
||||
-- xibowen <xibowen@kylinos.cn> Mon, 13 Jun 2022 09:55:00 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.14.2.2) yangtze; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:120162,寻光主题scroll三态颜色不正确的问题
|
||||
115336,修复combobox下拉框的选择的勾勾图标名称,修改为object-select-symbolic,使得图标更加清晰
|
||||
123111,修改和印主题深色模式下radiobutton与checkbox三态颜色正确的问题
|
||||
123239,修改和印主题slider的悬停颜色错误问题,调整为渐变颜色
|
||||
122778,修改文件对话框的文件列表没有三态的问题
|
||||
114650,修改lineedit设置的action图标没有反白的问题
|
||||
需求号:无
|
||||
其他改:无
|
||||
影响域:寻光主题下的scroll三态样式,和印主题下的radiobutton、checkbox与slider三态样式,文件对话框的列表三态样式,lineedit图标反白
|
||||
|
||||
-- xibowen <xibowen@kylinos.cn> Wed, 08 Jun 2022 17:55:00 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.14.2.1) yangtze; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:114387(list,tree,table控件选中时图标变色的问题)
|
||||
需求号:无
|
||||
其他改:修复progressbar的宽度问题
|
||||
依据设计师,调整色板base颜色为29,29,29
|
||||
tabbar添加协议属性,可控制圆角参数
|
||||
radiobutton添加协议属性,可控制背景色与描边效果
|
||||
影响域:progressbar的宽度,控件背景颜色的调整,tabbar与radiobutton添加可配置属性
|
||||
|
||||
-- xibowen <xibowen@kylinos.cn> Mon, 30 May 2022 10:10:00 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.14.2.0) jammy; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:无
|
||||
需求号:77049(Menu),56595(主题色切换)
|
||||
其他改:无
|
||||
影响域:tabwidget,窗口移动效果
|
||||
|
||||
-- xibowen <xibowen@kylinos.cn> Tue, 24 May 2022 15:23:00 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.14.1.0) jammy; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:无
|
||||
需求号:77049(tabwidget)
|
||||
其他改:同步tablet窗口移动不灵活的问题修改
|
||||
影响域:tabwidget,窗口移动效果
|
||||
|
||||
-- xibowen <xibowen@kylinos.cn> Wed, 18 May 2022 20:08:00 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.13.0-0k0) jammy; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:95836,checkbox颜色问题
|
||||
117939,slider的悬停颜色没有变化的问题
|
||||
需求号:77049(list,table,tree,checkbox,radiobutton,slider,progressbar,scroll,tooltip)
|
||||
其他改:麒麟影音加入使用暗主题黑名单
|
||||
生物特征去除无法切换黑白主题黑名单
|
||||
影响域:list,table,tree,checkbox,radiobutton,slider,progressbar,scroll,tooltip,麒麟影音,生物特征黑白主题切换
|
||||
|
||||
-- xibowen <xibowen@kylinos.cn> Wed, 18 May 2022 11:11:00 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.1.4.1~0509-0k0) jammy; urgency=medium
|
||||
|
||||
* 修改为quilt格式
|
||||
|
||||
-- Xie Wei <xiewei@kylinos.cn> Tue, 10 May 2022 11:54:54 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.1.4-1~0509) v101; urgency=medium
|
||||
qt5-ukui-platformtheme (3.1.4-1~0509) jammy; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:113049(处理图标加了透明度的问题)
|
||||
|
@ -20,7 +101,7 @@ qt5-ukui-platformtheme (3.1.4-1~0509) v101; urgency=medium
|
|||
|
||||
-- xibowen <xibowen@kylinos.cn> Mon, 09 May 2022 17:05:00 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.1.4-1~0427) v101; urgency=medium
|
||||
qt5-ukui-platformtheme (3.1.4-1~0427) jammy; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:无
|
||||
|
@ -30,7 +111,7 @@ qt5-ukui-platformtheme (3.1.4-1~0427) v101; urgency=medium
|
|||
|
||||
-- xibowen <xibowen@kylinos.cn> Wed, 27 Apr 2022 18:10:00 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.1.4-1~0426) v101; urgency=medium
|
||||
qt5-ukui-platformtheme (3.1.4-1~0426) jammy; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:无
|
||||
|
@ -40,7 +121,7 @@ qt5-ukui-platformtheme (3.1.4-1~0426) v101; urgency=medium
|
|||
|
||||
-- xibowen <xibowen@kylinos.cn> Tue, 26 Apr 2022 15:10:00 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.1.4-1~0422.1) v101; urgency=medium
|
||||
qt5-ukui-platformtheme (3.1.4-1~0422.1) jammy; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:无
|
||||
|
@ -50,7 +131,7 @@ qt5-ukui-platformtheme (3.1.4-1~0422.1) v101; urgency=medium
|
|||
|
||||
-- xibowen <xibowen@kylinos.cn> Fri, 22 Apr 2022 11:40:00 +0800
|
||||
|
||||
qt5-ukui-platformtheme (3.1.4-1~0422) v101; urgency=medium
|
||||
qt5-ukui-platformtheme (3.1.4-1~0422) jammy; urgency=medium
|
||||
|
||||
* 改动:
|
||||
BUG号:无
|
||||
|
|
|
@ -4,22 +4,22 @@ Priority: optional
|
|||
Maintainer: Kylin Team <team+kylin@tracker.debian.org>
|
||||
Uploaders: handsome_feng <jianfengli@ubuntukylin.com>
|
||||
Build-Depends: debhelper-compat (=12),
|
||||
libglib2.0-dev,
|
||||
libgsettings-qt-dev,
|
||||
libkf5wayland-dev,
|
||||
libkf5windowsystem-dev,
|
||||
libqt5x11extras5-dev,
|
||||
libqt5xdgiconloader-dev,
|
||||
pkg-config,
|
||||
pkg-kde-tools,
|
||||
libglib2.0-dev,
|
||||
libqt5x11extras5-dev,
|
||||
libkf5windowsystem-dev,
|
||||
libkf5wayland-dev,
|
||||
libgsettings-qt-dev,
|
||||
pkg-config,
|
||||
qt5-qmake,
|
||||
qtbase5-dev,
|
||||
qtbase5-dev-tools,
|
||||
qtbase5-private-dev,
|
||||
qtchooser,
|
||||
qtdeclarative5-dev,
|
||||
qttools5-dev-tools,
|
||||
libqt5xdgiconloader-dev,
|
||||
qtquickcontrols2-5-dev,
|
||||
qttools5-dev-tools
|
||||
qtdeclarative5-dev
|
||||
Standards-Version: 4.5.1
|
||||
Rules-Requires-Root: no
|
||||
Homepage: https://www.ukui.org
|
||||
|
@ -29,9 +29,9 @@ Vcs-Browser: https://github.com/ukui/qt5-ukui-platformtheme
|
|||
Package: qt5-ukui-platformtheme
|
||||
Architecture: any
|
||||
Depends: libqt5-ukui-style1,
|
||||
libqt5xdgiconloader3,
|
||||
qt5-gesture-extensions,
|
||||
qt5-styles-ukui,
|
||||
qt5-gesture-extensions,
|
||||
libqt5xdgiconloader3,
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Description: Qt5 QPA platform theme of UKUI
|
||||
|
@ -45,7 +45,9 @@ Description: Qt5 QPA platform theme of UKUI
|
|||
|
||||
Package: qt5-styles-ukui
|
||||
Architecture: any
|
||||
Depends: libqt5-ukui-style1, ${misc:Depends}, ${shlibs:Depends}
|
||||
Depends: libqt5-ukui-style1,
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Description: QStyle plugins provided by ukui
|
||||
qt5-ukui-platformtheme is official platform theme of UKUI desktop
|
||||
environment. It also provides the common metadatas for ukui-styles
|
||||
|
@ -59,8 +61,8 @@ Description: QStyle plugins provided by ukui
|
|||
Package: libqt5-ukui-style1
|
||||
Architecture: any
|
||||
Depends: libglib2.0-0,
|
||||
libgsettings-qt1,
|
||||
libqt5widgets5,
|
||||
libgsettings-qt1,
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Provides: libqt5-ukui-style
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
libqt5-ukui-style/*.h usr/include/qt5-ukui
|
||||
libqt5-ukui-style/*/*.h usr/include/qt5-ukui
|
||||
libqt5-ukui-style/*/*/*.h usr/include/qt5-ukui
|
||||
usr/lib/*/*.so
|
||||
usr/lib/*/pkgconfig/*.pc
|
||||
usr/lib/*/*.so
|
||||
|
|
|
@ -64,6 +64,7 @@ static const QStringList useDarkPaletteList() {
|
|||
l<<"ukui-flash-disk";
|
||||
// l<<"ukui-bluetooth";
|
||||
l<<"mktip";
|
||||
l<<"kylin-video";
|
||||
|
||||
return l;
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
</description>
|
||||
</key>
|
||||
<key type="s" name="theme-color">
|
||||
<default>"daybreakBlue"</default>
|
||||
<default>"default"</default>
|
||||
<summary> theme color</summary>
|
||||
<description>Set theme color for UKUI desktop environment.</description>
|
||||
</key>
|
||||
|
|
|
@ -272,7 +272,7 @@ void BlurHelper::delayUpdate(QWidget *w, bool updateBlurRegionOnly)
|
|||
break;
|
||||
}
|
||||
QPainterPath path;
|
||||
path.addRoundedRect(widget->rect().adjusted(+5,+5,-5,-5), 6, 6);
|
||||
path.addRoundedRect(widget->rect().adjusted(+5,+5,-5,-5), 8, 8);
|
||||
KWindowEffects::enableBlurBehind(widget->winId(), true, path.toFillPolygon().toPolygon());
|
||||
if (!updateBlurRegionOnly)
|
||||
widget->update();
|
||||
|
@ -281,7 +281,7 @@ void BlurHelper::delayUpdate(QWidget *w, bool updateBlurRegionOnly)
|
|||
|
||||
if (widget->inherits("QTipLabel")) {
|
||||
QPainterPath path;
|
||||
path.addRoundedRect(widget->rect().adjusted(+3,+3,-3,-3),4, 4);
|
||||
path.addRoundedRect(widget->rect().adjusted(+3,+3,-3,-3),6, 6);
|
||||
KWindowEffects::enableBlurBehind(widget->winId(), true, path.toFillPolygon().toPolygon());
|
||||
if (!updateBlurRegionOnly)
|
||||
widget->update();
|
||||
|
|
|
@ -42,7 +42,7 @@ ProxyStylePlugin::ProxyStylePlugin()
|
|||
auto settings = UKUIStyleSettings::globalInstance();
|
||||
connect(settings, &UKUIStyleSettings::changed, this, [=](const QString &key) {
|
||||
if (key == "styleName" || key == "widgetThemeName") {
|
||||
if (blackList().contains(qAppName()) || qAppName() == "biometric-manager" || qAppName() == "kylin-software-center.py")
|
||||
if (blackList().contains(qAppName()) || qAppName() == "kylin-software-center.py")
|
||||
return;
|
||||
|
||||
//We should not swich a application theme which use internal style.
|
||||
|
|
|
@ -128,7 +128,7 @@ bool WindowManager::eventFilter(QObject *obj, QEvent *e)
|
|||
* if return false will cause these windows to behave abnormally
|
||||
* \author wangweinan@kylinos.cn
|
||||
*/
|
||||
if (qAbs(event->pos().x() - m_start_point.x()) < 2 ||
|
||||
if (qAbs(event->pos().x() - m_start_point.x()) < 2 &&
|
||||
qAbs(event->pos().y() - m_start_point.y()) < 2) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "checkbox-parameters.h"
|
||||
|
||||
CheckBoxParameters::CheckBoxParameters()
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef CHECKBOXPARAMETERS_H
|
||||
#define CHECKBOXPARAMETERS_H
|
||||
|
||||
#include <QBrush>
|
||||
#include <QPen>
|
||||
|
||||
class CheckBoxParameters
|
||||
{
|
||||
public:
|
||||
CheckBoxParameters();
|
||||
|
||||
//private:
|
||||
int radius;
|
||||
|
||||
QBrush checkBoxDefaultBrush;
|
||||
QBrush checkBoxHoverBrush;
|
||||
QBrush checkBoxClickBrush;
|
||||
QBrush checkBoxDisableBrush;
|
||||
QBrush checkBoxOnDefaultBrush;
|
||||
QBrush checkBoxOnHoverBrush;
|
||||
QBrush checkBoxOnClickBrush;
|
||||
|
||||
QPen checkBoxDefaultPen;
|
||||
QPen checkBoxHoverPen;
|
||||
QPen checkBoxClickPen;
|
||||
QPen checkBoxDisablePen;
|
||||
QPen checkBoxOnDefaultPen;
|
||||
QPen checkBoxOnHoverPen;
|
||||
QPen checkBoxOnClickPen;
|
||||
};
|
||||
|
||||
#endif // CHECKBOXPARAMETERS_H
|
File diff suppressed because it is too large
Load Diff
|
@ -32,6 +32,17 @@
|
|||
#include "lineedit-parameters.h"
|
||||
#include "spinbox-parameters.h"
|
||||
#include "combobox-parameters.h"
|
||||
#include "list-parameters.h"
|
||||
#include "tree-parameters.h"
|
||||
#include "table-parameters.h"
|
||||
#include "checkbox-parameters.h"
|
||||
#include "radiobutton-parameters.h"
|
||||
#include "slider-parameters.h"
|
||||
#include "progressbar-parameters.h"
|
||||
#include "scrollbar-parameters.h"
|
||||
#include "tooltip-parameters.h"
|
||||
#include "tabwidget-parameters.h"
|
||||
#include "menu-parameters.h"
|
||||
|
||||
|
||||
|
||||
|
@ -62,10 +73,9 @@ public:
|
|||
|
||||
// menu
|
||||
int Menu_MarginHeight = 4 + 5;
|
||||
int Menu_Combobox_Popup_MarginHeight = 6;
|
||||
int Menu_Combobox_Popup_MarginHeight = 4;
|
||||
int Menu_MarginWidth = 4 + 5;
|
||||
int Menu_MarginPanelWidth = 0;
|
||||
int Menu_Radius = 8;
|
||||
|
||||
// menu-item
|
||||
int MenuItem_MarginHeight = 2;
|
||||
|
@ -74,7 +84,6 @@ public:
|
|||
int MenuItemSeparator_MarginWidth = 4;
|
||||
int MenuItem_DefaultHeight = 36;
|
||||
int MenuItem_DefaultWidght = 152;
|
||||
int MenuItem_Radius = 6;
|
||||
|
||||
// scrollbar
|
||||
int ScroolBar_Width = 16;
|
||||
|
@ -94,7 +103,6 @@ public:
|
|||
int ExclusiveIndicator_Height = 16;
|
||||
int RadioButtonLabel_Spacing = 8;
|
||||
int RadioButton_DefaultHeight = 36;
|
||||
int RadioButton_OnLength = 6;
|
||||
|
||||
// checkbox
|
||||
int Indicator_Width = 16;
|
||||
|
@ -135,14 +143,21 @@ public:
|
|||
LineEditParameters lineEditParameters;
|
||||
SpinBoxParameters spinBoxParameters;
|
||||
ComboBoxParameters comboBoxParameters;
|
||||
|
||||
|
||||
|
||||
ListParameters listParameters;
|
||||
TreeParameters treeParameters;
|
||||
TableParameters tableParameters;
|
||||
CheckBoxParameters checkBoxParameters;
|
||||
RadioButtonParameters radioButtonParameters;
|
||||
SliderParameters sliderParameters;
|
||||
ProgressBarParameters progressBarParameters;
|
||||
ScrollBarParameters scrollBarParameters;
|
||||
ToolTipParameters toolTipParameters;
|
||||
TabWidgetParameters tabWidgetParameters;
|
||||
MenuParameters menuParameters;
|
||||
|
||||
|
||||
|
||||
QPalette setPalette(QPalette &palette);
|
||||
virtual QColor radiobutton_default(bool isDark) = 0;// palette::Button
|
||||
|
||||
virtual void initPalette(bool isDark) = 0;
|
||||
virtual void initPushButtonParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
|
@ -150,6 +165,17 @@ public:
|
|||
virtual void initLineEditParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initSpinBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initComboBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initListParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initTreeParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initTableParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initCheckBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initRadioButtonParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initSliderParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initProgressBarParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initScrollBarParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initToolTipParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initTabWidgetParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
virtual void initMenuParameters(bool isDark, const QStyleOption *option, const QWidget *widget) = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -158,14 +184,23 @@ class KDefaultStyleParameters : public KAbstractStyleParameters
|
|||
public:
|
||||
KDefaultStyleParameters(QObject *parent, bool isDark);
|
||||
|
||||
QColor radiobutton_default(bool isDark) override;
|
||||
|
||||
void initPalette(bool isDark) override;
|
||||
void initPushButtonParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initToolButtonParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initLineEditParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initSpinBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initComboBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initListParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initTreeParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initTableParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initCheckBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initRadioButtonParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initSliderParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initProgressBarParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initScrollBarParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initToolTipParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initTabWidgetParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initMenuParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -174,14 +209,23 @@ class KClassicalStyleParameters : public KAbstractStyleParameters
|
|||
public:
|
||||
KClassicalStyleParameters(QObject *parent, bool isDark);
|
||||
|
||||
QColor radiobutton_default(bool isDark) override;
|
||||
|
||||
void initPalette(bool isDark) override;
|
||||
void initPushButtonParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initToolButtonParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initLineEditParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initSpinBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initComboBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initListParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initTreeParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initTableParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initCheckBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initRadioButtonParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initSliderParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initProgressBarParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initScrollBarParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initToolTipParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initTabWidgetParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initMenuParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -190,13 +234,22 @@ class KFashionStyleParameters : public KAbstractStyleParameters
|
|||
public:
|
||||
KFashionStyleParameters(QObject *parent, bool isDark);
|
||||
|
||||
QColor radiobutton_default(bool isDark) override;
|
||||
|
||||
void initPalette(bool isDark) override;
|
||||
void initPushButtonParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initToolButtonParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initLineEditParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initSpinBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initComboBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initListParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initTreeParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initTableParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initCheckBoxParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initRadioButtonParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initSliderParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initProgressBarParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initScrollBarParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initToolTipParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initTabWidgetParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
void initMenuParameters(bool isDark, const QStyleOption *option, const QWidget *widget) override;
|
||||
};
|
||||
#endif // KABSTRACTSTYLEPARAMETERS_H
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
#include "list-parameters.h"
|
||||
|
||||
ListParameters::ListParameters()
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef LISTPARAMETERS_H
|
||||
#define LISTPARAMETERS_H
|
||||
|
||||
#include <QBrush>
|
||||
|
||||
class ListParameters
|
||||
{
|
||||
public:
|
||||
ListParameters();
|
||||
|
||||
//private:
|
||||
int radius;
|
||||
|
||||
QBrush listDefaultBrush;
|
||||
QBrush listHoverBrush;
|
||||
QBrush listSelectBrush;
|
||||
QBrush listDisableBrush;
|
||||
};
|
||||
|
||||
#endif // LISTPARAMETERS_H
|
|
@ -1,94 +0,0 @@
|
|||
#include <KWindowEffects>
|
||||
#include <QApplication>
|
||||
#include <QPainterPath>
|
||||
|
||||
#include "qt5-ukui-style.h"
|
||||
#include "ukui-style-settings.h"
|
||||
#include "black-list.h"
|
||||
#include "kabstract-style-parameters.h"
|
||||
|
||||
|
||||
extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed);
|
||||
|
||||
void Qt5UKUIStyle::drawMenuPrimitive(const QStyleOption *option, QPainter *painter, const QWidget *widget) const
|
||||
{
|
||||
int rander = 5;
|
||||
painter->save();
|
||||
painter->setRenderHint(QPainter::Antialiasing);
|
||||
QPainterPath rectPath;
|
||||
rectPath.addRoundedRect(option->rect.adjusted(+rander, +rander, -rander, -rander), sp->Menu_Radius, sp->Menu_Radius);
|
||||
|
||||
// Draw a black floor
|
||||
QPixmap pixmap(option->rect.size());
|
||||
pixmap.fill(Qt::transparent);
|
||||
QPainter pixmapPainter(&pixmap);
|
||||
pixmapPainter.setRenderHint(QPainter::Antialiasing);
|
||||
pixmapPainter.setPen(Qt::transparent);
|
||||
pixmapPainter.setBrush(option->palette.color(QPalette::Active, QPalette::BrightText));
|
||||
pixmapPainter.drawPath(rectPath);
|
||||
pixmapPainter.end();
|
||||
|
||||
// Blur the black background
|
||||
QImage img = pixmap.toImage();
|
||||
qt_blurImage(img, 4, false, false);
|
||||
|
||||
// Dig out the center part
|
||||
pixmap = QPixmap::fromImage(img);
|
||||
QPainter pixmapPainter2(&pixmap);
|
||||
pixmapPainter2.setRenderHint(QPainter::Antialiasing);
|
||||
pixmapPainter2.setCompositionMode(QPainter::CompositionMode_Clear);
|
||||
pixmapPainter2.setPen(Qt::transparent);
|
||||
pixmapPainter2.setBrush(Qt::transparent);
|
||||
pixmapPainter2.drawPath(rectPath);
|
||||
|
||||
// Shadow rendering
|
||||
painter->drawPixmap(option->rect, pixmap, pixmap.rect());
|
||||
|
||||
//That's when I started drawing the frame floor
|
||||
QStyleOption opt = *option;
|
||||
auto color = opt.palette.color(QPalette::Base);
|
||||
if (UKUIStyleSettings::isSchemaInstalled("org.ukui.style")) {
|
||||
auto opacity = UKUIStyleSettings::globalInstance()->get("menuTransparency").toInt()/100.0;
|
||||
color.setAlphaF(opacity);
|
||||
}
|
||||
|
||||
if (qApp->property("blurEnable").isValid()) {
|
||||
bool blurEnable = qApp->property("blurEnable").toBool();
|
||||
if (!blurEnable) {
|
||||
color.setAlphaF(1);
|
||||
}
|
||||
}
|
||||
|
||||
if (widget) {
|
||||
if (widget->property("useSystemStyleBlur").isValid() && !widget->property("useSystemStyleBlur").toBool()) {
|
||||
color.setAlphaF(1);
|
||||
}
|
||||
}
|
||||
|
||||
//if blur effect is not supported, do not use transparent color.
|
||||
if (!KWindowEffects::isEffectAvailable(KWindowEffects::BlurBehind) || blackAppListWithBlurHelper().contains(qAppName())) {
|
||||
color.setAlphaF(1);
|
||||
}
|
||||
|
||||
opt.palette.setColor(QPalette::Base, color);
|
||||
|
||||
QPen pen(opt.palette.color(QPalette::Normal, QPalette::Dark), 1);
|
||||
pen.setCapStyle(Qt::RoundCap);
|
||||
pen.setJoinStyle(Qt::RoundJoin);
|
||||
painter->setPen(Qt::transparent);
|
||||
painter->setBrush(color);
|
||||
|
||||
QPainterPath path;
|
||||
QRegion region;
|
||||
if (widget)
|
||||
region = widget->mask();
|
||||
if (region.isEmpty())
|
||||
path.addRoundedRect(opt.rect.adjusted(+rander, +rander, -rander,-rander), sp->Menu_Radius, sp->Menu_Radius);
|
||||
else
|
||||
path.addRegion(region);
|
||||
|
||||
//painter->drawPolygon(path.toFillPolygon().toPolygon());
|
||||
painter->drawPath(path);
|
||||
painter->restore();
|
||||
return;
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "menu-parameters.h"
|
||||
|
||||
MenuParameters::MenuParameters()
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef MENUPARAMETERS_H
|
||||
#define MENUPARAMETERS_H
|
||||
|
||||
#include <QPixmap>
|
||||
#include <QBrush>
|
||||
|
||||
class MenuParameters
|
||||
{
|
||||
public:
|
||||
MenuParameters();
|
||||
|
||||
int frameRadius;
|
||||
int itemRadius;
|
||||
|
||||
QBrush menuItemSelectBrush;
|
||||
|
||||
QPixmap menuFramePixmap;
|
||||
};
|
||||
|
||||
#endif // MENUPARAMETERS_H
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "progressbar-parameters.h"
|
||||
|
||||
ProgressBarParameters::ProgressBarParameters()
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef PROGRESSBARPARAMETERS_H
|
||||
#define PROGRESSBARPARAMETERS_H
|
||||
|
||||
#include <QBrush>
|
||||
|
||||
class ProgressBarParameters
|
||||
{
|
||||
public:
|
||||
ProgressBarParameters();
|
||||
|
||||
//private:
|
||||
int radius;
|
||||
|
||||
QBrush progressBarContentBrush;
|
||||
|
||||
QBrush progressBarGrooveDefaultBrush;
|
||||
QBrush progressBarGrooveDisableBrush;
|
||||
|
||||
};
|
||||
|
||||
#endif // PROGRESSBARPARAMETERS_H
|
|
@ -30,40 +30,61 @@ DEFINES += QT_MESSAGELOGCONTEXT
|
|||
SOURCES += \
|
||||
box-animation-helper.cpp \
|
||||
button-animation-helper.cpp \
|
||||
checkbox-parameters.cpp \
|
||||
combobox-parameters.cpp \
|
||||
kabstract-style-parameters.cpp \
|
||||
lineedit-parameters.cpp \
|
||||
menu-helper.cpp \
|
||||
list-parameters.cpp \
|
||||
menu-parameters.cpp \
|
||||
progressbar-animation-helper.cpp \
|
||||
progressbar-animation.cpp \
|
||||
progressbar-parameters.cpp \
|
||||
pushbutton-parameters.cpp \
|
||||
qt5-ukui-style-plugin.cpp \
|
||||
qt5-ukui-style.cpp \
|
||||
radiobutton-parameters.cpp \
|
||||
scrollbar-parameters.cpp \
|
||||
shadow-helper.cpp \
|
||||
slider-parameters.cpp \
|
||||
spinbox-parameters.cpp \
|
||||
tab-widget-animation-helper.cpp \
|
||||
scrollbar-animation-helper.cpp \
|
||||
qt5-ukui-style-helper.cpp \
|
||||
table-parameters.cpp \
|
||||
tabwidget-parameters.cpp \
|
||||
toolbutton-parameters.cpp \
|
||||
tooltip-parameters.cpp \
|
||||
tree-parameters.cpp \
|
||||
view-helper.cpp
|
||||
|
||||
HEADERS += \
|
||||
box-animation-helper.h \
|
||||
button-animation-helper.h \
|
||||
checkbox-parameters.h \
|
||||
combobox-parameters.h \
|
||||
kabstract-style-parameters.h \
|
||||
lineedit-parameters.h \
|
||||
list-parameters.h \
|
||||
menu-parameters.h \
|
||||
progressbar-animation-helper.h \
|
||||
progressbar-animation.h \
|
||||
progressbar-parameters.h \
|
||||
pushbutton-parameters.h \
|
||||
qt5-ukui-style-plugin.h \
|
||||
qt5-ukui-style.h \
|
||||
radiobutton-parameters.h \
|
||||
scrollbar-parameters.h \
|
||||
shadow-helper.h \
|
||||
slider-parameters.h \
|
||||
spinbox-parameters.h \
|
||||
tab-widget-animation-helper.h \
|
||||
scrollbar-animation-helper.h \
|
||||
qt5-ukui-style-helper.h \
|
||||
toolbutton-parameters.h
|
||||
table-parameters.h \
|
||||
tabwidget-parameters.h \
|
||||
toolbutton-parameters.h \
|
||||
tooltip-parameters.h \
|
||||
tree-parameters.h
|
||||
DISTFILES += qt5-style-ukui.json
|
||||
|
||||
unix {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -154,9 +154,6 @@ private:
|
|||
|
||||
void setThemeColor(QString themeColor, QPalette &palette) const;
|
||||
|
||||
// menu
|
||||
void drawMenuPrimitive(const QStyleOption *option, QPainter *painter, const QWidget *widget) const;
|
||||
|
||||
// view
|
||||
QString calculateElidedText(const QString &text, const QTextOption &textOption,
|
||||
const QFont &font, const QRect &textRect, const Qt::Alignment valign,
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
#include "radiobutton-parameters.h"
|
||||
|
||||
RadioButtonParameters::RadioButtonParameters()
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef RADIOBUTTONPARAMETERS_H
|
||||
#define RADIOBUTTONPARAMETERS_H
|
||||
|
||||
#include <QBrush>
|
||||
#include <QPen>
|
||||
|
||||
class RadioButtonParameters
|
||||
{
|
||||
public:
|
||||
RadioButtonParameters();
|
||||
|
||||
//private:
|
||||
int radius;
|
||||
|
||||
QBrush radioButtonDefaultBrush;
|
||||
QBrush radioButtonHoverBrush;
|
||||
QBrush radioButtonClickBrush;
|
||||
QBrush radioButtonDisableBrush;
|
||||
QBrush radioButtonOnDefaultBrush;
|
||||
QBrush radioButtonOnHoverBrush;
|
||||
QBrush radioButtonOnClickBrush;
|
||||
|
||||
QPen radioButtonDefaultPen;
|
||||
QPen radioButtonHoverPen;
|
||||
QPen radioButtonClickPen;
|
||||
QPen radioButtonDisablePen;
|
||||
QPen radioButtonOnDefaultPen;
|
||||
QPen radioButtonOnHoverPen;
|
||||
QPen radioButtonOnClickPen;
|
||||
};
|
||||
|
||||
#endif // RADIOBUTTONPARAMETERS_H
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "scrollbar-parameters.h"
|
||||
|
||||
ScrollBarParameters::ScrollBarParameters()
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef SCROLLBARPARAMETERS_H
|
||||
#define SCROLLBARPARAMETERS_H
|
||||
|
||||
#include <QBrush>
|
||||
|
||||
class ScrollBarParameters
|
||||
{
|
||||
public:
|
||||
ScrollBarParameters();
|
||||
|
||||
//private:
|
||||
int radius;
|
||||
QBrush scrollBarGrooveDefaultBrush;
|
||||
QBrush scrollBarGrooveInactiveBrush;
|
||||
|
||||
QBrush scrollBarSliderDefaultBrush;
|
||||
QBrush scrollBarSliderHoverBrush;
|
||||
QBrush scrollBarSliderClickBrush;
|
||||
QBrush scrollBarSliderDisableBrush;
|
||||
|
||||
};
|
||||
|
||||
#endif // SCROLLBARPARAMETERS_H
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "slider-parameters.h"
|
||||
|
||||
SliderParameters::SliderParameters()
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef SLIDERPARAMETERS_H
|
||||
#define SLIDERPARAMETERS_H
|
||||
|
||||
#include <QBrush>
|
||||
|
||||
class SliderParameters
|
||||
{
|
||||
public:
|
||||
SliderParameters();
|
||||
|
||||
//private:
|
||||
// int radius;
|
||||
QBrush sliderHandleDefaultBrush;
|
||||
QBrush sliderHandleHoverBrush;
|
||||
QBrush sliderHandleClickBrush;
|
||||
QBrush sliderHandleDisableBrush;
|
||||
|
||||
QBrush sliderGrooveValueDefaultBrush;
|
||||
QBrush sliderGrooveValueHoverBrush;
|
||||
QBrush sliderGrooveValueDisableBrush;
|
||||
|
||||
QBrush sliderGrooveUnvalueDefaultBrush;
|
||||
QBrush sliderGrooveUnvalueHoverBrush;
|
||||
QBrush sliderGrooveUnvalueDisableBrush;
|
||||
};
|
||||
|
||||
#endif // SLIDERPARAMETERS_H
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
#include "table-parameters.h"
|
||||
|
||||
TableParameters::TableParameters()
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TABLEPARAMETERS_H
|
||||
#define TABLEPARAMETERS_H
|
||||
|
||||
#include <QBrush>
|
||||
|
||||
|
||||
class TableParameters
|
||||
{
|
||||
public:
|
||||
TableParameters();
|
||||
|
||||
//private:
|
||||
int radius;
|
||||
|
||||
QBrush tableDefaultBrush;
|
||||
QBrush tableHoverBrush;
|
||||
QBrush tableSelectBrush;
|
||||
QBrush tableDisableBrush;
|
||||
};
|
||||
|
||||
#endif // TABLEPARAMETERS_H
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <xibowen@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "tabwidget-parameters.h"
|
||||
|
||||
TabWidgetParameters::TabWidgetParameters()
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <xibowen@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef TABWIDGETPARAMETERS_H
|
||||
#define TABWIDGETPARAMETERS_H
|
||||
|
||||
#include <QBrush>
|
||||
|
||||
class TabWidgetParameters
|
||||
{
|
||||
public:
|
||||
TabWidgetParameters();
|
||||
|
||||
//private:
|
||||
int radius;
|
||||
|
||||
QBrush tabWidgetBackgroundBrush;
|
||||
QBrush tabBarBackgroundBrush;
|
||||
QBrush tabBarDefaultBrush;
|
||||
QBrush tabBarHoverBrush;
|
||||
QBrush tabBarSelectBrush;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // TABWIDGETPARAMETERS_H
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "tooltip-parameters.h"
|
||||
|
||||
ToolTipParameters::ToolTipParameters()
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef TOOLTIPPARAMETERS_H
|
||||
#define TOOLTIPPARAMETERS_H
|
||||
|
||||
#include <QBrush>
|
||||
|
||||
class ToolTipParameters
|
||||
{
|
||||
public:
|
||||
ToolTipParameters();
|
||||
|
||||
//private:
|
||||
int radius;
|
||||
|
||||
QBrush toolTipBackgroundBrush;
|
||||
};
|
||||
|
||||
#endif // TOOLTIPPARAMETERS_H
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
#include "tree-parameters.h"
|
||||
|
||||
TreeParameters::TreeParameters()
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
* Qt5-UKUI's Library
|
||||
*
|
||||
* Copyright (C) 2020, Tianjin KYLIN Information Technology Co., Ltd.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this library. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Xibowen <lanyue@kylinos.cn>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TREEPARAMETERS_H
|
||||
#define TREEPARAMETERS_H
|
||||
|
||||
#include <QBrush>
|
||||
|
||||
class TreeParameters
|
||||
{
|
||||
public:
|
||||
TreeParameters();
|
||||
|
||||
//private:
|
||||
int radius;
|
||||
|
||||
QBrush treeDefaultBrush;
|
||||
QBrush treeHoverBrush;
|
||||
QBrush treeSelectBrush;
|
||||
QBrush treeDisableBrush;
|
||||
|
||||
QBrush treeBranchDefaultBrush;
|
||||
QBrush treeBranchHoverBrush;
|
||||
QBrush treeBranchSelectBrush;
|
||||
QBrush treeBranchDisableBrush;
|
||||
|
||||
};
|
||||
|
||||
#endif // TREEPARAMETERS_H
|
Loading…
Reference in New Issue