Start on completions styles
This commit is contained in:
@@ -3,6 +3,7 @@ use gpui::{
|
||||
WindowContext,
|
||||
};
|
||||
use smallvec::SmallVec;
|
||||
use theme2::ActiveTheme;
|
||||
|
||||
use crate::{v_stack, StyledExt};
|
||||
|
||||
@@ -58,6 +59,7 @@ impl RenderOnce for Popover {
|
||||
.ml_1()
|
||||
.absolute()
|
||||
.elevation_2(cx)
|
||||
.bg(cx.theme().colors().surface_background)
|
||||
.p_1()
|
||||
.child(aside),
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use gpui::{Styled, WindowContext};
|
||||
use gpui::{px, Styled, WindowContext};
|
||||
use theme2::ActiveTheme;
|
||||
|
||||
use crate::{ElevationIndex, UITextSize};
|
||||
@@ -6,7 +6,7 @@ use crate::{ElevationIndex, UITextSize};
|
||||
fn elevated<E: Styled>(this: E, cx: &mut WindowContext, index: ElevationIndex) -> E {
|
||||
this.bg(cx.theme().colors().elevated_surface_background)
|
||||
.z_index(index.z_index())
|
||||
.rounded_lg()
|
||||
.rounded(px(8.))
|
||||
.border()
|
||||
.border_color(cx.theme().colors().border_variant)
|
||||
.shadow(index.shadow())
|
||||
|
||||
Reference in New Issue
Block a user