mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Move the button text from PrinterButton to the style in Theme
This commit is contained in:
parent
d445bb191e
commit
f5e4ef108e
1 changed files with 18 additions and 0 deletions
18
styles.qml
18
styles.qml
|
|
@ -54,6 +54,24 @@ QtObject {
|
|||
}
|
||||
Behavior on color { ColorAnimation { duration: 50; } }
|
||||
cornerSize: UM.Theme.sizes.default_margin.width;
|
||||
|
||||
Rectangle {
|
||||
anchors.bottom: parent.top;
|
||||
|
||||
width: parent.width;
|
||||
height: control.hovered ? label.height : 0;
|
||||
Behavior on height { NumberAnimation { duration: 75; } }
|
||||
|
||||
opacity: control.hovered ? 1.0 : 0.0;
|
||||
Behavior on opacity { NumberAnimation { duration: 75; } }
|
||||
|
||||
Label {
|
||||
id: label
|
||||
anchors.horizontalCenter: parent.horizontalCenter;
|
||||
text: control.text;
|
||||
font: UM.Theme.fonts.button_tooltip;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
label: Item {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue