Skip to content

Top bar: in full screen the left buttons move into the traffic lights' space - #1767

Merged
echelon merged 1 commit into
storytold:mainfrom
marcoarnulfo:fix/fullscreen-top-bar-inset
Oct 15, 2026
Merged

echelon merged 1 commit into
storytold:mainfrom
marcoarnulfo:fix/fullscreen-top-bar-inset

Conversation

@marcoarnulfo

Copy link
Copy Markdown
Contributor

Fixes #1763.

The top bar reserves a fixed 78 pt on the left whenever the integrated title bar is on (macOS), so in full screen, where the traffic lights are gone, the sidebar ("My Photos") and Back/Forward buttons kept that gap. The margin now follows window_is_fullscreen, which the app already tracks from the viewport (it's also what keeps the title bar gestures off in full screen, from #408): 16 pt in full screen, the same distance the Discord button keeps from the right edge (12 pt margin + 4), and back to 78 pt when leaving. The parity row for the title bar mentions it.

Validation:

  • tests_titlebar::full_screen_moves_the_left_buttons_into_the_traffic_lights_space: enters full screen with ⇧⌘F and leaves it again; fails on main (sidebar button at 78, Discord padding 16), passes here
  • cargo test -p lightcraft-ui-egui --lib tests_titlebar, cargo clippy -p lightcraft-ui-egui --all-targets -- -D warnings, cargo fmt --all -- --check
  • (macOS, Apple silicon)

@echelon

echelon commented Oct 15, 2026

Copy link
Copy Markdown
Member

Thank you @marcoarnulfo! This landed on main in integration batch 36 (#1843).

If you haven't already, please join our Discord: https://discord.gg/artcraft. We'd love to have you there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

My Photos & Back/Forward buttons should be shifted left when in fullscreen on MacOS

2 participants