From f3e1ba0abeca711debbf81addb6e7882441a80b9 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 7 Feb 2019 12:38:11 +0100 Subject: [PATCH] slightly smaller icons --- .../homescreen/package/contents/ui/HomeLauncher.qml | 2 +- .../homescreen/package/contents/ui/SatelliteStripe.qml | 2 +- containments/homescreen/package/contents/ui/main.qml | 2 +- shell/contents/layout.js | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/containments/homescreen/package/contents/ui/HomeLauncher.qml b/containments/homescreen/package/contents/ui/HomeLauncher.qml index 6d257ba5..f6cec7a5 100644 --- a/containments/homescreen/package/contents/ui/HomeLauncher.qml +++ b/containments/homescreen/package/contents/ui/HomeLauncher.qml @@ -20,7 +20,7 @@ Item { centerIn: parent verticalCenterOffset: -theme.mSize(theme.defaultFont).height } - width: parent.height / 2 + width: parent.height - label.height height: width source: modelData.ApplicationIconRole scale: root.reorderingApps && applicationsView.dragData && applicationsView.dragData.ApplicationStorageIdRole != modelData.ApplicationStorageIdRole ? 0.6 : 1 diff --git a/containments/homescreen/package/contents/ui/SatelliteStripe.qml b/containments/homescreen/package/contents/ui/SatelliteStripe.qml index d57216e1..0e885654 100644 --- a/containments/homescreen/package/contents/ui/SatelliteStripe.qml +++ b/containments/homescreen/package/contents/ui/SatelliteStripe.qml @@ -18,7 +18,7 @@ PlasmaCore.ColorScope { } //cut away one line from the favorites bar - height: applicationsView.cellHeight - units.gridUnit + height: applicationsView.cellHeight - units.gridUnit/2 width: parent.width y: parent.height / 2 - height / 2 x: 0 diff --git a/containments/homescreen/package/contents/ui/main.qml b/containments/homescreen/package/contents/ui/main.qml index 527dedbc..1cde648e 100644 --- a/containments/homescreen/package/contents/ui/main.qml +++ b/containments/homescreen/package/contents/ui/main.qml @@ -34,7 +34,7 @@ Item { //BEGIN properties property Item toolBox property alias appletsSpace: applicationsView.headerItem - property int buttonHeight: (Math.floor(height / units.iconSizes.huge) > 6) ? units.iconSizes.enormous : units.iconSizes.huge + property int buttonHeight: units.iconSizes.large + units.gridUnit * 2 property bool reorderingApps: false property var layoutManager: LayoutManager //END properties diff --git a/shell/contents/layout.js b/shell/contents/layout.js index 2b3a12de..4dd0b734 100644 --- a/shell/contents/layout.js +++ b/shell/contents/layout.js @@ -12,12 +12,12 @@ battery.writeConfig("showPercentage", true); battery.reloadConfig(); panel.addWidget("org.kde.plasma.volume"); panel.addWidget("org.kde.phone.activities"); -panel.height = 60; +panel.height = 1 * gridUnit; var bottomPanel = new Panel("org.kde.phone.taskpanel"); bottomPanel.location = "bottom"; if (screenGeometry(bottomPanel.screen).height > screenGeometry(bottomPanel.screen).width) - bottomPanel.height = 150; + bottomPanel.height = 2 * gridUnit; else - bottomPanel.height = 60; + bottomPanel.height = 1 * gridUnit;