mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 06:05:52 +08:00
Remove unused mode switch
Don't want to have to fill in theme items for that thing too. Contributes to issue CURA-4148.
This commit is contained in:
parent
9d910be212
commit
ff30268dd7
@ -8,50 +8,6 @@ import QtQuick.Controls.Styles 1.1
|
||||
import UM 1.1 as UM
|
||||
|
||||
QtObject {
|
||||
property Component mode_switch: Component {
|
||||
SwitchStyle {
|
||||
groove: Rectangle {
|
||||
implicitWidth: UM.Theme.getSize("mode_switch").width
|
||||
implicitHeight: UM.Theme.getSize("mode_switch").height
|
||||
radius: implicitHeight / 2
|
||||
color: {
|
||||
if(control.hovered || control._hovered) {
|
||||
return UM.Theme.getColor("mode_switch_hover");
|
||||
} else {
|
||||
return UM.Theme.getColor("mode_switch");
|
||||
}
|
||||
}
|
||||
Behavior on color { ColorAnimation { duration: 50; } }
|
||||
border.color: {
|
||||
if(control.hovered || control._hovered) {
|
||||
return UM.Theme.getColor("mode_switch_border_hover");
|
||||
} else {
|
||||
return UM.Theme.getColor("mode_switch_border");
|
||||
}
|
||||
}
|
||||
Behavior on border.color { ColorAnimation { duration: 50; } }
|
||||
border.width: 1
|
||||
}
|
||||
|
||||
handle: Rectangle {
|
||||
implicitWidth: implicitHeight
|
||||
implicitHeight: UM.Theme.getSize("mode_switch").height
|
||||
radius: implicitHeight / 2
|
||||
|
||||
color: {
|
||||
if (control.pressed || (control.checkable && control.checked)) {
|
||||
return UM.Theme.getColor("sidebar_header_active");
|
||||
} else if(control.hovered) {
|
||||
return UM.Theme.getColor("sidebar_header_hover");
|
||||
} else {
|
||||
return UM.Theme.getColor("sidebar_header_bar");
|
||||
}
|
||||
}
|
||||
Behavior on color { ColorAnimation { duration: 50; } }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
property Component sidebar_header_button: Component {
|
||||
ButtonStyle {
|
||||
background: Rectangle {
|
||||
|
Loading…
x
Reference in New Issue
Block a user