You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
plasma-desktop/0002-Fix-inconsistent-margi...

64 lines
2.1 KiB

From aa99711fe71235ba6a1e4431c43d690673457e26 Mon Sep 17 00:00:00 2001
From: Eike Hein <hein@kde.org>
Date: Wed, 6 Jan 2016 20:38:12 +0100
Subject: [PATCH 2/4] Fix inconsistent margins, add missing listview margin,
drop non-scalable measurements.
---
desktoppackage/contents/explorer/WidgetExplorer.qml | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/desktoppackage/contents/explorer/WidgetExplorer.qml b/desktoppackage/contents/explorer/WidgetExplorer.qml
index 94cc46b..b7fc76f 100644
--- a/desktoppackage/contents/explorer/WidgetExplorer.qml
+++ b/desktoppackage/contents/explorer/WidgetExplorer.qml
@@ -33,7 +33,7 @@ import org.kde.plasma.private.shell 2.0
Item {
id: main
- width: Math.max(heading.paintedWidth, units.iconSizes.enormous * 2 + units.smallSpacing * 4 + 20)
+ width: Math.max(heading.paintedWidth, units.iconSizes.enormous * 2 + units.smallSpacing * 4 + units.gridUnit * 2)
height: 800//Screen.height
property QtObject containment
@@ -197,9 +197,6 @@ Item {
top: parent.top
left: parent.left
right: parent.right
- topMargin: 0
- leftMargin: units.smallSpacing
- rightMargin: units.smallSpacing
}
columns: 2
@@ -260,7 +257,6 @@ Item {
right: parent.right
bottom: bottomBar.top
topMargin: units.smallSpacing
- leftMargin: units.smallSpacing
bottomMargin: units.smallSpacing
}
@@ -280,7 +276,7 @@ Item {
activeFocusOnTab: true
keyNavigationWraps: true
- cellWidth: width / 2
+ cellWidth: (width - units.smallSpacing) / 2
cellHeight: cellWidth + units.gridUnit * 4 + units.smallSpacing * 2
delegate: AppletDelegate {}
@@ -329,9 +325,6 @@ Item {
left: parent.left
right: parent.right
bottom: parent.bottom
- leftMargin: units.smallSpacing
- rightMargin: units.smallSpacing
- bottomMargin: units.smallSpacing
}
spacing: units.smallSpacing
--
2.5.0