mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-09 03:42:11 +00:00
In PowerPoint, turning on Grayscale view mode turns both the active slide canvas and the slide thumbnail pane to grayscale, while Print retains the original full color for output. Previously, DeckCraft only passed `app.ui.grayscale` to the main canvas texture renderer (`Textures::slide`), while thumbnail rendering (`Textures::thumb`) hardcoded `false` and lacked `grayscale` in its cache key. As a result, when Grayscale mode was enabled, the canvas rendered in grayscale but the thumbnail pane remained in full color. - Update `Textures::thumb` to accept `grayscale: bool` and include it in the cache key (`extra: grayscale as u64`). - Pass `app.ui.grayscale` to `Textures::thumb` in the thumbnail pane (`panels/thumbs.rs`), Slide Sorter & Notes Page (`sorter.rs`), and Notes Master view (`canvas.rs`). - Keep Print preview (`backstage/print.rs`) in full color (`false`) to match the actual exported PDF print output. - Add regression test `to_color_image_turns_colors_to_grayscale_when_flag_is_set`.