Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj.delarago <joeydelarago@gmail.com>2022-02-18 20:15:48 +0300
committerj.delarago <joeydelarago@gmail.com>2022-02-18 20:15:48 +0300
commitc00eb5b432c6842ff872e086d6b893e27a967b94 (patch)
treebf05692cf123fce08b40f1a7855ccd6d69cc5709 /plugins/PerObjectSettingsTool
parentd333b4639c29937e4ac993b966809aa9bd217c96 (diff)
Align checkbox with category icon in per object visibility settings dialog and preferences visibility settings.
Move "Information" icon to the right of checkboxes in settings visibilty preferences page. This allows clean aligning of checkboxes with category icon. CURA-8688
Diffstat (limited to 'plugins/PerObjectSettingsTool')
-rw-r--r--plugins/PerObjectSettingsTool/PerObjectCategory.qml19
-rw-r--r--plugins/PerObjectSettingsTool/PerObjectItem.qml3
2 files changed, 15 insertions, 7 deletions
diff --git a/plugins/PerObjectSettingsTool/PerObjectCategory.qml b/plugins/PerObjectSettingsTool/PerObjectCategory.qml
index 3f95d4e021..1800555b9d 100644
--- a/plugins/PerObjectSettingsTool/PerObjectCategory.qml
+++ b/plugins/PerObjectSettingsTool/PerObjectCategory.qml
@@ -11,19 +11,26 @@ import ".."
Button {
id: base;
- background: Item { }
+ background: Item {}
contentItem: Row
{
spacing: UM.Theme.getSize("default_lining").width
- UM.RecolorImage
+ Item //Wrapper to give space before icon with fixed width. This allows aligning checkbox with category icon.
{
- anchors.verticalCenter: parent.verticalCenter
- height: (label.height / 2) | 0
+ height: label.height
width: height
- source: base.checked ? UM.Theme.getIcon("ChevronSingleDown") : UM.Theme.getIcon("ChevronSingleRight");
- color: base.hovered ? palette.highlight : palette.buttonText
+ anchors.verticalCenter: parent.verticalCenter
+
+ UM.RecolorImage
+ {
+ anchors.verticalCenter: parent.verticalCenter
+ height: (label.height / 2) | 0
+ width: height
+ source: base.checked ? UM.Theme.getIcon("ChevronSingleDown") : UM.Theme.getIcon("ChevronSingleRight");
+ color: base.hovered ? palette.highlight : palette.buttonText
+ }
}
UM.RecolorImage
{
diff --git a/plugins/PerObjectSettingsTool/PerObjectItem.qml b/plugins/PerObjectSettingsTool/PerObjectItem.qml
index d5582b9643..0c8015541e 100644
--- a/plugins/PerObjectSettingsTool/PerObjectItem.qml
+++ b/plugins/PerObjectSettingsTool/PerObjectItem.qml
@@ -19,7 +19,8 @@ UM.TooltipArea
Item
{
id: spacer
- width: 5
+ // Align checkbox with PerObjectCategory icon
+ width: UM.Theme.getSize("default_margin").width
}
UM.CheckBox