diff --git a/crates/ui2/src/elements/input.rs b/crates/ui2/src/elements/input.rs index 45edb1a73d7fe469609ce88a506d675abe279880..ea8c3306bf8c3373cc7717722d199bba5ae99201 100644 --- a/crates/ui2/src/elements/input.rs +++ b/crates/ui2/src/elements/input.rs @@ -82,6 +82,7 @@ impl Input { } div() + .id("input") .h_7() .w_full() .px_2() @@ -93,7 +94,7 @@ impl Input { .border_color(border_color_hover) .bg(background_color_active) }) - // .active(|a| .border_color(border_color_active)) + .active(|style| style.border_color(theme.middle.base.active.border)) .flex() .items_center() .child( diff --git a/crates/ui2/src/prelude.rs b/crates/ui2/src/prelude.rs index ef7e0fc5ab60e8b33859b52d468f5388ce4fd506..35b0cb2808da3cd9deed0075923d8685f7f2eb2d 100644 --- a/crates/ui2/src/prelude.rs +++ b/crates/ui2/src/prelude.rs @@ -1,6 +1,6 @@ pub use gpui3::{ - div, Click, Element, Hover, IntoAnyElement, ParentElement, ScrollState, SharedString, Styled, - ViewContext, WindowContext, + div, Active, Click, Element, Hover, IntoAnyElement, ParentElement, ScrollState, SharedString, + Styled, ViewContext, WindowContext, }; use crate::settings::user_settings;