窗口关闭按钮鼠标悬浮时的前景色修改为白色
This commit is contained in:
parent
8ab8822448
commit
a0fcb0ae6d
|
@ -327,6 +327,9 @@ void StandardSystemButton::paintEvent(QPaintEvent *event)
|
|||
if (!underMouse() && !d->active && d->inactiveForegroundColor.isValid()) {
|
||||
return d->inactiveForegroundColor;
|
||||
}
|
||||
if (d->buttonType == SystemButtonType::Close && underMouse()) {
|
||||
return kDefaultWhiteColor;
|
||||
}
|
||||
if (d->activeForegroundColor.isValid()) {
|
||||
return d->activeForegroundColor;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue