Commit 51f79123 authored by Noah Davis's avatar Noah Davis 🌵

[Kickoff] Reduce the margins of KickoffItem, KickoffHighlight and use smallSpacing

Summary: A lot of space on the left and right of each KickoffItem was wasted, so I've reduced the margins. This improves the readability of long application titles and descriptions. I've also changed the margin units from gritUnit to smallSpacing for KickoffItem and KickoffHighlight, which slightly reduced the margins of KickoffHighlight.

Test Plan:
Before
======

Category: {F6755689}
Long description: {F6755688}

After
=====

Category: {F6755684}
Long description: {F6755687}

Reviewers: #plasma, #vdg, ngraham, hein

Reviewed By: #plasma, #vdg, ngraham, hein

Subscribers: hein, ngraham, filipf, rooty, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19874
parent 4545601a
......@@ -23,8 +23,8 @@ Item {
PlasmaComponents.Highlight {
anchors {
fill: parent
leftMargin: units.gridUnit
rightMargin: units.gridUnit
leftMargin: units.smallSpacing * 4
rightMargin: units.smallSpacing * 4
}
}
}
......@@ -99,7 +99,7 @@ Item {
anchors {
left: parent.left
leftMargin: (units.gridUnit * 4) - units.iconSizes.medium
leftMargin: units.smallSpacing * 6
verticalCenter: parent.verticalCenter
}
width: units.iconSizes.medium
......@@ -119,8 +119,8 @@ Item {
//bottom: elementIcon.verticalCenter
left: elementIcon.right
right: arrow.left
leftMargin: units.gridUnit
rightMargin: units.gridUnit * 2
leftMargin: units.smallSpacing * 4
rightMargin: units.smallSpacing * 6
}
height: implicitHeight //undo PC2 height override, remove when porting to PC3
// TODO: games should always show the by name!
......@@ -135,7 +135,7 @@ Item {
anchors {
left: titleElement.left
right: arrow.left
rightMargin: units.gridUnit * 2
rightMargin: units.smallSpacing * 4
top: titleElement.bottom
}
height: implicitHeight
......@@ -152,7 +152,7 @@ Item {
anchors {
right: parent.right
rightMargin: units.gridUnit * 2
rightMargin: units.smallSpacing * 6
verticalCenter: parent.verticalCenter
}
......
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