mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Add support for overriding the background color of a Tool button
Contributes to CURA-3577
This commit is contained in:
parent
09f23f5f91
commit
c85f635125
1 changed files with 4 additions and 1 deletions
|
@ -206,7 +206,10 @@ QtObject {
|
|||
property bool down: control.pressed || (control.checkable && control.checked);
|
||||
|
||||
color: {
|
||||
if(control.checkable && control.checked && control.hovered) {
|
||||
if(control.customColor !== undefined && control.customColor !== null) {
|
||||
return control.customColor
|
||||
}
|
||||
else if(control.checkable && control.checked && control.hovered) {
|
||||
return Theme.getColor("button_active_hover");
|
||||
} else if(control.pressed || (control.checkable && control.checked)) {
|
||||
return Theme.getColor("button_active");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue