mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
WIP: Disable unknown printer type buttons
This commit is contained in:
parent
2b0e9ea439
commit
b3621bae84
4 changed files with 30 additions and 4 deletions
|
@ -84,7 +84,14 @@ Button
|
|||
background: Rectangle
|
||||
{
|
||||
id: backgroundRect
|
||||
color: machineSelectorButton.hovered ? UM.Theme.getColor("action_button_hovered") : "transparent"
|
||||
color:
|
||||
{
|
||||
if (!machineSelectorButton.enabled)
|
||||
{
|
||||
return UM.Theme.getColor("action_button_disabled")
|
||||
}
|
||||
return machineSelectorButton.hovered ? UM.Theme.getColor("action_button_hovered") : "transparent"
|
||||
}
|
||||
radius: UM.Theme.getSize("action_button_radius").width
|
||||
border.width: UM.Theme.getSize("default_lining").width
|
||||
border.color: machineSelectorButton.selected ? UM.Theme.getColor("primary") : "transparent"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue