feat: initial commit for pixel-snapping components and helpers
This commit is contained in:
@@ -2,11 +2,12 @@ pragma ComponentBehavior: Bound
|
||||
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
import ZShell
|
||||
import ZShell.Config
|
||||
import qs.Paths
|
||||
import qs.Modules
|
||||
import qs.Components
|
||||
import qs.Helpers
|
||||
import ZShell.Config
|
||||
import qs.Services
|
||||
|
||||
Item {
|
||||
@@ -71,7 +72,7 @@ Item {
|
||||
PropertyChanges {
|
||||
appList.active: true
|
||||
root.implicitHeight: Math.min(root.maxHeight, appList.implicitHeight > 0 ? appList.implicitHeight : empty.implicitHeight)
|
||||
root.implicitWidth: Config.launcher.sizes.itemWidth
|
||||
root.implicitWidth: Tokens.sizes.launcher.itemWidth
|
||||
}
|
||||
|
||||
AnchorChanges {
|
||||
@@ -83,8 +84,8 @@ Item {
|
||||
name: "wallpapers"
|
||||
|
||||
PropertyChanges {
|
||||
root.implicitHeight: Config.launcher.sizes.wallpaperHeight
|
||||
root.implicitWidth: Math.max(Config.launcher.sizes.itemWidth * 1.2, wallpaperList.implicitWidth)
|
||||
root.implicitHeight: Tokens.sizes.launcher.wallpaperHeight
|
||||
root.implicitWidth: Math.max(Tokens.sizes.launcher.itemWidth * 1.2, wallpaperList.implicitWidth)
|
||||
wallpaperList.active: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user