diff --git a/plugins/SimulationView/SimulationView.qml b/plugins/SimulationView/SimulationView.qml index 4c7d99deec..8f6dcf0af0 100644 --- a/plugins/SimulationView/SimulationView.qml +++ b/plugins/SimulationView/SimulationView.qml @@ -472,8 +472,9 @@ Item PathSlider { id: pathSlider - width: parent.width height: UM.Theme.getSize("slider_handle").width + anchors.right: playButton.left + anchors.rightMargin: UM.Theme.getSize("default_margin").width anchors.left: parent.left visible: !UM.SimulationView.compatibilityMode @@ -508,8 +509,8 @@ Item height: UM.Theme.getSize("layerview_menu_size").height anchors { - top: pathSlider.bottom - topMargin: UM.Theme.getSize("slider_layerview_margin").height + top: playButton.bottom + topMargin: UM.Theme.getSize("default_margin").height right: parent.right rightMargin: UM.Theme.getSize("slider_layerview_margin").width } @@ -546,15 +547,14 @@ Item // Play simulation button Button { id: playButton - implicitWidth: UM.Theme.getSize("button").width * 0.75; - implicitHeight: UM.Theme.getSize("button").height * 0.75; + implicitWidth: Math.floor(UM.Theme.getSize("button").width * 0.75) + implicitHeight: Math.floor(UM.Theme.getSize("button").height * 0.75) iconSource: "./resources/simulation_resume.svg" style: UM.Theme.styles.tool_button visible: !UM.SimulationView.compatibilityMode anchors { horizontalCenter: layerSlider.horizontalCenter - top: layerSlider.bottom - topMargin: UM.Theme.getSize("slider_layerview_margin").width + verticalCenter: pathSlider.verticalCenter } property var status: 0 // indicates if it's stopped (0) or playing (1) diff --git a/resources/themes/cura-light/theme.json b/resources/themes/cura-light/theme.json index 4197285dd8..76f4ab9fc6 100644 --- a/resources/themes/cura-light/theme.json +++ b/resources/themes/cura-light/theme.json @@ -344,7 +344,7 @@ "slider_handle": [1.0, 1.0], "slider_layerview_size": [1.0, 22.0], "slider_layerview_background": [4.0, 0.0], - "slider_layerview_margin": [1.0, 1.0], + "slider_layerview_margin": [1.0, 1.5], "layerview_menu_size": [15, 19.5], "layerview_menu_size_material_color_mode": [15, 15.5],