How danielchalmers/desktopclock works
DesktopClock is a Windows desktop clock widget. The main workflow is launching the app, displaying a live clock or countdown, and adjusting its format and appearance in the companion windows; preferences persist between runs. Additional capabilities include time-zone display, countdown sound, theme and system-theme support, localization, startup behavior, fullscreen hiding, and OLED burn-in mitigation. The graph follows documented capabilities and visible source references; some feature details come from the README because their implementation was not sampled.
Main entry points: MainWindow.xaml.cs Clock window · Settings.cs Saved preferences · App.xaml.cs App startup · FormatEditor.xaml.cs Format editor
Components 23
Clock runtime
- App startup
DesktopClock/App.xaml.cs - Clock window
DesktopClock/MainWindow.xaml.cs - Saved preferences
DesktopClock/Properties/Settings.cs - Clock timer
DesktopClock/Utilities/SystemClockTimer.cs
User customization
- Settings window
DesktopClock/SettingsWindow.xaml.cs - Format editor
DesktopClock/FormatEditor.xaml.cs - Countdown editor
DesktopClock/CountdownTargetEditor.xaml.cs - Theme picker
DesktopClock/ThemePresetPicker.xaml.cs
Time and formatting
- Format presets
DesktopClock/Utilities/FormatPresets.cs - Format tokenizer
DesktopClock/Utilities/Tokenizer.cs - Time formatter
DesktopClock/Utilities/TimeStringFormatter.cs - Date and time utilities
DesktopClock/Utilities/DateTimeUtil.cs - Relative time
DesktopClock/Utilities/RelativeTimeFormatter.cs - Countdown conversion
DesktopClock/Utilities/CountdownTargetConverter.cs
Platform and presentation
- Clock themes
DesktopClock/ClockTheme.cs - System palette
DesktopClock/Utilities/ThemeManager.cs - Windows theme service
DesktopClock/Utilities/SystemThemeService.cs - Localization
DesktopClock/Localization/Loc.cs - Fullscreen hiding
DesktopClock/Utilities/FullscreenHideManager.cs - Burn-in mitigation
DesktopClock/Utilities/PixelShifter.cs - Outlined text
DesktopClock/OutlinedTextBlock.cs - Height scaling
DesktopClock/Utilities/HeightScaleConverter.cs
Other components
- Desktop user
Connections 37
- Desktop user → App startup: launches
README.md - App startup → Clock window: shows
- App startup → System palette: initializes
DesktopClock/App.xaml.cs - App startup → Saved preferences: prefetches lists
- Desktop user → Settings window: opens settings
README.md - Desktop user → Format editor: edits format
README.md - Desktop user → Countdown editor: sets countdown
README.md - Desktop user → Theme picker: chooses theme
README.md - Settings window → Saved preferences: updates
DesktopClock/SettingsWindow.xaml.cs - Settings window → System palette: applies theme
DesktopClock/SettingsWindow.xaml.cs - Format editor → Saved preferences: updates format
DesktopClock/FormatEditor.xaml.cs - Format editor → Format presets: loads presets
DesktopClock/FormatEditor.xaml.cs - Format editor → Format tokenizer: previews format
DesktopClock/FormatEditor.xaml.cs - Format editor → Time formatter: previews time
DesktopClock/FormatEditor.xaml.cs - Countdown editor → Saved preferences: updates target
DesktopClock/CountdownTargetEditor.xaml.cs - Countdown editor → Format presets: loads formats
DesktopClock/CountdownTargetEditor.xaml.cs - Countdown editor → Relative time: previews target
DesktopClock/CountdownTargetEditor.xaml.cs - Theme picker → Clock themes: selects preset
DesktopClock/ThemePresetPicker.xaml.cs - Theme picker → Saved preferences: applies preset
DesktopClock/ThemePresetPicker.xaml.cs - Clock window → Saved preferences: reads preferences
DesktopClock/MainWindow.xaml.cs - Clock window → Clock timer: updates display
DesktopClock/MainWindow.xaml.cs - Clock window → Time formatter: formats display
DesktopClock/MainWindow.xaml.cs - Clock window → Date and time utilities: uses date utilities
DesktopClock/MainWindow.xaml.cs - Clock window → Fullscreen hiding: checks fullscreen
DesktopClock/MainWindow.xaml.cs - Clock window → Burn-in mitigation: shifts position
DesktopClock/MainWindow.xaml.cs - Time formatter → Format tokenizer: formats tokens
DesktopClock/Utilities/TimeStringFormatter.cs - Time formatter → Relative time: formats relative time
DesktopClock/Utilities/TimeStringFormatter.cs - Clock window → Countdown conversion: uses countdown target
- Clock window → Clock themes: renders appearance
- Clock window → Outlined text: renders outlined text
- Clock window → Height scaling: scales display
DesktopClock/MainWindow.xaml.cs - Clock window → Localization: shows translated text
DesktopClock/MainWindow.xaml.cs - System palette → Windows theme service: reads system colors
DesktopClock/Utilities/ThemeManager.cs - Clock themes → Windows theme service: gets accent color
DesktopClock/ClockTheme.cs - Clock themes → Saved preferences: applies appearance
DesktopClock/ClockTheme.cs - App startup → Localization: sets text culture
DesktopClock/App.xaml.cs - Desktop user → Clock window: views clock
README.md