Fix transparency (#14010)
Release Notes: - (preview only) Fix transparent themes
This commit is contained in:
parent
3cdd465226
commit
8cfa690271
3 changed files with 10 additions and 3 deletions
|
@ -96,7 +96,11 @@ impl Render for TitleBar {
|
|||
})
|
||||
.when(!(tiling.top || tiling.left), |el| {
|
||||
el.rounded_tl(theme::CLIENT_SIDE_DECORATION_ROUNDING)
|
||||
}),
|
||||
})
|
||||
// this border is to avoid a transparent gap in the rounded corners
|
||||
.mt(px(-1.))
|
||||
.border(px(1.))
|
||||
.border_color(cx.theme().colors().title_bar_background),
|
||||
})
|
||||
.bg(cx.theme().colors().title_bar_background)
|
||||
.content_stretch()
|
||||
|
|
|
@ -50,7 +50,11 @@ impl Render for StatusBar {
|
|||
})
|
||||
.when(!(tiling.bottom || tiling.left), |el| {
|
||||
el.rounded_bl(CLIENT_SIDE_DECORATION_ROUNDING)
|
||||
}),
|
||||
})
|
||||
// This border is to avoid a transparent gap in the rounded corners
|
||||
.mb(px(-1.))
|
||||
.border_b(px(1.0))
|
||||
.border_color(cx.theme().colors().status_bar_background),
|
||||
})
|
||||
.child(self.render_left_tools(cx))
|
||||
.child(self.render_right_tools(cx))
|
||||
|
|
|
@ -6596,7 +6596,6 @@ pub fn client_side_decorations(element: impl IntoElement, cx: &mut WindowContext
|
|||
.on_mouse_move(|_e, cx| {
|
||||
cx.stop_propagation();
|
||||
})
|
||||
.bg(cx.theme().colors().border)
|
||||
.size_full()
|
||||
.child(element),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue