Files
bbedward ccbf1d38ad widgets: bump qml-common, rename Dank* prefixed widgets to D, add
deprecation notice to plugin compatibility shims

- When qml-common became a thing, we left qs.Widgets shims in place for
  plugin compatibility
- It's annoying to need to maintain them when qml-common has any change,
  add a warning so we can safely deprecate them in the future
- One shot rename the common stuff to D to make it shorter and nicer to
  write
2026-10-05 16:47:19 -04:00

40 lines
1.1 KiB
QML

import QtQuick
import Quickshell
import qs.Common
import qs.Services
import qs.DCommon.Widgets
DClockWidget {
id: root
property real widgetWidth: 280
property real widgetHeight: 200
property string instanceId: ""
property var instanceData: null
property var lockHost: null
cfg: instanceData?.config ?? ({})
enabled: instanceData?.enabled ?? true
now: systemClock.date
locale: I18n.locale()
use24HourClock: SettingsData.use24HourClock
padHours12Hour: SettingsData.padHours12Hour
dateFormat: lockScreen ? SettingsData.lockDateFormat : SettingsData.clockDateFormat
fallbackFontFamily: SettingsData.lockScreenFontFamily
accentColor: lockHost ? lockHost.contentColor(colorMode, customColor) : themeAccent
SystemClock {
id: systemClock
precision: root.needsSeconds ? SystemClock.Seconds : SystemClock.Minutes
}
Connections {
target: SessionService
function onSessionResumed() {
systemClock.enabled = false;
systemClock.enabled = true;
}
}
}