mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 11:11:30 +00:00
Restore active styles for Input
s
This commit is contained in:
parent
597aa0475e
commit
184f5f2397
2 changed files with 4 additions and 3 deletions
|
@ -82,6 +82,7 @@ impl<S: 'static + Send + Sync> Input<S> {
|
|||
}
|
||||
|
||||
div()
|
||||
.id("input")
|
||||
.h_7()
|
||||
.w_full()
|
||||
.px_2()
|
||||
|
@ -93,7 +94,7 @@ impl<S: 'static + Send + Sync> Input<S> {
|
|||
.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(
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue