Show pointer hand on tab & give last tab border right

This commit is contained in:
Julia 2024-01-03 14:36:10 -05:00
parent 7f62a17276
commit a7550de8c5

View file

@ -126,13 +126,14 @@ impl RenderOnce for Tab {
if self.selected { if self.selected {
this.border_l().border_r().pb_px() this.border_l().border_r().pb_px()
} else { } else {
this.pr_px().pl_px().border_b() this.pr_px().pl_px().border_b().border_r()
} }
} }
TabPosition::Middle(Ordering::Equal) => this.border_l().border_r().pb_px(), TabPosition::Middle(Ordering::Equal) => this.border_l().border_r().pb_px(),
TabPosition::Middle(Ordering::Less) => this.border_l().pr_px().border_b(), TabPosition::Middle(Ordering::Less) => this.border_l().pr_px().border_b(),
TabPosition::Middle(Ordering::Greater) => this.border_r().pl_px().border_b(), TabPosition::Middle(Ordering::Greater) => this.border_r().pl_px().border_b(),
}) })
.cursor_pointer()
.child( .child(
h_stack() h_stack()
.group("") .group("")