mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-17 07:28:12 +08:00
[UI][CHG] Change pushbutton color generation
- Change default background alpha to 0
This commit is contained in:
parent
b60a35b92d
commit
43c610ed3e
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user