Expand description
Theme file discovery and loading for dampen-dev.
This module provides functions for discovering theme.dampen files and loading them into ThemeContext for runtime use.
Note: System theme detection is handled by Iced’s built-in system::theme_changes()
subscription, which uses winit’s native theme detection. The initial theme is
determined by the theme document’s default_theme setting, and then updated
reactively when the system theme changes.
Enums§
- Theme
Load Error - Errors that can occur when loading themes
Functions§
- create_
minimal_ dampen_ app - Create a minimal Dampen application structure for testing.
- discover_
theme_ file - Discover theme.dampen file in a project directory.
- find_
project_ root - Find the project root by searching for theme.dampen in multiple locations.
- find_
theme_ file_ path - Find the path to theme.dampen in a project directory.
- load_
theme_ context - Discover and load theme.dampen from a project directory.
- load_
theme_ context_ with_ preference - Discover and load theme.dampen with an optional system preference.