How nyskyfox/moderndesign works
ModernDesign is a native C++ Fluent Design controls framework with an application shell and Direct2D rendering. Its intended workflow is to initialize a window and rendering context, deliver input and frame callbacks to an application, and draw themed controls. The graph includes documented control families and shared rendering, theme, geometry, animation, and icon layers. The tree and excerpts do not show a demo entry point or how applications compose controls, so those links are omitted.
Main entry points: Renderer.cpp Direct2D renderer · Theme.cpp Theme tokens · FluentIcons.cpp Fluent vector icons · Expander.cpp Expander
Components 17
Application shell
- Window and frame loop
src/app/App.cpp
Fluent controls
- Buttons and selection
src/controls/Button.cpp - Toggle controls
src/controls/ToggleSwitch.cpp - Navigation view
src/controls/NavigationView.cpp - Menus and flyouts
src/controls/MenuFlyout.cpp - Content dialogs
src/controls/ContentDialog.cpp - Expander
src/controls/Expander.cpp - Cards and settings
src/controls/SettingsCard.cpp - Tooltips
src/controls/ToolTip.cpp - Progress indicators
src/controls/ProgressBar.cpp
Rendering and theme
- Direct2D renderer
src/core/Renderer.cpp - Theme tokens
src/core/Theme.cpp
Shared primitives
- Fluent vector icons
src/utils/FluentIcons.cpp - Icon path data
src/utils/FluentIconsData.h - Animation easing
src/utils/Easing.h - DIP geometry
src/Geometry.h - Color utilities
src/utils/Color.h
Connections 32
- Window and frame loop → Direct2D renderer: inherits and renders
- Window and frame loop → Theme tokens: sets theme
src/app/App.cpp - Window and frame loop → Fluent vector icons: uses icons
src/app/App.cpp - Direct2D renderer → Theme tokens: uses tokens
- Buttons and selection → Direct2D renderer: draws with
src/controls/Button.cpp - Buttons and selection → Theme tokens: reads tokens
src/controls/Button.cpp - Toggle controls → Direct2D renderer: draws with
src/controls/ToggleSwitch.cpp - Toggle controls → Theme tokens: reads tokens
src/controls/ToggleSwitch.cpp - Navigation view → Direct2D renderer: draws with
src/controls/NavigationView.cpp - Navigation view → Theme tokens: reads tokens
src/controls/NavigationView.cpp - Navigation view → Animation easing: animates with
src/controls/NavigationView.cpp - Menus and flyouts → Direct2D renderer: draws with
src/controls/MenuFlyout.cpp - Menus and flyouts → Theme tokens: reads tokens
src/controls/MenuFlyout.cpp - Menus and flyouts → Animation easing: animates with
src/controls/MenuFlyout.cpp - Content dialogs → Direct2D renderer: draws with
src/controls/ContentDialog.cpp - Content dialogs → Theme tokens: reads tokens
src/controls/ContentDialog.cpp - Content dialogs → Buttons and selection: uses buttons
src/controls/ContentDialog.cpp - Expander → Direct2D renderer: draws with
src/controls/Expander.cpp - Expander → Theme tokens: reads tokens
src/controls/Expander.cpp - Expander → Animation easing: animates with
src/controls/Expander.cpp - Expander → Fluent vector icons: draws icons
src/controls/Expander.cpp - Cards and settings → Direct2D renderer: draws with
src/controls/SettingsCard.cpp - Cards and settings → Theme tokens: reads tokens
src/controls/SettingsCard.cpp - Cards and settings → Fluent vector icons: draws icons
src/controls/SettingsCard.cpp - Tooltips → Direct2D renderer: draws with
src/controls/ToolTip.cpp - Tooltips → Theme tokens: reads tokens
src/controls/ToolTip.cpp - Progress indicators → Direct2D renderer: uses renderer
- Fluent vector icons → Direct2D renderer: draws paths
src/utils/FluentIcons.cpp - Fluent vector icons → Icon path data: loads paths
src/utils/FluentIcons.cpp - Direct2D renderer → DIP geometry: uses geometry
- Theme tokens → DIP geometry: uses geometry
- Fluent vector icons → Color utilities: uses colors