mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-27 19:36:56 -06:00
* Windows and Linux: one title bar with the app icon, like Photoshop The window had the OS title bar stacked above PhotoCraft's own top bar. On Windows and Linux the window now has no OS decorations and the top bar is the title bar, as in VectorCraft and Photoshop on Windows: - the app icon (brand.rs) leads the bar, before the menus; - Minimize, Maximize/Restore and Close sit flush in the top-right corner (Close turns red on hover; it runs File > Exit, so unsaved work is asked about first); - the free gap between the menus and the controls still drags the window and a double-click there maximizes it; - invisible 5 pt edges (12 pt corners) resize the window. The right-hand group gets its own rect between the menus and the caption buttons (egui's MenuBar takes the whole row, so it used to be laid out from past the bar's end). Narrow windows drop what is also in a menu before anything overlaps: Discord, then the theme toggle, then search, then the workspace switcher narrows. macOS keeps its traffic lights. New theme tokens caption_close / caption_close_text, Minimize / Maximize / Restore in all 12 catalogs, and a --custom-titlebar flag for the snapshot example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Long right-click menus scroll inside the window instead of running off it widgets::menu_scroll caps a context menu at the visible window height (clear of a taskbar a too-tall window runs under, #315). egui moves the popup up to fit, and it scrolls only when it is taller than the window. Used by the Layers, canvas tool, Channels, Paths and document-tab menus; the menu bar's menus already scroll (menu_nav::level). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>