Use per-output app CSS so non-focused monitors render one palette #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/per-monitor-app-css"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
breadcastapplied its own CSS only at display level viaapply_app_css(session-global palette).bind_window_autoattaches the per-output shared sheet but not the app sheet, so on a monitor whose wallpaper differs the panel/chips/accents kept the global palette while shared-sheet widgets followed the output — a mixed palette on non-focused monitors (audit finding #2).Switch to
bind_window_auto_with_app_css(&window, css::build_css)so the app CSS is rebuilt against the per-output palette. Theapply_app_csscall stays as the display-level / SIGHUP fallback, matchingbreadbox/breadhelp/breadgreet.clippy
-D warningsclean;cargo testgreen (6 + 9 tests);cargo build --lockedunchanged.