From ff30268dd74af2697293490a9379bc05f158415d Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 21 Aug 2017 18:41:58 +0200 Subject: [PATCH] Remove unused mode switch Don't want to have to fill in theme items for that thing too. Contributes to issue CURA-4148. --- resources/themes/cura/styles.qml | 44 -------------------------------- 1 file changed, 44 deletions(-) diff --git a/resources/themes/cura/styles.qml b/resources/themes/cura/styles.qml index 63f2d3ac7d..b5c4682e63 100755 --- a/resources/themes/cura/styles.qml +++ b/resources/themes/cura/styles.qml @@ -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 {