From 752cf2d5aac47c6e58a7110fc0ecdb70be50f938 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 3 Jan 2022 16:44:42 +0100 Subject: [PATCH] Remove unused styles --- resources/themes/cura-light/styles.qml | 90 -------------------------- 1 file changed, 90 deletions(-) diff --git a/resources/themes/cura-light/styles.qml b/resources/themes/cura-light/styles.qml index 5d9981d164..857f066c39 100755 --- a/resources/themes/cura-light/styles.qml +++ b/resources/themes/cura-light/styles.qml @@ -373,40 +373,6 @@ QtObject } } - property Component text_field: Component - { - TextFieldStyle - { - textColor: UM.Theme.getColor("setting_control_text") - placeholderTextColor: UM.Theme.getColor("setting_control_text") - font: UM.Theme.getFont("default") - - background: Rectangle - { - implicitHeight: control.height; - implicitWidth: control.width; - - border.width: UM.Theme.getSize("default_lining").width; - border.color: control.hovered ? UM.Theme.getColor("setting_control_border_highlight") : UM.Theme.getColor("setting_control_border"); - radius: UM.Theme.getSize("setting_control_radius").width - - color: UM.Theme.getColor("setting_validation_ok"); - - Label - { - anchors.right: parent.right; - anchors.rightMargin: UM.Theme.getSize("setting_unit_margin").width; - anchors.verticalCenter: parent.verticalCenter; - - text: control.unit ? control.unit : "" - color: UM.Theme.getColor("setting_unit"); - font: UM.Theme.getFont("default"); - renderType: Text.NativeRendering - } - } - } - } - property Component print_setup_action_button: Component { ButtonStyle @@ -487,62 +453,6 @@ QtObject } } - property Component toolbox_action_button: Component - { - ButtonStyle - { - background: Rectangle - { - implicitWidth: UM.Theme.getSize("toolbox_action_button").width - implicitHeight: UM.Theme.getSize("toolbox_action_button").height - color: - { - if (control.installed) - { - return UM.Theme.getColor("action_button_disabled"); - } - else - { - if (control.hovered) - { - return UM.Theme.getColor("primary_hover"); - } - else - { - return UM.Theme.getColor("primary"); - } - } - - } - } - label: Label - { - text: control.text - color: - { - if (control.installed) - { - return UM.Theme.getColor("action_button_disabled_text"); - } - else - { - if (control.hovered) - { - return UM.Theme.getColor("button_text_hover"); - } - else - { - return UM.Theme.getColor("button_text"); - } - } - } - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - font: UM.Theme.getFont("default_bold") - } - } - } - property Component monitor_button_style: Component { ButtonStyle