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
This commit is contained in:
j.delarago 2022-02-18 18:15:48 +01:00
parent d333b4639c
commit c00eb5b432
2 changed files with 15 additions and 7 deletions

View file

@ -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
{