Commit 38a3a7c9 authored by Bhushan Shah's avatar Bhushan Shah 📱

Fix iconSizes and strip size on the horizontal form factor

Previously it was setting height and width of icons to overall width/4
which happens to be enorumously huge on the horizontal form factor.

This patch fixes it by setting height of "huge" iconSize and width of
overall width/4
parent 4b8e7ea0
......@@ -222,8 +222,9 @@ MouseEventListener {
property int columns: 4
interactive: false
flow: GridView.FlowTopToBottom
cellWidth: root.buttonHeight
cellHeight: cellWidth
cellWidth: root.width / 4
cellHeight: units.iconSizes.huge
model: plasmoid.nativeInterface.applicationListModel
delegate: HomeLauncher {
......@@ -247,4 +248,3 @@ MouseEventListener {
}
}
}
\ No newline at end of file
......@@ -6,7 +6,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
Item {
id: delegateRoot
width: applicationsView.cellWidth
height: width
height: applicationsView.cellHeight
property var modelData: model
property bool isDropTarget: delegateRoot != dragDelegate && root.reorderingApps && applicationsView.dragData && applicationsView.dragData.ApplicationStorageIdRole == modelData.ApplicationStorageIdRole
......
......@@ -4,7 +4,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
Item {
id: root
width: parent.width / parent.columns
height: parent.buttonHeight
height: units.iconSizes.huge
property var callback
property string text
property string sub
......
......@@ -18,7 +18,7 @@ PlasmaCore.ColorScope {
}
//cut away one line from the favorites bar
height: applicationsView.cellWidth - units.gridUnit
height: applicationsView.cellHeight - units.gridUnit
width: parent.width
y: parent.height / 2 - height / 2
x: 0
......
......@@ -34,7 +34,7 @@ Item {
//BEGIN properties
property Item toolBox
property alias appletsSpace: applicationsView.headerItem
property int buttonHeight: width/4
property int buttonHeight: units.iconSizes.huge
property bool reorderingApps: false
property bool locked: applicationsView.contentY < -applicationsView.headerItem.height + plasmoid.availableScreenRect.height
property var layoutManager: LayoutManager
......@@ -468,8 +468,8 @@ Item {
property var dragData
cellWidth: root.buttonHeight
cellHeight: cellWidth
cellWidth: root.width / 4
cellHeight: units.iconSizes.huge
model: plasmoid.nativeInterface.applicationListModel
snapMode: GridView.SnapToRow
......
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