forge
Explore
Log in

Don't you dare go Hollow

layout/tile: Fade out border for fullscreen

Browse files at this commit

e420bb5ad7cef528edff58fc76ff878c4e4310acIvan MolodetskikhParent: 4cb4d0f
src/layout/tile.rsmodified+2 -3
@@ -410,8 +410,7 @@ impl<W: LayoutElement> Tile<W> {
410 410
411 let draw_border_with_background = rules411 let draw_border_with_background = rules
412 .draw_border_with_background412 .draw_border_with_background
413- .unwrap_or_else(|| !self.window.has_ssd())413+ .unwrap_or_else(|| !self.window.has_ssd());
414- && fullscreen_progress < 1.;
415 let border_width = self.visual_border_width().unwrap_or(0.);414 let border_width = self.visual_border_width().unwrap_or(0.);
416 415
417 // Do the inverse of tile_size() in order to handle the unfullscreen animation for windows416 // Do the inverse of tile_size() in order to handle the unfullscreen animation for windows
@@ -438,7 +437,7 @@ impl<W: LayoutElement> Tile<W> {
438 ),437 ),
439 radius,438 radius,
440 self.scale,439 self.scale,
441- 1.,440+ 1. - fullscreen_progress as f32,
442 );441 );
443 442
444 let radius = if self.visual_border_width().is_some() {443 let radius = if self.visual_border_width().is_some() {