forge
Explore
Log in

Don't you dare go Hollow

Invite, community settings and builder searches use the underline search field instead of the stock outlined input

Browse files at this commit

764cf775039ef2e5dfa255e329195bfab6538e10Ahmet Kaan GümüşParent: 05309cd
  • style
    • invite, community settings and builder searches use the underline search field instead of the stock outlined input
Show full message
💄 style: invite, community settings and builder searches use the underline search field instead of the stock outlined input
crates/client/src/gui/builder/communities.rsmodified+2 -2
@@ -8,7 +8,7 @@ use common::{
8 };8 };
9 use gpui_kit::{9 use gpui_kit::{
10 AnyElement, App, Context, Div, Entity, FontWeight, IntoElement, ParentElement, Styled, Window,10 AnyElement, App, Context, Div, Entity, FontWeight, IntoElement, ParentElement, Styled, Window,
11- assets::IconName, component::input::Input, div, prelude::FluentBuilder as _, px,11+ assets::IconName, div, prelude::FluentBuilder as _, px,
12 };12 };
13 13
14 use super::{14 use super::{
@@ -300,7 +300,7 @@ impl Yumush {
300 div().pb(px(space::SM)).flex().items_center().child(300 div().pb(px(space::SM)).flex().items_center().child(
301 div()301 div()
302 .w(px(size::SIDEBAR))302 .w(px(size::SIDEBAR))
303- .child(Input::new(&self.chat.builder_search)),303+ .child(crate::gui::sidebar::input_box(&self.chat.builder_search, palette)),
304 ),304 ),
305 )305 )
306 .child(rows_body(rows, w().builder_communities.empty, palette))306 .child(rows_body(rows, w().builder_communities.empty, palette))
crates/client/src/gui/builder/users.rsmodified+2 -2
@@ -16,7 +16,7 @@ use gpui_kit::{
16 Anchor, AnyElement, App, Context, Div, Entity, FontWeight, InteractiveElement as _,16 Anchor, AnyElement, App, Context, Div, Entity, FontWeight, InteractiveElement as _,
17 IntoElement, ParentElement, StatefulInteractiveElement as _, Styled, Window,17 IntoElement, ParentElement, StatefulInteractiveElement as _, Styled, Window,
18 assets::IconName,18 assets::IconName,
19- component::{Icon, input::Input, popover::Popover},19+ component::{Icon, popover::Popover},
20 div,20 div,
21 prelude::FluentBuilder as _,21 prelude::FluentBuilder as _,
22 px,22 px,
@@ -472,7 +472,7 @@ impl Yumush {
472 div()472 div()
473 .flex_1()473 .flex_1()
474 .min_w(px(size::THUMB))474 .min_w(px(size::THUMB))
475- .child(Input::new(&self.chat.builder_search)),475+ .child(crate::gui::sidebar::input_box(&self.chat.builder_search, palette)),
476 )476 )
477 .child(477 .child(
478 div()478 div()
crates/client/src/gui/community_settings.rsmodified+2 -2
@@ -16,7 +16,7 @@ use gpui_kit::{
16 IntoElement, ParentElement, StatefulInteractiveElement, Styled, WeakEntity, Window,16 IntoElement, ParentElement, StatefulInteractiveElement, Styled, WeakEntity, Window,
17 component::{17 component::{
18 WindowExt,18 WindowExt,
19- input::{Input, InputState},19+ input::InputState,
20 notification::Notification,20 notification::Notification,
21 },21 },
22 div, px,22 div, px,
@@ -570,7 +570,7 @@ fn moderation_body(
570 .flex()570 .flex()
571 .flex_col()571 .flex_col()
572 .gap(px(space::MD))572 .gap(px(space::MD))
573- .child(Input::new(search))573+ .child(super::sidebar::input_box(search, palette))
574 .child(sort)574 .child(sort)
575 .child(575 .child(
576 div()576 div()
crates/client/src/gui/social.rsmodified+2 -2
@@ -16,7 +16,7 @@ use gpui_kit::{
16 assets::IconName,16 assets::IconName,
17 component::{17 component::{
18 WindowExt,18 WindowExt,
19- input::{Input, InputEvent, InputState},19+ input::{InputEvent, InputState},
20 },20 },
21 div, px,21 div, px,
22 };22 };
@@ -335,7 +335,7 @@ impl Yumush {
335 .flex()335 .flex()
336 .flex_col()336 .flex_col()
337 .gap(px(space::MD))337 .gap(px(space::MD))
338- .child(Input::new(&dialog_input).token(super::glyph::token))338+ .child(super::sidebar::input_box(&dialog_input, palette))
339 .children(result),339 .children(result),
340 )340 )
341 });341 });