chore: restructure ui components
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

This commit is contained in:
2026-11-27 21:05:37 +07:00
parent db3d53f2aa
commit 44c2dc6345
114 changed files with 9117 additions and 7675 deletions
+5 -1
View File
@@ -5,6 +5,7 @@ use gpui::{
Render, Styled as _, TestAppContext, VisualTestContext, Window, div, px, size,
};
use ui::common::v_flex;
use ui::dialog::Dialog;
use ui::popover::Popover;
use ui::theme::Theme;
@@ -60,7 +61,10 @@ fn focus_state(cx: &mut VisualTestContext) -> Option<(FocusHandle, bool)> {
#[gpui::test]
fn closing_a_popover_restores_the_previous_focus(cx: &mut TestAppContext) {
cx.update(Theme::init);
cx.update(|cx| {
Theme::init_with(cx, Theme::fallback_source());
Dialog::bind_keys(cx);
});
let window = cx.open_window(size(px(WINDOW_WIDTH), px(WINDOW_HEIGHT)), |_, cx| {
PopoverHarness {
open: false,