feat: import M3Shapes, M3 loading indicator and weather + resources + media revamp in lockscreen

This commit is contained in:
2026-07-08 22:53:19 +02:00
parent e3b2d33a11
commit 672cb07547
14 changed files with 733 additions and 439 deletions
+31 -41
View File
@@ -4,76 +4,66 @@ import qs.Components
import qs.Helpers
import qs.Config
RowLayout {
CustomClippingRect {
id: root
required property var lock
spacing: Appearance.spacing.large * 2
implicitHeight: layout.implicitHeight
implicitWidth: layout.implicitWidth
radius: Appearance.rounding.large
ColumnLayout {
Layout.fillWidth: true
spacing: Appearance.spacing.normal
RowLayout {
id: layout
CustomRect {
anchors.fill: parent
spacing: Appearance.spacing.large * 2
ColumnLayout {
Layout.fillWidth: true
color: DynamicColors.tPalette.m3surfaceContainer
implicitHeight: weather.implicitHeight
radius: Appearance.rounding.small
topLeftRadius: Appearance.rounding.large
spacing: Appearance.spacing.normal
WeatherInfo {
id: weather
Layout.fillWidth: true
rootHeight: root.height
}
}
CustomRect {
Layout.fillWidth: true
color: DynamicColors.tPalette.m3surfaceContainer
implicitHeight: resources.implicitHeight
radius: Appearance.rounding.small
Resources {
id: resources
Layout.fillWidth: true
}
}
CustomClippingRect {
Layout.fillHeight: true
Layout.fillWidth: true
bottomLeftRadius: Appearance.rounding.large
color: DynamicColors.tPalette.m3surfaceContainer
radius: Appearance.rounding.small
Media {
id: media
Layout.fillHeight: true
Layout.fillWidth: true
lock: root.lock
}
}
}
Center {
lock: root.lock
}
Center {
lock: root.lock
}
ColumnLayout {
Layout.fillWidth: true
spacing: Appearance.spacing.normal
CustomRect {
Layout.fillHeight: true
ColumnLayout {
Layout.fillWidth: true
bottomRightRadius: Appearance.rounding.large
color: DynamicColors.tPalette.m3surfaceContainer
radius: Appearance.rounding.small
topRightRadius: Appearance.rounding.large
spacing: Appearance.spacing.normal
NotifDock {
lock: root.lock
CustomRect {
Layout.fillHeight: true
Layout.fillWidth: true
bottomRightRadius: Appearance.rounding.large
color: DynamicColors.tPalette.m3surfaceContainer
radius: Appearance.rounding.small
topRightRadius: Appearance.rounding.large
NotifDock {
lock: root.lock
}
}
}
}