Skip to content

[MacOS] Fix tabs #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 5, 2025
Merged

[MacOS] Fix tabs #165

merged 2 commits into from
Jun 5, 2025

Conversation

apman
Copy link
Contributor

@apman apman commented Jun 5, 2025

#154 introduced a slightly more visible little line next to selected tabs, and #155 broke the vertical alignment of the tabstrip to the tab body.

This fixes both, but also removes the previous fragile implementation of the divider lines as pipe characters, replacing them with a border and moving each tab's divider line to the right which allows the next tab's selection border to completely hide the divider (since tabs further to the right are above the previous ones on the z-axis)

Also corrected the body colour for dark mode.

Added a :selected:pressed state, but kept the dark mode colour deliberately more subtle than native MacOS, since Avalonia doesn't distinguish between 'already selected & then pressed' which is supposed to flash a clear "hey, I'm already selected!' colour, and 'pressed & becoming selected' which looks really jarring when the colour difference between the two states is too big.

apman added 2 commits June 4, 2025 23:21
- Remove fragile divider implementation & fix visible divider next to selected tab
- correct tab body bg color (darkmode)
- correct padding
@apman apman merged commit ecdfd80 into master Jun 5, 2025
@apman apman deleted the MacOS/fix-tabs branch June 5, 2025 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant