mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:05:53 +08:00
Remove commented code from Cura theme styles.qml
This commit is contained in:
parent
fa907dfb1b
commit
e378c54ce2
@ -42,56 +42,6 @@ QtObject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
/*
|
|
||||||
property Component open_file_button: Component {
|
|
||||||
ButtonStyle {
|
|
||||||
background: Item{
|
|
||||||
implicitWidth: UM.Theme.getSize("button").width;
|
|
||||||
implicitHeight: UM.Theme.getSize("button").height;
|
|
||||||
Rectangle {
|
|
||||||
id: tool_button_background
|
|
||||||
anchors.left: parent.right
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
opacity: control.hovered ? 1.0 : 0.0;
|
|
||||||
|
|
||||||
width: control.hovered ? label.width : 0;
|
|
||||||
height: label.height
|
|
||||||
|
|
||||||
Behavior on width { NumberAnimation { duration: 100; } }
|
|
||||||
Behavior on height { NumberAnimation { duration: 100; } }
|
|
||||||
Behavior on opacity { NumberAnimation { duration: 100; } }
|
|
||||||
|
|
||||||
Label {
|
|
||||||
id: label
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
text: control.text
|
|
||||||
font: UM.Theme.getFont("button_tooltip");
|
|
||||||
color: UM.Theme.getColor("button_tooltip_text");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Rectangle {
|
|
||||||
anchors.fill: parent;
|
|
||||||
color: control.pressed ? UM.Theme.getColor("button_active") :
|
|
||||||
control.hovered ? UM.Theme.getColor("button_hover") : UM.Theme.getColor("button")
|
|
||||||
Behavior on color { ColorAnimation { duration: 50; } }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
label: Item {
|
|
||||||
Image {
|
|
||||||
anchors.centerIn: parent;
|
|
||||||
source: control.iconSource;
|
|
||||||
width: UM.Theme.getSize("button_icon").width;
|
|
||||||
height: UM.Theme.getSize("button_icon").height;
|
|
||||||
sourceSize: UM.Theme.getSize("button_icon")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
>>>>>>> Convert Toolbar.qml and styles.qml to Theme getThing style
|
|
||||||
property Component tool_button: Component {
|
property Component tool_button: Component {
|
||||||
ButtonStyle {
|
ButtonStyle {
|
||||||
background: Item {
|
background: Item {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user