buffer: Extract columns to separate objects.
Co-authored-by: Kyle <kyle@zed.dev>
This commit is contained in:
parent
4aa5df4cda
commit
ff4370f88e
1 changed files with 75 additions and 77 deletions
|
@ -220,6 +220,7 @@ impl View for BufferSearchBar {
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let icon_style = theme.search.editor_icon.clone();
|
||||||
let nav_column = Flex::column()
|
let nav_column = Flex::column()
|
||||||
.with_child(
|
.with_child(
|
||||||
Flex::row()
|
Flex::row()
|
||||||
|
@ -240,11 +241,7 @@ impl View for BufferSearchBar {
|
||||||
)
|
)
|
||||||
.contained();
|
.contained();
|
||||||
|
|
||||||
let icon_style = theme.search.editor_icon.clone();
|
let editor_column = Flex::column()
|
||||||
Flex::row()
|
|
||||||
.with_child(nav_column)
|
|
||||||
.with_child(
|
|
||||||
Flex::column()
|
|
||||||
.align_children_center()
|
.align_children_center()
|
||||||
.with_child(
|
.with_child(
|
||||||
Flex::row()
|
Flex::row()
|
||||||
|
@ -301,10 +298,8 @@ impl View for BufferSearchBar {
|
||||||
.contained()
|
.contained()
|
||||||
.aligned()
|
.aligned()
|
||||||
.top()
|
.top()
|
||||||
.flex(1., false),
|
.flex(1., false);
|
||||||
)
|
let mode_column = Flex::column().with_child(
|
||||||
.with_child(
|
|
||||||
Flex::column().with_child(
|
|
||||||
Flex::row()
|
Flex::row()
|
||||||
.align_children_center()
|
.align_children_center()
|
||||||
.with_child(
|
.with_child(
|
||||||
|
@ -333,8 +328,11 @@ impl View for BufferSearchBar {
|
||||||
.right()
|
.right()
|
||||||
.top()
|
.top()
|
||||||
.flex(1., true),
|
.flex(1., true),
|
||||||
),
|
);
|
||||||
)
|
Flex::row()
|
||||||
|
.with_child(nav_column)
|
||||||
|
.with_child(editor_column)
|
||||||
|
.with_child(mode_column)
|
||||||
.contained()
|
.contained()
|
||||||
.with_style(theme.search.container)
|
.with_style(theme.search.container)
|
||||||
.flex_float()
|
.flex_float()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue