Conversation
Add PartialEq, Eq, PartialOrd, Ord, Copy traits to Date struct for date comparison operations needed by random theme selector. Add Date::new() constructor and accessor methods (year, month, day).
Add DailyRandomThemeSelector that picks a random theme each day using Fisher-Yates shuffle with xorshift64 RNG (seeded by getrandom). Features: - No theme repeats until all themes have been used - Auto-reshuffle after all themes are consumed - filter_themes_by_pool() for user-specified theme pool filtering - Pool can be None (all themes) or Some([...]) (specific themes) - Returns references to avoid unnecessary cloning
Add WallpaperMode enum with struct variants:
- Fixed { monitor_specific_wallpapers }: existing solar-based mode
- Random { pool }: new daily random mode with optional theme pool
Add backward compatibility: old configs without wallpaper_mode
automatically migrate to Fixed mode.
Update monitor_specific_wallpapers() to return Option since
Random mode doesn't have per-monitor configuration.
Add random mode handling to DaemonApplication: - Initialize RandomModeState for Random wallpaper mode - Switch theme on new day or first run - Scan themes directory for available themes - Apply selected theme to all monitors (Fixed mode internally) Update ThemeEngine and MonitorProcessor to handle monitor_specific_wallpapers() returning Option. Add getrandom dependency for entropy-based seed generation.
Update theme service functions to handle monitor_specific_wallpapers() now returning Option<&MonitorSpecificWallpapers> instead of &MonitorSpecificWallpapers.
Update getrandom dependency from 0.2 to 0.4, replacing deprecated getrandom::getrandom() with getrandom::fill(). Also update windows crate version and mockall version constraint.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close: #627