background overlay: smooth color transitions on colon, glow, seconds bar
This commit is contained in:
parent
81d0da4cd7
commit
622f06249c
1 changed files with 15 additions and 0 deletions
|
|
@ -53,6 +53,11 @@ PanelWindow {
|
|||
Text {
|
||||
text: ":"
|
||||
color: colon._colors[colon._colorIdx % colon._colors.length]
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
duration: 800
|
||||
}
|
||||
}
|
||||
font.pixelSize: 72
|
||||
font.family: M.Theme.fontFamily
|
||||
font.bold: true
|
||||
|
|
@ -104,6 +109,11 @@ PanelWindow {
|
|||
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]
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
duration: 800
|
||||
}
|
||||
}
|
||||
|
||||
SequentialAnimation {
|
||||
loops: Animation.Infinite
|
||||
|
|
@ -176,6 +186,11 @@ PanelWindow {
|
|||
width: parent.width * (clock.date.getSeconds() / 59)
|
||||
height: parent.height
|
||||
color: colon._colors[colon._colorIdx % colon._colors.length]
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
duration: 800
|
||||
}
|
||||
}
|
||||
radius: 1
|
||||
opacity: 0.6
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue