mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Grey-out buttons when using cloud connection
Contributes to CL-1247 (includes some boyscoutin')
This commit is contained in:
parent
c14aa3686c
commit
e23dd2dd6b
2 changed files with 26 additions and 21 deletions
|
@ -11,14 +11,14 @@ Button
|
|||
id: base
|
||||
background: Rectangle
|
||||
{
|
||||
color: UM.Theme.getColor("viewport_background") // TODO: Theme!
|
||||
color: enabled ? UM.Theme.getColor("viewport_background") : "transparent"
|
||||
height: base.height
|
||||
opacity: base.down || base.hovered ? 1 : 0
|
||||
radius: Math.round(0.5 * width)
|
||||
width: base.width
|
||||
}
|
||||
contentItem: Label {
|
||||
color: UM.Theme.getColor("monitor_text_primary")
|
||||
color: enabled ? UM.Theme.getColor("monitor_text_primary") : UM.Theme.getColor("monitor_text_disabled")
|
||||
font.pixelSize: 32 * screenScaleFactor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
text: base.text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue