Compare commits
3 commits
974613d811
...
bf40be76c5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf40be76c5 | ||
|
|
ba3c632d07 | ||
|
|
d4ca0f9805 |
2 changed files with 53 additions and 8 deletions
|
|
@ -22,21 +22,65 @@ PanelWindow {
|
||||||
|
|
||||||
SystemClock {
|
SystemClock {
|
||||||
id: clock
|
id: clock
|
||||||
precision: SystemClock.Minutes
|
precision: SystemClock.Seconds
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
Text {
|
Row {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
text: Qt.formatDateTime(clock.date, "HH:mm")
|
|
||||||
color: M.Theme.base05
|
Text {
|
||||||
opacity: 0.7
|
text: Qt.formatDateTime(clock.date, "HH")
|
||||||
font.pixelSize: 72
|
color: M.Theme.base05
|
||||||
font.family: M.Theme.fontFamily
|
opacity: 0.7
|
||||||
font.bold: true
|
font.pixelSize: 72
|
||||||
|
font.family: M.Theme.fontFamily
|
||||||
|
font.bold: true
|
||||||
|
}
|
||||||
|
Text {
|
||||||
|
id: colon
|
||||||
|
text: ":"
|
||||||
|
font.pixelSize: 72
|
||||||
|
font.family: M.Theme.fontFamily
|
||||||
|
font.bold: true
|
||||||
|
|
||||||
|
property int _colorIdx: 0
|
||||||
|
readonly property var _colors: [M.Theme.base08, M.Theme.base09, M.Theme.base0A, M.Theme.base0B, M.Theme.base0C, M.Theme.base0D, M.Theme.base0E, M.Theme.base05]
|
||||||
|
color: _colors[_colorIdx % _colors.length]
|
||||||
|
|
||||||
|
SequentialAnimation {
|
||||||
|
loops: Animation.Infinite
|
||||||
|
running: true
|
||||||
|
NumberAnimation {
|
||||||
|
target: colon
|
||||||
|
property: "opacity"
|
||||||
|
to: 0.1
|
||||||
|
duration: 1000
|
||||||
|
easing.type: Easing.InOutSine
|
||||||
|
}
|
||||||
|
ScriptAction {
|
||||||
|
script: colon._colorIdx++
|
||||||
|
}
|
||||||
|
NumberAnimation {
|
||||||
|
target: colon
|
||||||
|
property: "opacity"
|
||||||
|
to: 0.7
|
||||||
|
duration: 1000
|
||||||
|
easing.type: Easing.InOutSine
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Text {
|
||||||
|
text: Qt.formatDateTime(clock.date, "mm")
|
||||||
|
color: M.Theme.base05
|
||||||
|
opacity: 0.7
|
||||||
|
font.pixelSize: 72
|
||||||
|
font.family: M.Theme.fontFamily
|
||||||
|
font.bold: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,7 @@ PanelWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
M.BarGroup {
|
M.BarGroup {
|
||||||
|
Layout.minimumWidth: 0
|
||||||
clip: true
|
clip: true
|
||||||
M.WindowTitle {
|
M.WindowTitle {
|
||||||
visible: M.Modules.windowTitle.enable
|
visible: M.Modules.windowTitle.enable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue