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()
|
||||
.with_child(
|
||||
Flex::row()
|
||||
|
@ -240,11 +241,7 @@ impl View for BufferSearchBar {
|
|||
)
|
||||
.contained();
|
||||
|
||||
let icon_style = theme.search.editor_icon.clone();
|
||||
Flex::row()
|
||||
.with_child(nav_column)
|
||||
.with_child(
|
||||
Flex::column()
|
||||
let editor_column = Flex::column()
|
||||
.align_children_center()
|
||||
.with_child(
|
||||
Flex::row()
|
||||
|
@ -301,10 +298,8 @@ impl View for BufferSearchBar {
|
|||
.contained()
|
||||
.aligned()
|
||||
.top()
|
||||
.flex(1., false),
|
||||
)
|
||||
.with_child(
|
||||
Flex::column().with_child(
|
||||
.flex(1., false);
|
||||
let mode_column = Flex::column().with_child(
|
||||
Flex::row()
|
||||
.align_children_center()
|
||||
.with_child(
|
||||
|
@ -333,8 +328,11 @@ impl View for BufferSearchBar {
|
|||
.right()
|
||||
.top()
|
||||
.flex(1., true),
|
||||
),
|
||||
)
|
||||
);
|
||||
Flex::row()
|
||||
.with_child(nav_column)
|
||||
.with_child(editor_column)
|
||||
.with_child(mode_column)
|
||||
.contained()
|
||||
.with_style(theme.search.container)
|
||||
.flex_float()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue