Revert buggy pr (#28554)

Earlier, I merged #24723

Before merging it, I made a change that was incorrect and fast followed
with a fix: #28548

Following that fix, @bennetbo discovered that the modals where no longer
highlighting correctly, particularly the outline modal.

So I'm going to revert it all.

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki 2025-04-10 18:58:36 -06:00 committed by GitHub
parent 71c2a11bd9
commit c143846e42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 70 deletions

View file

@ -8,13 +8,11 @@ struct HelloWorld {}
impl Render for HelloWorld {
fn render(&mut self, _window: &mut Window, _cx: &mut Context<Self>) -> impl IntoElement {
div()
.font_family(".SystemUIFont")
.bg(gpui::white())
.flex()
.flex_col()
.gap_2()
.p_4()
.gap_4()
.size_full()
.child(div().child("Text left"))
.child(div().text_center().child("Text center"))
@ -73,24 +71,6 @@ impl Render for HelloWorld {
.child("100%"),
),
)
.child(
div()
.id("Text Link")
.text_color(gpui::blue())
.cursor_pointer()
.active(|this| {
this.text_color(gpui::white())
.bg(gpui::blue())
.text_decoration_1()
.text_decoration_wavy()
})
.hover(|this| {
this.text_color(gpui::rgb(0x973717))
.bg(gpui::yellow())
.text_decoration_1()
})
.child("Text with hover, active styles"),
)
}
}