How godrezjr2/macdock works
MacDock is a Windows 11 desktop shell that recreates macOS-style dock, menu bar, search, app launching, and desktop widgets. The user workflow runs from desktop interaction through a dock, menu-bar item, or keyboard shortcut into a focused feature—such as launching an app, switching windows, searching, or opening a system flyout. Supporting layers provide shell integration, rendering, configuration, and usage data. The README documents the main capabilities; some feature links below rely on that documentation because their implementation excerpts were not provided.
Main entry points: menubar.rs Menu bar · dock.rs Dock · shell.rs Windows shell · flyout.rs Flyout framework
Components 30
Desktop shell
- Dock
src/dock.rs - Menu bar
src/menubar.rs - AppBar integration
src/taskbar.rs - Desktop widgets
src/widgets.rs
App access
- Apps window
src/apps.rs - Launchpad
src/launchpad.rs - Spotlight search
src/spotlight.rs - App switcher
src/switcher.rs - Windows shell
src/shell.rs
System panels
- Flyout framework
src/flyout.rs - Settings window
src/fly_settings.rs - Control Center
src/fly_cc.rs - Wi-Fi menu
src/fly_wifi.rs - Battery panel
src/fly_battery.rs - Calendar panel
src/fly_cal.rs - Tray icons
src/fly_tray.rs - AI usage panel
src/fly_ai.rs - App menus
src/menu.rs
Data and settings
- AI usage reader
src/ai_usage.rs - Claude usage API
src/claude_oauth.rs - Configuration
src/config.rs - Widget configuration
src/widget_cfg.rs - Widget data
src/widget_data.rs - Localization
src/i18n.rs - Update manager
src/update.rs
Rendering and effects
- Genie animation
src/genie.rs - Graphics helpers
src/gfx.rs
Other components
- Desktop user
- GitHub releases
- Anthropic API
Connections 35
- Desktop user → Dock: interacts
- Desktop user → Menu bar: interacts
- Desktop user → Apps window: opens
- Desktop user → Spotlight search: searches
- Desktop user → App switcher: switches apps
- Desktop user → Desktop widgets: views
- Dock → Windows shell: launches apps
src/dock.rs - Dock → Genie animation: animates windows
src/dock.rs - Dock → App menus: opens menus
src/dock.rs - Dock → Configuration: reads settings
src/dock.rs - Dock → Graphics helpers: draws through
src/dock.rs - Menu bar → App menus: opens menus
src/menubar.rs - Menu bar → AI usage reader: reads summary
src/menubar.rs - Menu bar → Update manager: checks updates
src/menubar.rs - Menu bar → Flyout framework: opens panels
src/menubar.rs - Menu bar → AppBar integration: reserves screen
src/menubar.rs - Apps window → Windows shell: launches apps
- Spotlight search → Windows shell: launches apps
src/spotlight.rs - App switcher → Windows shell: activates windows
src/switcher.rs - App switcher → Genie animation: requests animation
src/switcher.rs - Settings window → Configuration: saves settings
src/fly_settings.rs - Settings window → Flyout framework: uses framework
src/fly_settings.rs - Control Center → Flyout framework: uses framework
src/fly_cc.rs - Control Center → Wi-Fi menu: opens Wi-Fi
src/fly_cc.rs - Wi-Fi menu → Flyout framework: uses framework
src/fly_wifi.rs - AI usage panel → AI usage reader: shows usage
src/fly_ai.rs - AI usage reader → Claude usage API: requests limits
src/ai_usage.rs - Claude usage API → Anthropic API: fetches limits
src/claude_oauth.rs - Desktop widgets → Widget configuration: reads layout
src/widgets.rs - Desktop widgets → Widget data: renders data
src/widgets.rs - Widget data → Claude usage API: uses usage data
src/widget_data.rs - Genie animation → Graphics helpers: uses graphics
src/genie.rs - Update manager → GitHub releases: checks releases
- Menu bar → Localization: localizes labels
src/menubar.rs - Settings window → Localization: localizes options
src/fly_settings.rs