mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:09:00 +08:00
Move the button text from PrinterButton to the style in Theme
This commit is contained in:
parent
d445bb191e
commit
f5e4ef108e
18
styles.qml
18
styles.qml
@ -54,6 +54,24 @@ QtObject {
|
|||||||
}
|
}
|
||||||
Behavior on color { ColorAnimation { duration: 50; } }
|
Behavior on color { ColorAnimation { duration: 50; } }
|
||||||
cornerSize: UM.Theme.sizes.default_margin.width;
|
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 {
|
label: Item {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user