From 55a7c9022a5a82adf737f44c82d0a4dff6dc29da Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Mon, 30 Mar 2015 10:57:53 +0200 Subject: [PATCH] Use AngledCornerRectangle for the sidebar background --- qml/Sidebar.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qml/Sidebar.qml b/qml/Sidebar.qml index d7fc4562b5..a8585d751f 100644 --- a/qml/Sidebar.qml +++ b/qml/Sidebar.qml @@ -5,12 +5,14 @@ import QtQuick.Layouts 1.1 import UM 1.0 as UM -Rectangle { +UM.AngledCornerRectangle { id: base; property Action addMachineAction; property Action configureMachinesAction; + cornerSize: UM.Theme.sizes.default_margin.width; + MouseArea { anchors.fill: parent acceptedButtons: Qt.AllButtons; @@ -47,7 +49,7 @@ Rectangle { OutputGCodeButton { Layout.preferredWidth: base.width - UM.Theme.sizes.default_margin.width * 2; - Layout.preferredHeight: UM.Theme.sizes.section.height; + Layout.preferredHeight: UM.Theme.sizes.button.height; Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter; } }