From 522bf60e81bc0c8a029371007ffbe72499b2c57a Mon Sep 17 00:00:00 2001 From: Joey de l'Arago Date: Wed, 30 Nov 2022 15:43:14 +0100 Subject: [PATCH] Adjust left margins CURA-9793 --- .../Recommended/RecommendedSettingItem.qml | 2 +- .../Recommended/RecommendedSettingSection.qml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/qml/PrintSetupSelector/Recommended/RecommendedSettingItem.qml b/resources/qml/PrintSetupSelector/Recommended/RecommendedSettingItem.qml index 87a95a12e8..587ce3ed77 100644 --- a/resources/qml/PrintSetupSelector/Recommended/RecommendedSettingItem.qml +++ b/resources/qml/PrintSetupSelector/Recommended/RecommendedSettingItem.qml @@ -27,7 +27,7 @@ Item anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter // These numbers come from the IconWithText in RecommendedSettingSection - anchors.leftMargin: UM.Theme.getSize("medium_button_icon").width + UM.Theme.getSize("thick_margin").width - UM.Theme.getSize("thick_lining").width + anchors.leftMargin: UM.Theme.getSize("medium_button_icon").width + UM.Theme.getSize("default_margin").width } diff --git a/resources/qml/PrintSetupSelector/Recommended/RecommendedSettingSection.qml b/resources/qml/PrintSetupSelector/Recommended/RecommendedSettingSection.qml index 0f63a4e2e5..c202381326 100644 --- a/resources/qml/PrintSetupSelector/Recommended/RecommendedSettingSection.qml +++ b/resources/qml/PrintSetupSelector/Recommended/RecommendedSettingSection.qml @@ -40,9 +40,8 @@ Item width: leftColumnWidth anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter - anchors.leftMargin: - UM.Theme.getSize("thick_lining").width source: UM.Theme.getIcon("PrintQuality") - spacing: UM.Theme.getSize("thick_margin").width + spacing: UM.Theme.getSize("default_margin").width iconSize: UM.Theme.getSize("medium_button_icon").width iconColor: UM.Theme.getColor("text") font: UM.Theme.getFont("medium_bold") @@ -66,7 +65,7 @@ Item id: enableSectionSwitch anchors.left: parent.left // These numbers come from the IconWithText in RecommendedSettingSection. - anchors.leftMargin: leftColumnWidth + UM.Theme.getSize("medium_button_icon").width + UM.Theme.getSize("thick_margin").width - (2 * UM.Theme.getSize("thick_lining").width) + anchors.leftMargin: leftColumnWidth + UM.Theme.getSize("medium_button_icon").width + UM.Theme.getSize("default_margin").width anchors.verticalCenter: sectionHeader.verticalCenter visible: false