mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
NClock: factorize NClockAnalog/Digital
i18n: rephrase analog clock translation
This commit is contained in:
@@ -201,11 +201,12 @@ NPanel {
|
||||
}
|
||||
|
||||
// Analog clock
|
||||
ClockLoader {
|
||||
NClock {
|
||||
id: clockLoader
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: Style.marginXL
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
clockStyle: Settings.data.location.analogClockInCalendar ? "analog" : "digital"
|
||||
progressColor: Color.mOnPrimary
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
now: root.now
|
||||
|
||||
@@ -365,8 +365,9 @@ Loader {
|
||||
}
|
||||
|
||||
// Clock
|
||||
ClockLoader {
|
||||
NClock {
|
||||
now: Time.date
|
||||
clockStyle: Settings.data.location.analogClockInCalendar ? "analog" : "digital"
|
||||
Layout.preferredWidth: 70
|
||||
Layout.preferredHeight: 70
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
|
||||
Reference in New Issue
Block a user