* Adds a simple desktop clock * Adds ability to change color * Sets the desktop clock to be disabled by default * Improves desktop clock code based on feedback * Disable the clock by default * Fixes config of background clock * Removes the timer for the desktop clock --------- Co-authored-by: Kaj Giesbers <kajgiesbers@gmail.com>
20 lines
451 B
QML
20 lines
451 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import qs.config
|
|
import qs.services
|
|
import qs.widgets
|
|
|
|
Item {
|
|
id: clockRoot
|
|
width: timeText.implicitWidth + Appearance.padding.large * 2
|
|
height: timeText.implicitHeight + Appearance.padding.large * 2
|
|
|
|
|
|
StyledText {
|
|
id: timeText
|
|
anchors.centerIn: parent
|
|
font.pointSize: Appearance.font.size.extraLarge
|
|
font.bold: true
|
|
text: Time.format("hh:mm:ss");
|
|
}
|
|
}
|