complete the adaptation for QToolTip
This commit is contained in:
parent
a9c7975df9
commit
452bdc6f29
|
@ -3880,11 +3880,11 @@ void UKUIConfigStyleParameters::initConfigToolTipParameters(bool isDark, const Q
|
|||
|
||||
UKUIColorTheme::ToolTipColorCfg tooltipColorCfg = readCfg()->toolTipColorCfg(palette, C_ToolTip_Default);
|
||||
|
||||
QPen backgroundPen = QPen(tooltipColorCfg.backgroundPen, (tooltipColorCfg.backgroundPen.alpha() == 0 ||
|
||||
tooltipColorCfg.backgroundPen == Qt::NoPen ) ? 0 : 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
|
||||
QPen backgroundPen = QPen(m_dtconfig->kLineWindowAcitive(), (m_dtconfig->kLineWindowAcitive().alpha() == 0 ||
|
||||
m_dtconfig->kLineWindowAcitive() == Qt::NoPen ) ? 0 : 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
|
||||
|
||||
//background
|
||||
auto color = tooltipColorCfg.backgroundBrush;
|
||||
auto color = m_dtconfig->baseActive();
|
||||
if (UKUIStyleSettings::isSchemaInstalled("org.ukui.style")) {
|
||||
auto opacity = UKUIStyleSettings::globalInstance()->get("menuTransparency").toInt()/100.0;
|
||||
color.setAlphaF(opacity);
|
||||
|
@ -3907,7 +3907,7 @@ void UKUIConfigStyleParameters::initConfigToolTipParameters(bool isDark, const Q
|
|||
QBrush backgroundBrush = color;
|
||||
|
||||
int radius = (widget && widget->property("normalRadius").isValid()) ?
|
||||
widget->property("normalRadius").toInt() : m_radiusStruct.normalRadius;
|
||||
widget->property("normalRadius").toInt() : m_dtconfig->kradiusNormal();
|
||||
|
||||
auto settings = UKUIStyleSettings::globalInstance();
|
||||
if(settings && settings->keys().contains("windowRadius"))
|
||||
|
|
Loading…
Reference in New Issue