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

@ -17,6 +17,12 @@ Button {
{
spacing: UM.Theme.getSize("default_lining").width
Item //Wrapper to give space before icon with fixed width. This allows aligning checkbox with category icon.
{
height: label.height
width: height
anchors.verticalCenter: parent.verticalCenter
UM.RecolorImage
{
anchors.verticalCenter: parent.verticalCenter
@ -25,6 +31,7 @@ Button {
source: base.checked ? UM.Theme.getIcon("ChevronSingleDown") : UM.Theme.getIcon("ChevronSingleRight");
color: base.hovered ? palette.highlight : palette.buttonText
}
}
UM.RecolorImage
{
anchors.verticalCenter: parent.verticalCenter

View file

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