From 3c05d57e6a0ceea4cebcf088d5d82a4fda2f08a6 Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Wed, 29 Nov 2023 14:56:23 -0500 Subject: [PATCH] Style hover popover --- crates/editor2/src/hover_popover.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/editor2/src/hover_popover.rs b/crates/editor2/src/hover_popover.rs index f80168ed25..2f2e8ee937 100644 --- a/crates/editor2/src/hover_popover.rs +++ b/crates/editor2/src/hover_popover.rs @@ -15,7 +15,7 @@ use lsp::DiagnosticSeverity; use project::{HoverBlock, HoverBlockKind, InlayHintLabelPart, Project}; use settings::Settings; use std::{ops::Range, sync::Arc, time::Duration}; -use ui::Tooltip; +use ui::{StyledExt, Tooltip}; use util::TryFutureExt; use workspace::Workspace; @@ -476,8 +476,10 @@ impl InfoPopover { ) -> AnyElement { div() .id("info_popover") + .elevation_2(cx) + .text_ui() + .p_2() .overflow_y_scroll() - .bg(gpui::red()) .max_w(max_size.width) .max_h(max_size.height) // Prevent a mouse move on the popover from being propagated to the editor,