[UI][CHG] Change pushbutton color generation

- Change default background alpha to 0
This commit is contained in:
Linloir 2022-12-16 17:53:28 +08:00
parent b60a35b92d
commit 43c610ed3e
No known key found for this signature in database
GPG Key ID: 58EEB209A0F2C366

View File

@ -65,6 +65,7 @@ void PushButton::initializeUI() {
_indicatorEffect = new QGraphicsOpacityEffect(_indicator);
_indicatorEffect->setOpacity(0);
_indicator->setGraphicsEffect(_indicatorEffect);
_indicator->show();
// Enable mouse tracking
setMouseTracking(true);
@ -72,7 +73,7 @@ void PushButton::initializeUI() {
void PushButton::generateColor(QColor colorScheme) {
_backgroundColor = colorScheme.lighter(120);
_backgroundColor.setAlpha(5);
_backgroundColor.setAlpha(0);
_hoverColor = colorScheme.lighter(120);
_hoverColor.setAlpha(40);
_pressedColor = colorScheme.lighter(120);