Commit 88b8ce5e authored by George Vogiatzis's avatar George Vogiatzis Committed by Nate Graham

[Applet]Update toolbar's checkbox spacing

Summary:
Move the switchButton's icon smallSpacing left.
Make icon size smallMedium.

BUG: 417710

Test Plan:
Before:
{F8108357, size =full}
After:
{F8108335, size =full}

Reviewers: #plasma, #vdg, jgrulich, ngraham

Reviewed By: #vdg, jgrulich, ngraham

Subscribers: broulik, plasma-devel

Tags: #plasma

Maniphest Tasks: T10470

Differential Revision: https://phabricator.kde.org/D27453
parent 4ca1e7e3
......@@ -32,17 +32,14 @@ Item {
signal clicked
height: switchButtonIcon.height + units.gridUnit / 2
height: Math.max(switchButtonCheckbox.height, switchButtonIcon.height)
width: switchButtonCheckbox.width + switchButtonIcon.width + units.gridUnit
PlasmaComponents.CheckBox {
id: switchButtonCheckbox
anchors {
bottomMargin: Math.round(units.gridUnit / 3)
left: parent.left
leftMargin: units.gridUnit / 2
topMargin: Math.round(units.gridUnit / 3)
verticalCenter: parent.verticalCenter
leftMargin: units.smallSpacing
}
onClicked: {
......@@ -54,10 +51,11 @@ Item {
id: switchButtonIcon
anchors {
left: switchButtonCheckbox.right
leftMargin: units.gridUnit / 2
top: switchButtonCheckbox.top
bottom: switchButtonCheckbox.bottom
// Checkbox bug adds internally a smallSpacing on the right. Doubling the effective spacing here.
leftMargin: units.smallSpacing
verticalCenter: parent.verticalCenter
}
width: height
width: units.iconSizes.smallMedium
height: units.iconSizes.smallMedium
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment