Repository navigation
feat(native): wire chrome, sidebar, panel, and settings THEME_CSS_HOOKS slots - #470
Merged
Merged
Conversation
This was referenced Nov 20, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #457 (Wave H4B Part 1).
Problem
The
THEME_CSS_HOOKSslot compiler and GPUIThemeSlotengine landed in #467, but the 9 chrome, sidebar, panel, and settings surfaces had not yet been wired to read compiled slot overrides or scopedvar(--theme-background-image)layers.Changes
Wired all 9 chrome/sidebar/panel/settings
ThemeSlothooks across the 8 owned files without introducing duplicate.hover()/.active()closures:workspace.rs:ThemeSlot::Sidebar+theme_slot_background_layeron inline sidebar (open & closing) and narrow sheet (render_sidebar_sheet);ThemeSlot::ConversationArea+theme_slot_background_layeron thread & draft conversation area containers; titlebar delegates outer chrome bar tochat_header::container.sidebar/mod.rs:ThemeSlot::SidebarInner+theme_slot_background_layeronSidebarPane(sidebar-folder-drop), keeping inner background transparent whenThemeSlot::Sidebarsupplies a custom background/wallpaper so outer sidebar backgrounds show through.sidebar/row.rs:ThemeSlot::ThreadItemonrow_surface, applying base overrides via.theme_slotand composingrefine_slot_hover/refine_slot_activesafely inside the single.hover(...)/.active(...)blocks.project_icon.rs:ThemeSlot::ProjectMonogramon monogram tiles (including image fallback/loading closures andpreview), propagating text color/font overrides to the inner monogram label and supporting:hover.chat_header.rs:chat_header::containerwiringThemeSlot::ChatHeader+theme_slot_background_layeron the full-width titlebar bar.thread_details/view.rs:ThemeSlot::ThreadDetailsCard+theme_slot_background_layeronthread-details-card, yieldingglass::backdropcleanly when CSS overrides background, border, or corner radius.terminal/drawer_view.rs:ThemeSlot::ThreadTerminalDrawer+theme_slot_background_layeron open and closing terminal drawer containers.settings/mod.rs:ThemeSlot::SettingsPageScrollon both scrollable (settings-content) and list-backed (settings-page-scroll-list) settings containers, withtheme_slot_background_layermounted behind the scroll viewport soscroll_to_itemindices stay exact.Tests
workspace::tests::theme_css_hooks_chrome_panels_render_cleanly_with_preview_and_scoped_background_image(exercisespreview_with_cssacross all 9 hooks including:hover,:active, andvar(--theme-background-image)scoping on inline/sheet sidebar, active/inactive/receding-working thread rows, project monograms, chat header, conversation area, inline/popover thread details cards, terminal drawer, and scrollable/list settings pages).project_icon::tests::project_monogram_slot_refines_tile_and_clears_on_stock_themechat_header::tests::chat_header_container_applies_theme_slot_and_restores_on_clearImplemented with Antigravity.