mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 10:29:35 +03:00
Use the editor_background
color for the project search empty state (#3911)
This PR updates the project search empty state to use the same background color as the editor. Release Notes: - Updated the background color of the project search's empty state to match the editor background.
This commit is contained in:
parent
0083ca38e3
commit
319f18e962
@ -286,7 +286,6 @@ impl Render for ProjectSearchView {
|
|||||||
.size_full()
|
.size_full()
|
||||||
.track_focus(&self.focus_handle)
|
.track_focus(&self.focus_handle)
|
||||||
.child(self.results_editor.clone())
|
.child(self.results_editor.clone())
|
||||||
.into_any()
|
|
||||||
} else {
|
} else {
|
||||||
let model = self.model.read(cx);
|
let model = self.model.read(cx);
|
||||||
let has_no_results = model.no_results.unwrap_or(false);
|
let has_no_results = model.no_results.unwrap_or(false);
|
||||||
@ -363,6 +362,7 @@ impl Render for ProjectSearchView {
|
|||||||
.flex_1()
|
.flex_1()
|
||||||
.size_full()
|
.size_full()
|
||||||
.justify_center()
|
.justify_center()
|
||||||
|
.bg(cx.theme().colors().editor_background)
|
||||||
.track_focus(&self.focus_handle)
|
.track_focus(&self.focus_handle)
|
||||||
.child(
|
.child(
|
||||||
h_stack()
|
h_stack()
|
||||||
@ -372,7 +372,6 @@ impl Render for ProjectSearchView {
|
|||||||
.child(v_stack().child(major_text).children(minor_text))
|
.child(v_stack().child(major_text).children(minor_text))
|
||||||
.child(h_stack().flex_1()),
|
.child(h_stack().flex_1()),
|
||||||
)
|
)
|
||||||
.into_any()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user