feat: initial commit for pixel-snapping components and helpers
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import ZShell.Components
|
||||
import Quickshell.Services.UPower
|
||||
import ZShell.Config
|
||||
import qs.Components
|
||||
@@ -50,7 +51,8 @@ ClipRect {
|
||||
}
|
||||
}
|
||||
|
||||
component Contents: ColumnLayout {
|
||||
component Contents: SnapLayout {
|
||||
orientation: Qt.Vertical
|
||||
id: contents
|
||||
|
||||
required property color accentColor
|
||||
@@ -100,7 +102,7 @@ ClipRect {
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
SnapLayout {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
Layout.bottomMargin: -Tokens.padding.extraSmall
|
||||
Layout.rightMargin: -Tokens.padding.extraSmall
|
||||
|
||||
Reference in New Issue
Block a user