mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-26 04:11:07 -07:00
Use AngledCornerRectangle for the sidebar background
This commit is contained in:
parent
fb580627fb
commit
55a7c9022a
1 changed files with 4 additions and 2 deletions
|
|
@ -5,12 +5,14 @@ import QtQuick.Layouts 1.1
|
||||||
|
|
||||||
import UM 1.0 as UM
|
import UM 1.0 as UM
|
||||||
|
|
||||||
Rectangle {
|
UM.AngledCornerRectangle {
|
||||||
id: base;
|
id: base;
|
||||||
|
|
||||||
property Action addMachineAction;
|
property Action addMachineAction;
|
||||||
property Action configureMachinesAction;
|
property Action configureMachinesAction;
|
||||||
|
|
||||||
|
cornerSize: UM.Theme.sizes.default_margin.width;
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.AllButtons;
|
acceptedButtons: Qt.AllButtons;
|
||||||
|
|
@ -47,7 +49,7 @@ Rectangle {
|
||||||
|
|
||||||
OutputGCodeButton {
|
OutputGCodeButton {
|
||||||
Layout.preferredWidth: base.width - UM.Theme.sizes.default_margin.width * 2;
|
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;
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue