mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
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:
parent
4b8e7ea0d8
commit
38a3a7c99c
5 changed files with 9 additions and 9 deletions
|
|
@ -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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue