mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 21:52:54 +03:00
Style empty diagnostics as an editor
This commit is contained in:
parent
c9fc7eac4f
commit
9969caf513
@ -34,6 +34,7 @@ use std::{
|
|||||||
path::PathBuf,
|
path::PathBuf,
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
|
use theme::ActiveTheme;
|
||||||
pub use toolbar_controls::ToolbarControls;
|
pub use toolbar_controls::ToolbarControls;
|
||||||
use ui::{h_stack, HighlightedLabel, Icon, IconElement, Label, TextColor};
|
use ui::{h_stack, HighlightedLabel, Icon, IconElement, Label, TextColor};
|
||||||
use util::TryFutureExt;
|
use util::TryFutureExt;
|
||||||
@ -92,9 +93,10 @@ impl EventEmitter<ItemEvent> for ProjectDiagnosticsEditor {}
|
|||||||
impl Render for ProjectDiagnosticsEditor {
|
impl Render for ProjectDiagnosticsEditor {
|
||||||
type Element = Focusable<Self, Div<Self>>;
|
type Element = Focusable<Self, Div<Self>>;
|
||||||
|
|
||||||
fn render(&mut self, _: &mut ViewContext<Self>) -> Self::Element {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
||||||
let child = if self.path_states.is_empty() {
|
let child = if self.path_states.is_empty() {
|
||||||
div()
|
div()
|
||||||
|
.bg(cx.theme().colors().editor_background)
|
||||||
.flex()
|
.flex()
|
||||||
.items_center()
|
.items_center()
|
||||||
.justify_center()
|
.justify_center()
|
||||||
|
Loading…
Reference in New Issue
Block a user