mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 18:24:46 +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
|
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 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue