mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 22:58:58 +08:00
Move the button text from PrinterButton to the style in Theme
This commit is contained in:
parent
029fabc791
commit
a751a137d9
@ -8,22 +8,4 @@ import UM 1.0 as UM
|
||||
Button {
|
||||
id: base;
|
||||
style: UM.Theme.styles.tool_button;
|
||||
|
||||
Rectangle {
|
||||
anchors.bottom: parent.top;
|
||||
|
||||
width: parent.width;
|
||||
height: base.hovered ? label.height : 0;
|
||||
Behavior on height { NumberAnimation { duration: 75; } }
|
||||
|
||||
opacity: base.hovered ? 1.0 : 0.0;
|
||||
Behavior on opacity { NumberAnimation { duration: 75; } }
|
||||
|
||||
Label {
|
||||
id: label
|
||||
anchors.horizontalCenter: parent.horizontalCenter;
|
||||
text: base.text;
|
||||
font: UM.Theme.fonts.button_tooltip;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user