Skip to content

fe: give macos its own stylesheet, its rules were scattered through the theme - #266

Merged
landsman merged 1 commit into
mainfrom
worktree-mac-os-css
Nov 1, 2026
Merged

landsman merged 1 commit into
mainfrom
worktree-mac-os-css

Conversation

@landsman

@landsman landsman commented Nov 1, 2026

Copy link
Copy Markdown
Owner

macOS's rules were scattered through tokens.css, base.css and tables.css, while Windows has one file. They now sit in mac-os.css, which Theme::cssMap() loads on macOS only, as it does windows-os.css on Windows. window.css stays: it follows the frameless window from the launcher, not the OS class.

Moving rules behind the rest of the theme can change who wins the cascade, so this was compared rather than assumed: every element's computed style in WebKit, before and after, on 6 pages in light and dark, titled and with .ad-frameless added by hand, 16,800 elements with no differences. Two runs on main also matched each other. A simulated Linux or Windows no longer picks up the macOS accent.

.mac-os body { -webkit-font-smoothing: antialiased } moved as it was and looks dead, since the class is on <body> itself. Fixing it changes how text renders on macOS, so it is left for a change of its own.

The theme's README is rewritten with a heading, the files, the schemes and the body classes. make qa, make check and make e2e pass on macOS.

@landsman
landsman merged commit 53d57c3 into main Nov 1, 2026
4 checks passed
@landsman
landsman deleted the worktree-mac-os-css branch November 1, 2026 19:24
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.

1 participant