Add rudimentary UI for BufferSearch
This commit is contained in:
parent
349ad7858b
commit
3c1ec2e9ca
3 changed files with 16 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
use crate::prelude::*;
|
||||
use crate::EditorPane;
|
||||
use crate::{h_stack, EditorPane, Icon, IconButton, Input};
|
||||
|
||||
#[derive(Element)]
|
||||
#[element(view_state = "EditorPane")]
|
||||
|
@ -15,6 +15,15 @@ impl BufferSearch {
|
|||
_view: &mut EditorPane,
|
||||
cx: &mut ViewContext<EditorPane>,
|
||||
) -> impl Element<ViewState = EditorPane> {
|
||||
div().child("This is where Buffer Search goes.")
|
||||
let theme = theme(cx);
|
||||
|
||||
h_stack()
|
||||
.fill(theme.highest.base.default.background)
|
||||
.p_2()
|
||||
.child(
|
||||
h_stack()
|
||||
.child(Input::new("Search (↑/↓ for previous/next query)"))
|
||||
.child(IconButton::new(Icon::Replace)),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue