update avatar
This commit is contained in:
@@ -352,15 +352,13 @@ impl SignedTabGroupSkin {
|
||||
.items_center()
|
||||
.flex_shrink_0()
|
||||
.h_7()
|
||||
.min_w_32()
|
||||
.min_w_40()
|
||||
.gap_1()
|
||||
.px_1p5()
|
||||
.text_sm()
|
||||
.overflow_hidden()
|
||||
.rounded(cx.theme().radius)
|
||||
.text_color(cx.theme().tab_foreground)
|
||||
// The title claims the free space and starts at the left, so a name
|
||||
// narrower than the tab leaves blank space before the close button.
|
||||
.child(
|
||||
h_flex()
|
||||
.flex_1()
|
||||
@@ -406,16 +404,16 @@ impl SignedTabGroupSkin {
|
||||
.styles(|styles| {
|
||||
styles.selected(|style| {
|
||||
style
|
||||
.text_color(cx.theme().foreground)
|
||||
.bg(cx.theme().secondary)
|
||||
.text_color(cx.theme().tab_active_foreground)
|
||||
.bg(cx.theme().tab_active)
|
||||
})
|
||||
})
|
||||
.hover(|this| {
|
||||
if active {
|
||||
this
|
||||
} else {
|
||||
this.text_color(cx.theme().foreground)
|
||||
.bg(cx.theme().secondary_hover)
|
||||
this.text_color(cx.theme().tab_foreground)
|
||||
.bg(cx.theme().tab)
|
||||
}
|
||||
})
|
||||
.selected(active)
|
||||
|
||||
Reference in New Issue
Block a user