Repository navigation
feat(native): wire UI primitive, overlay, and scrollbar THEME_CSS_HOOKS slots (Part of #457) - #469
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 3).
Problem
After the
THEME_CSS_HOOKSslot parser, compiler, and GPUIThemeSlotengine landed in #467, the 10 UI primitive, overlay, and scrollbar slots (button,input,switch,select-trigger,dialog-popup,popover-popup,menu-popup,tooltip-popup,scroll-area-scrollbar,scroll-area-thumb) still needed live wiring acrossThemeConfigand GPUI primitives/overlays.Summary
theme/mod.rs&theme/slots.rs:ThemeSlot::ScrollAreaScrollbar(background/opacity/display: none),ThemeSlot::ScrollAreaThumb(base&:hover), andThemeSlot::Input(border-color/solidbackground) intoThemeConfig("scrollbar.background","scrollbar.thumb.background","scrollbar.thumb.hover.background","input.border") on apply, boot, and live preview so allgpui-componentoverlay scrollbars andInputwidgets restyle live.slot_has_hover,slot_has_active,slot_has_background,slot_border_color) andtheme_slot_clipped_background_layerso containers with overflowing submenus or scrollable lists clip scoped--theme-background-imagelayers without breaking children.:hover/:activeviarefine_slot_hover/refine_slot_activeinside existing closures with zero duplicate.hover()/.active()calls, and suppressingglass::backdroponly when a slot sets a custom background):settings/controls.rs:Button(Button),Switch(Switch),Selecttrigger (SelectTrigger) + popup (PopoverPopup/MenuPopup),tooltip(TooltipPopup),DialogFrame(DialogPopup+ background layer).right_panel/controls.rs:Button(Button),tooltip_view(TooltipPopup, also shared bythread_details).composer/controls.rs:ComposerControl&Button(Button),tooltip(TooltipPopup),menu_surface(MenuPopup),popup_surface(PopoverPopup).thread_details/controls.rs:Row(Button/SelectTriggerfor chevron rows) &MenuTrigger(Button).dialog.rs:ConfirmDialogcard (DialogPopup+ background layer) & footer buttons (Button).context_menu.rs:ContextMenu::panel(MenuPopup+ clipped background layer preserving overflowing submenus).palette/mod.rs:CommandPalettecard (DialogPopup+ background layer), back button (Button), and searchInput(Input).apps/native/parity/LEDGER.md: UpdatedST-APPEARANCEandAP-THEMENative notes to reflect all 29THEME_CSS_HOOKSselectors compiling into live GPUIStyleRefinementoverrides (keeping non-hook DOM selectors &getComputedStyleinspector noted as[D]/DOM n/a).Verification
vp fmt --check apps/native/parity/LEDGER.md: PASSnode apps/native/scripts/gen-theme.ts --check: PASSnode apps/native/conformance/generate.ts --check: PASSnode --test apps/native/parity/sync.test.ts: 47 passed, 0 failedCARGO_INCREMENTAL=0 cargo clippy --manifest-path apps/native/Cargo.toml --workspace --all-targets -- -D warnings: PASS (0 warnings)CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-core: 1,902 passed (1,894 unit + 8 integration), 0 failedCARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-client -- --test-threads=1: 171 passed, 0 failedT3_NATIVE_HOME=$(mktemp -d) CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-native -- --test-threads=1: 234 passed, 0 failed--features snapshottests:theme(15/15),dialog(21/21),context_menu::project_filter_tests(3/3),palette(16/16),right_panel(13/13),settings(72/72),composer::controls(1/1),thread_details(11/11) — 152/152 passed (note: 2 pre-existingHeadlessAppContextAppStateteardown leaks remain in untouchedcontext_menu/thread_menu_tests.rs).CARGO_INCREMENTAL=0 cargo build --manifest-path apps/native/Cargo.toml -p t3-native: PASS