Start refining tab
This commit is contained in:
parent
dd434588ee
commit
701f954448
1 changed files with 13 additions and 6 deletions
|
@ -1401,20 +1401,27 @@ impl Pane {
|
||||||
// .on_drop(|_view, state: View<DraggedTab>, cx| {
|
// .on_drop(|_view, state: View<DraggedTab>, cx| {
|
||||||
// eprintln!("{:?}", state.read(cx));
|
// eprintln!("{:?}", state.read(cx));
|
||||||
// })
|
// })
|
||||||
.px_2()
|
|
||||||
.py_0p5()
|
|
||||||
.flex()
|
.flex()
|
||||||
.items_center()
|
.items_center()
|
||||||
.justify_center()
|
.justify_center()
|
||||||
|
// todo!("Nate - I need to do some work to balance all the items in the tab once things stablize")
|
||||||
|
.when(close_right, |this| this.pl_3().pr_1())
|
||||||
|
.when(!close_right, |this| this.pr_1().pr_3())
|
||||||
|
.py_1()
|
||||||
.bg(tab_bg)
|
.bg(tab_bg)
|
||||||
.hover(|h| h.bg(tab_hover_bg))
|
.border_color(cx.theme().colors().border)
|
||||||
.active(|a| a.bg(tab_active_bg))
|
.when(ix < self.active_item_index, |this| this.border_l())
|
||||||
|
.when(ix > self.active_item_index, |this| this.border_r())
|
||||||
|
.when(ix == self.active_item_index, |this| {
|
||||||
|
this.border_l().border_r()
|
||||||
|
})
|
||||||
|
// .hover(|h| h.bg(tab_hover_bg))
|
||||||
|
// .active(|a| a.bg(tab_active_bg))
|
||||||
.child(
|
.child(
|
||||||
div()
|
div()
|
||||||
.px_1()
|
|
||||||
.flex()
|
.flex()
|
||||||
.items_center()
|
.items_center()
|
||||||
.gap_1p5()
|
.gap_1()
|
||||||
.text_color(text_color)
|
.text_color(text_color)
|
||||||
.children(if item.has_conflict(cx) {
|
.children(if item.has_conflict(cx) {
|
||||||
Some(
|
Some(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue