mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-08 10:02:56 +00:00
Avoid painting a background quad if it is fully transparent
This commit is contained in:
parent
2a516ec1e0
commit
01ce204491
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ impl Style {
|
|||
});
|
||||
|
||||
let background_color = self.background.as_ref().and_then(Fill::color);
|
||||
if background_color.is_some() {
|
||||
if background_color.map_or(false, |color| !color.is_transparent()) {
|
||||
cx.with_z_index(1, |cx| {
|
||||
cx.paint_quad(quad(
|
||||
bounds,
|
||||
|
|
Loading…
Reference in a new issue