History

Tweak styling of channel header and editor footer in chat panel

Max Brunsfeld committed 2 years ago

Commit 650ca1f1 parent fce0c1f1 file · +13 −1Browse files

Unified · Split

crates/collab_ui2/src/chat_panel.rs+13−1
@@ -19,6 +19,7 @@ use rich_text::RichText; · 18 unmodified lines
1919 use serde::{Deserialize, Serialize};
2020 use settings::{Settings, SettingsStore};
2121 use std::sync::Arc;
22+use theme::ActiveTheme as _;
2223 use time::{OffsetDateTime, UtcOffset};
2324 use ui::{
2425 h_stack, prelude::WindowContext, v_stack, Avatar, Button, ButtonCommon as _, Clickable, Icon,
@@ -317,7 +318,12 @@ impl ChatPanel { · 292 unmodified lines
317318 .child(
318319 h_stack()
319320 .w_full()
321+ .h_7()
320322 .justify_between()
323+ .z_index(1)
324+ .bg(cx.theme().colors().background)
325+ .border()
326+ .border_color(gpui::red())
321327 .child(Label::new(
322328 self.active_chat
323329 .as_ref()
@@ -339,7 +345,13 @@ impl ChatPanel { · 15 unmodified lines
339345 ),
340346 )
341347 .child(div().grow().child(self.render_active_channel_messages(cx)))
342− .child(self.input_editor.clone())
348+ .child(
349+ div()
350+ .z_index(1)
351+ .p_2()
352+ .bg(cx.theme().colors().background)
353+ .child(self.input_editor.clone()),
354+ )
343355 .into_any()
344356 }
345357