窗口关闭按钮鼠标悬浮时的前景色修改为白色

This commit is contained in:
yangzhenghan 2023-11-10 15:49:59 +08:00
parent 8ab8822448
commit a0fcb0ae6d
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}