How glacierglimmer/zmd-charge-plus-for-macos works
Endfield Charge Plus for macOS is a menu-bar utility with a customizable, animated desktop HUD. Its main workflow loads settings and a HUD profile, collects macOS and configured external data, resolves profile templates into display content, and presents that content in the HUD. The graph also shows profile editing, persistence, native integration, and documented service capabilities. Some subsystem links rely on the README or SOURCE INDEX; unsampled implementation details are not inferred beyond those references.
Main entry points: VariableHub.cs Variable collection · SettingsWindow.axaml.cs Settings window · CustomHudRuntime.cs HUD runtime · App.axaml.cs App startup
Components 25
Application shell
- App startup
App.axaml.cs - Settings window
Settings/SettingsWindow.axaml.cs - HUD window
Views/HudWindow.axaml.cs
HUD and profiles
- HUD customizer
Customization/HudCustomizerView.axaml.cs - HUD runtime
Customization/CustomHudRuntime.cs - Profile renderer
Customization/HudProfileRenderer.cs - Template engine
Customization/TemplateEngine.cs - HUD animations
Animations/HudAnimations.cs
Variables and integrations
- Variable collection
Customization/VariableHub.cs - macOS variables
Customization/MacVariableProvider.cs - Advanced variables
Customization/AdvancedVariableProvider.cs - Variable catalog
Customization/VariableCatalog.cs - macOS variable catalog
Customization/MacVariableCatalog.cs - Network and API services
Customization/VariableHub.cs
macOS services
- Native bridge
Interop/MacNative.cs - System probe
Interop/MacSystemProbe.cs - macOS native services
native/ecpmac.m - Login startup
Settings/StartupManager.cs
Settings and support
- Settings persistence
Settings/SettingsManager.cs - Settings and profiles
Settings/AppSettings.cs - Settings normalizer
Customization/HudSettingsNormalizer.cs - Secret storage
Customization/SecretStore.cs - Application logging
Diagnostics/AppLog.cs
Other components
- Mac user
- GitHub Releases
Connections 35
- Mac user → App startup: launches
README.md - App startup → Settings persistence: loads settings
App.axaml.cs - App startup → HUD runtime: starts runtime
App.axaml.cs - App startup → Settings window: opens settings
- Settings window → HUD window: controls HUD
- Settings window → Settings persistence: saves settings
Settings/SettingsWindow.axaml.cs - Settings window → HUD customizer: edits profiles
- Settings window → Login startup: configures login
Settings/SettingsWindow.axaml.cs - HUD runtime → Settings persistence: uses settings
App.axaml.cs - HUD runtime → Variable collection: collects variables
Customization/CustomHudRuntime.cs - HUD runtime → Settings normalizer: normalizes profiles
Customization/CustomHudRuntime.cs - HUD runtime → Profile renderer: renders profiles
Customization/CustomHudRuntime.cs - HUD runtime → System probe: queries system
Customization/CustomHudRuntime.cs - Profile renderer → Template engine: resolves templates
Customization/HudProfileRenderer.cs - Template engine → Variable collection: reads values
- HUD window → HUD animations: plays animations
Views/HudWindow.axaml.cs - HUD window → Native bridge: sets window behavior
Views/HudWindow.axaml.cs - HUD customizer → Settings normalizer: normalizes profiles
Customization/HudCustomizerView.axaml.cs - HUD customizer → Profile renderer: previews profiles
Customization/HudCustomizerView.axaml.cs - HUD customizer → macOS variable catalog: checks availability
Customization/HudCustomizerView.axaml.cs - HUD customizer → Variable catalog: browses variables
Customization/HudCustomizerView.axaml.cs - Variable collection → macOS variables: collects macOS data
Customization/VariableHub.cs - Variable collection → Advanced variables: collects advanced data
Customization/VariableHub.cs - Variable collection → Variable catalog: uses definitions
Customization/VariableHub.cs - Variable collection → Network and API services: queries services
README.md - macOS variable catalog → macOS variables: detects variables
Customization/MacVariableCatalog.cs - macOS variables → Native bridge: reads native metrics
Customization/MacVariableProvider.cs - Native bridge → macOS native services: invokes native API
Interop/MacNative.cs - System probe → Native bridge: uses native bridge
Interop/MacSystemProbe.cs - Variable collection → Secret storage: reads credentials
Customization/VariableHub.cs - Secret storage → Native bridge: uses Keychain
README.md - Settings persistence → Settings normalizer: normalizes settings
Settings/SettingsManager.cs - Settings persistence → Settings and profiles: loads and saves
Settings/SettingsManager.cs - App startup → Application logging: initializes logging
App.axaml.cs - Settings window → GitHub Releases: checks updates
README.md