109 lines
1.6 KiB
QML
109 lines
1.6 KiB
QML
import Quickshell
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs.Helpers
|
|
import qs.Components
|
|
import qs.Modules
|
|
import ZShell.Config
|
|
import qs.Modules.Dashboard.Dash
|
|
import qs.Services
|
|
|
|
GridLayout {
|
|
id: root
|
|
|
|
readonly property bool dashboardVisible: screenState.dashboard
|
|
required property int radius
|
|
required property ScreenState screenState
|
|
|
|
columnSpacing: Tokens.spacing.small
|
|
rowSpacing: Tokens.spacing.small
|
|
|
|
ParallelAnimation {
|
|
id: openAnim
|
|
|
|
Anim {
|
|
property: "opacity"
|
|
target: root
|
|
to: 1
|
|
}
|
|
|
|
Anim {
|
|
property: "scale"
|
|
target: root
|
|
to: 1
|
|
}
|
|
}
|
|
|
|
ParallelAnimation {
|
|
id: closeAnim
|
|
|
|
Anim {
|
|
property: "opacity"
|
|
target: root
|
|
to: 0
|
|
}
|
|
|
|
Anim {
|
|
property: "scale"
|
|
target: root
|
|
to: 0.9
|
|
}
|
|
}
|
|
|
|
Rect {
|
|
Layout.column: 2
|
|
Layout.columnSpan: 3
|
|
Layout.preferredHeight: user.implicitHeight
|
|
Layout.preferredWidth: user.implicitWidth
|
|
radius: root.radius
|
|
|
|
User {
|
|
id: user
|
|
|
|
screenState: root.screenState
|
|
}
|
|
}
|
|
|
|
Rect {
|
|
Layout.columnSpan: 2
|
|
Layout.fillHeight: true
|
|
Layout.preferredWidth: Tokens.sizes.dashboard.weatherWidth
|
|
Layout.row: 0
|
|
radius: root.radius
|
|
|
|
Weather {}
|
|
}
|
|
|
|
Rect {
|
|
Layout.column: 0
|
|
Layout.columnSpan: 3
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: calendar.implicitHeight
|
|
Layout.row: 1
|
|
radius: root.radius
|
|
|
|
Calendar {
|
|
id: calendar
|
|
|
|
screenState: root.screenState
|
|
}
|
|
}
|
|
|
|
Rect {
|
|
Layout.column: 3
|
|
Layout.columnSpan: 2
|
|
Layout.fillHeight: true
|
|
Layout.preferredWidth: resources.implicitWidth
|
|
Layout.row: 1
|
|
radius: root.radius
|
|
|
|
Resources {
|
|
id: resources
|
|
}
|
|
}
|
|
|
|
component Rect: CustomRect {
|
|
color: Colors.tPalette.m3surfaceContainer
|
|
}
|
|
}
|