forked from openkylin/qt5-ukui-platformtheme
issues#I8XJF0 I8XJ84 Tooltip menu圆角响应窗口圆角,toolbutton文字颜色checked模式下修正
This commit is contained in:
parent
365a930adf
commit
5cbd96d9be
|
@ -1431,7 +1431,7 @@ void UKUIConfigStyleParameters::initConfigToolButtonLabelParameters(bool isDark,
|
||||||
if (isImportant)
|
if (isImportant)
|
||||||
buttonColorCfg = readCfg()->toolButtonColorCfg(option->palette, C_Button_ImportButton);
|
buttonColorCfg = readCfg()->toolButtonColorCfg(option->palette, C_Button_ImportButton);
|
||||||
|
|
||||||
if(option->state & QStyle::State_On | QStyle::State_Enabled){
|
if(option->state & QStyle::State_On && option->state & QStyle::State_Enabled){
|
||||||
buttonColorCfg = readCfg()->toolButtonColorCfg(option->palette, C_Button_ImportButton);
|
buttonColorCfg = readCfg()->toolButtonColorCfg(option->palette, C_Button_ImportButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2740,6 +2740,7 @@ void UKUIConfigStyleParameters::initConfigRadioButtonParameters(bool isDark, con
|
||||||
QBrush childrenOnClickBrush = radioButtonColorCfg.childrenOnClickBrush;
|
QBrush childrenOnClickBrush = radioButtonColorCfg.childrenOnClickBrush;
|
||||||
QBrush childrenOnDisableBrush = radioButtonColorCfg.childrenOnDisableBrush;
|
QBrush childrenOnDisableBrush = radioButtonColorCfg.childrenOnDisableBrush;
|
||||||
QBrush onHoverBrush = QBrush(radioButtonColorCfg.onHoverBrush);
|
QBrush onHoverBrush = QBrush(radioButtonColorCfg.onHoverBrush);
|
||||||
|
|
||||||
if (radioButtonColorCfg.onHoverType == Obj_Gradient_Type) {
|
if (radioButtonColorCfg.onHoverType == Obj_Gradient_Type) {
|
||||||
QLinearGradient linearGradient;
|
QLinearGradient linearGradient;
|
||||||
linearGradient.setStart(option->rect.topLeft());
|
linearGradient.setStart(option->rect.topLeft());
|
||||||
|
@ -3469,6 +3470,10 @@ void UKUIConfigStyleParameters::initConfigToolTipParameters(bool isDark, const Q
|
||||||
int radius = (widget && widget->property("normalRadius").isValid()) ?
|
int radius = (widget && widget->property("normalRadius").isValid()) ?
|
||||||
widget->property("normalRadius").toInt() : m_radiusStruct.normalRadius;
|
widget->property("normalRadius").toInt() : m_radiusStruct.normalRadius;
|
||||||
|
|
||||||
|
auto settings = UKUIStyleSettings::globalInstance();
|
||||||
|
if(settings && settings->keys().contains("windowRadius"))
|
||||||
|
radius = settings->get("windowRadius").toInt();
|
||||||
|
|
||||||
if (widget) {
|
if (widget) {
|
||||||
if (widget->property("setRadius").isValid() && widget->property("setRadius").canConvert<int>()) {
|
if (widget->property("setRadius").isValid() && widget->property("setRadius").canConvert<int>()) {
|
||||||
radius = widget->property("setRadius").value<int>();
|
radius = widget->property("setRadius").value<int>();
|
||||||
|
@ -3631,6 +3636,11 @@ void UKUIConfigStyleParameters::initConfigMenuParameters(bool isDark, const QSty
|
||||||
{
|
{
|
||||||
int frameradius = (widget && widget->property("maxRadius").isValid()) ?
|
int frameradius = (widget && widget->property("maxRadius").isValid()) ?
|
||||||
widget->property("maxRadius").toInt() : m_radiusStruct.maxRadius;
|
widget->property("maxRadius").toInt() : m_radiusStruct.maxRadius;
|
||||||
|
|
||||||
|
auto settings = UKUIStyleSettings::globalInstance();
|
||||||
|
if(settings && settings->keys().contains("windowRadius"))
|
||||||
|
frameradius = settings->get("windowRadius").toInt();
|
||||||
|
|
||||||
int itemradius = (widget && widget->property("normalRadius").isValid()) ?
|
int itemradius = (widget && widget->property("normalRadius").isValid()) ?
|
||||||
widget->property("normalRadius").toInt() : m_radiusStruct.normalRadius;
|
widget->property("normalRadius").toInt() : m_radiusStruct.normalRadius;
|
||||||
// QPixmap framePixmap(option->rect.size());
|
// QPixmap framePixmap(option->rect.size());
|
||||||
|
|
Loading…
Reference in New Issue