C++ / fmt (pull_request) Successful in 4s
JS/TS / fmt (pull_request) Successful in 11s
JS/TS / lint (pull_request) Successful in 23s
Python / fmt (pull_request) Successful in 30s
Python / lint (pull_request) Successful in 32s
Python / test (pull_request) Successful in 59s
Python / typecheck (pull_request) Failing after 1m0s
Rust / fmt (pull_request) Successful in 45s
C++ / build (pull_request) Successful in 2m31s
Rust / build (pull_request) Successful in 1m49s
Rust / clippy (pull_request) Successful in 1m17s
Python / buildcheck (pull_request) Successful in 2m25s
C++ / clang-tidy (pull_request) Successful in 3m56s
45 lines
1.0 KiB
QML
45 lines
1.0 KiB
QML
import Quickshell
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import ZShell.Config
|
|
import qs.Modules
|
|
import qs.Helpers
|
|
import qs.Components
|
|
import qs.Services
|
|
|
|
CustomRect {
|
|
id: root
|
|
|
|
required property RowLayout loader
|
|
required property Wrapper popouts
|
|
required property PersistentProperties visibilities
|
|
|
|
color: visibilities.dashboard ? Colors.palette.m3primary : Colors.tPalette.m3surfaceContainer
|
|
implicitHeight: Config.bar.height + Tokens.padding.smallest * 2
|
|
implicitWidth: timeText.contentWidth + Tokens.padding.normal * 2
|
|
radius: Tokens.rounding.full
|
|
|
|
CustomText {
|
|
id: timeText
|
|
|
|
anchors.centerIn: parent
|
|
color: root.visibilities.dashboard ? Colors.palette.m3onPrimary : Colors.palette.m3onSurface
|
|
font: Config.appearance.font.family.mono
|
|
text: Time.dateStr
|
|
|
|
Behavior on color {
|
|
CAnim {
|
|
}
|
|
}
|
|
}
|
|
|
|
StateLayer {
|
|
acceptedButtons: Qt.LeftButton
|
|
color: root.visibilities.dashboard ? Colors.palette.m3onPrimary : Colors.palette.m3onSurface
|
|
|
|
onClicked: {
|
|
root.visibilities.dashboard = !root.visibilities.dashboard;
|
|
}
|
|
}
|
|
}
|