mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 20:45:57 +08:00
Modify the color behavior of the toolbar buttons.
This commit is contained in:
parent
9bf18031ce
commit
f534885e34
@ -225,11 +225,11 @@ QtObject
|
|||||||
height: Theme.getSize("button_icon").height;
|
height: Theme.getSize("button_icon").height;
|
||||||
color:
|
color:
|
||||||
{
|
{
|
||||||
if(control.checkable && control.checked && control.hovered)
|
if (control.checked && control.hovered)
|
||||||
{
|
{
|
||||||
return Theme.getColor("toolbar_button_text_active_hover");
|
return Theme.getColor("toolbar_button_text_active_hover");
|
||||||
}
|
}
|
||||||
else if(control.pressed || (control.checkable && control.checked))
|
else if (control.checked)
|
||||||
{
|
{
|
||||||
return Theme.getColor("toolbar_button_text_active");
|
return Theme.getColor("toolbar_button_text_active");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user