mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -06:00
Fix PerObjectSettingsPanel layout
This commit is contained in:
parent
6863e15e20
commit
03e9694e32
1 changed files with 47 additions and 55 deletions
|
@ -20,7 +20,7 @@ Item {
|
||||||
anchors.top: parent.top;
|
anchors.top: parent.top;
|
||||||
anchors.left: parent.left;
|
anchors.left: parent.left;
|
||||||
|
|
||||||
spacing: UM.Theme.sizes.default_lining.height;
|
spacing: UM.Theme.sizes.default_margin.height;
|
||||||
|
|
||||||
UM.SettingItem {
|
UM.SettingItem {
|
||||||
id: profileSelection
|
id: profileSelection
|
||||||
|
@ -28,7 +28,7 @@ Item {
|
||||||
width: UM.Theme.sizes.setting.width;
|
width: UM.Theme.sizes.setting.width;
|
||||||
height: UM.Theme.sizes.setting.height;
|
height: UM.Theme.sizes.setting.height;
|
||||||
|
|
||||||
name: catalog.i18nc("@label", "Profile")
|
name: catalog.i18nc("@label", "Object profile")
|
||||||
type: "enum"
|
type: "enum"
|
||||||
indent: false
|
indent: false
|
||||||
|
|
||||||
|
@ -44,11 +44,10 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item
|
Column {
|
||||||
{
|
id: customisedSettings
|
||||||
height: UM.Theme.sizes.default_margin.height
|
spacing: UM.Theme.sizes.default_lining.height;
|
||||||
width: parent.width
|
width: UM.Theme.sizes.setting.width + UM.Theme.sizes.setting.height/2;
|
||||||
}
|
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
id: settings;
|
id: settings;
|
||||||
|
@ -76,13 +75,11 @@ Item {
|
||||||
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
anchors.left: parent.left;
|
anchors.left: parent.right;
|
||||||
anchors.leftMargin: UM.Theme.sizes.default_margin.width;
|
|
||||||
|
|
||||||
width: UM.Theme.sizes.setting.height;
|
width: UM.Theme.sizes.setting.height;
|
||||||
height: UM.Theme.sizes.setting.height;
|
height: UM.Theme.sizes.setting.height;
|
||||||
|
|
||||||
opacity: parent.hovered || hovered ? 1 : 0;
|
|
||||||
onClicked: UM.ActiveTool.properties.Model.removeSettingOverride(UM.ActiveTool.properties.Model.getItem(base.currentIndex).id, model.key)
|
onClicked: UM.ActiveTool.properties.Model.removeSettingOverride(UM.ActiveTool.properties.Model.getItem(base.currentIndex).id, model.key)
|
||||||
|
|
||||||
style: ButtonStyle
|
style: ButtonStyle
|
||||||
|
@ -106,11 +103,6 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item
|
|
||||||
{
|
|
||||||
height: UM.Theme.sizes.default_margin.height
|
|
||||||
width: parent.width
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Button
|
Button
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue