* add month/year and paging to calendar also, removed day/month from time panel, and highlighting weekends (need to figure out why the weekday enum is incorrect. locale issue?) * removing dayOfWeek offset hack this is clearly a me problem. my locale appears to be set to dz, but only for caelestia shell. not sure why. * aesthetic and localization improvements * ensure all localized dates use UTC issues i was having wrt localized date and day-of-week being off by one appear to have been due to my timezone. forcing UTC seems to fix this. * fixes * anim today indicator * keep state across open/close * fix --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
91 lines
1.8 KiB
QML
91 lines
1.8 KiB
QML
import qs.components
|
|
import qs.services
|
|
import qs.config
|
|
import "dash"
|
|
import Quickshell
|
|
import QtQuick.Layouts
|
|
|
|
GridLayout {
|
|
id: root
|
|
|
|
required property PersistentProperties visibilities
|
|
required property PersistentProperties state
|
|
|
|
rowSpacing: Appearance.spacing.normal
|
|
columnSpacing: Appearance.spacing.normal
|
|
|
|
Rect {
|
|
Layout.column: 2
|
|
Layout.columnSpan: 3
|
|
Layout.preferredWidth: user.implicitWidth
|
|
Layout.preferredHeight: user.implicitHeight
|
|
|
|
User {
|
|
id: user
|
|
|
|
visibilities: root.visibilities
|
|
state: root.state
|
|
}
|
|
}
|
|
|
|
Rect {
|
|
Layout.row: 0
|
|
Layout.columnSpan: 2
|
|
Layout.preferredWidth: Config.dashboard.sizes.weatherWidth
|
|
Layout.fillHeight: true
|
|
|
|
Weather {}
|
|
}
|
|
|
|
Rect {
|
|
Layout.row: 1
|
|
Layout.preferredWidth: dateTime.implicitWidth
|
|
Layout.fillHeight: true
|
|
|
|
DateTime {
|
|
id: dateTime
|
|
}
|
|
}
|
|
|
|
Rect {
|
|
Layout.row: 1
|
|
Layout.column: 1
|
|
Layout.columnSpan: 3
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: calendar.implicitHeight
|
|
|
|
Calendar {
|
|
id: calendar
|
|
|
|
state: root.state
|
|
}
|
|
}
|
|
|
|
Rect {
|
|
Layout.row: 1
|
|
Layout.column: 4
|
|
Layout.preferredWidth: resources.implicitWidth
|
|
Layout.fillHeight: true
|
|
|
|
Resources {
|
|
id: resources
|
|
}
|
|
}
|
|
|
|
Rect {
|
|
Layout.row: 0
|
|
Layout.column: 5
|
|
Layout.rowSpan: 2
|
|
Layout.preferredWidth: media.implicitWidth
|
|
Layout.fillHeight: true
|
|
|
|
Media {
|
|
id: media
|
|
}
|
|
}
|
|
|
|
component Rect: StyledRect {
|
|
radius: Appearance.rounding.small
|
|
color: Colours.tPalette.m3surfaceContainer
|
|
}
|
|
}
|