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
This commit is contained in:
Bhushan Shah 2015-08-22 18:16:56 +05:30
parent 4b8e7ea0d8
commit 38a3a7c99c
5 changed files with 9 additions and 9 deletions

View file

@ -222,8 +222,9 @@ MouseEventListener {
property int columns: 4 property int columns: 4
interactive: false interactive: false
flow: GridView.FlowTopToBottom flow: GridView.FlowTopToBottom
cellWidth: root.buttonHeight
cellHeight: cellWidth cellWidth: root.width / 4
cellHeight: units.iconSizes.huge
model: plasmoid.nativeInterface.applicationListModel model: plasmoid.nativeInterface.applicationListModel
delegate: HomeLauncher { delegate: HomeLauncher {
@ -247,4 +248,3 @@ MouseEventListener {
} }
} }
} }

View file

@ -6,7 +6,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
Item { Item {
id: delegateRoot id: delegateRoot
width: applicationsView.cellWidth width: applicationsView.cellWidth
height: width height: applicationsView.cellHeight
property var modelData: model property var modelData: model
property bool isDropTarget: delegateRoot != dragDelegate && root.reorderingApps && applicationsView.dragData && applicationsView.dragData.ApplicationStorageIdRole == modelData.ApplicationStorageIdRole property bool isDropTarget: delegateRoot != dragDelegate && root.reorderingApps && applicationsView.dragData && applicationsView.dragData.ApplicationStorageIdRole == modelData.ApplicationStorageIdRole

View file

@ -4,7 +4,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
Item { Item {
id: root id: root
width: parent.width / parent.columns width: parent.width / parent.columns
height: parent.buttonHeight height: units.iconSizes.huge
property var callback property var callback
property string text property string text
property string sub property string sub

View file

@ -18,7 +18,7 @@ PlasmaCore.ColorScope {
} }
//cut away one line from the favorites bar //cut away one line from the favorites bar
height: applicationsView.cellWidth - units.gridUnit height: applicationsView.cellHeight - units.gridUnit
width: parent.width width: parent.width
y: parent.height / 2 - height / 2 y: parent.height / 2 - height / 2
x: 0 x: 0

View file

@ -34,7 +34,7 @@ Item {
//BEGIN properties //BEGIN properties
property Item toolBox property Item toolBox
property alias appletsSpace: applicationsView.headerItem property alias appletsSpace: applicationsView.headerItem
property int buttonHeight: width/4 property int buttonHeight: units.iconSizes.huge
property bool reorderingApps: false property bool reorderingApps: false
property bool locked: applicationsView.contentY < -applicationsView.headerItem.height + plasmoid.availableScreenRect.height property bool locked: applicationsView.contentY < -applicationsView.headerItem.height + plasmoid.availableScreenRect.height
property var layoutManager: LayoutManager property var layoutManager: LayoutManager
@ -468,8 +468,8 @@ Item {
property var dragData property var dragData
cellWidth: root.buttonHeight cellWidth: root.width / 4
cellHeight: cellWidth cellHeight: units.iconSizes.huge
model: plasmoid.nativeInterface.applicationListModel model: plasmoid.nativeInterface.applicationListModel
snapMode: GridView.SnapToRow snapMode: GridView.SnapToRow