mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Make some tweaks in the UI for the preview stage.
Clean up the default theme a bit by removing unused entries. Contributes to CURA-5829.
This commit is contained in:
parent
8a63a79896
commit
38a80ecae5
6 changed files with 21 additions and 77 deletions
|
@ -21,15 +21,12 @@ Item
|
|||
property color lowerHandleColor: UM.Theme.getColor("slider_handle")
|
||||
property color rangeHandleColor: UM.Theme.getColor("slider_groove_fill")
|
||||
property color handleActiveColor: UM.Theme.getColor("slider_handle_active")
|
||||
property real handleLabelWidth: UM.Theme.getSize("slider_layerview_background").width
|
||||
property var activeHandle: upperHandle
|
||||
|
||||
// Track properties
|
||||
property real trackThickness: UM.Theme.getSize("slider_groove").width // width of the slider track
|
||||
property real trackRadius: trackThickness / 2
|
||||
property real trackRadius: UM.Theme.getSize("slider_groove_radius").width
|
||||
property color trackColor: UM.Theme.getColor("slider_groove")
|
||||
property real trackBorderWidth: 1
|
||||
property color trackBorderColor: UM.Theme.getColor("slider_groove_border")
|
||||
|
||||
// value properties
|
||||
property real maximumValue: 100
|
||||
|
@ -90,8 +87,6 @@ Item
|
|||
radius: sliderRoot.trackRadius
|
||||
anchors.centerIn: sliderRoot
|
||||
color: sliderRoot.trackColor
|
||||
border.width: sliderRoot.trackBorderWidth
|
||||
border.color: sliderRoot.trackBorderColor
|
||||
visible: sliderRoot.layersVisible
|
||||
}
|
||||
|
||||
|
@ -140,9 +135,10 @@ Item
|
|||
|
||||
Rectangle
|
||||
{
|
||||
width: sliderRoot.trackThickness - 2 * sliderRoot.trackBorderWidth
|
||||
width: sliderRoot.trackThickness
|
||||
height: parent.height + sliderRoot.handleSize
|
||||
anchors.centerIn: parent
|
||||
radius: sliderRoot.trackRadius
|
||||
color: sliderRoot.rangeHandleColor
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue