mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 11:25:53 +08:00
Remove unused styles
This commit is contained in:
parent
f11d728c6b
commit
752cf2d5aa
@ -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
|
property Component print_setup_action_button: Component
|
||||||
{
|
{
|
||||||
ButtonStyle
|
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
|
property Component monitor_button_style: Component
|
||||||
{
|
{
|
||||||
ButtonStyle
|
ButtonStyle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user