Skip to content

Commit c8972e1

Browse files
committed
gtk4: Update overshoot drawing mixin
Update old mixin derived from GTK 3, based on current GTK 4 upstream.
1 parent 0940762 commit c8972e1

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

common/gtk-4.0/4.2/sass/_drawing.scss

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -309,32 +309,15 @@
309309

310310
$_big_gradient_length: 60%;
311311

312-
$_position: center top;
313312
$_big_gradient_size: 100% $_big_gradient_length;
314313

315-
@if $p==bottom {
316-
$_position: center bottom;
317-
}
318-
319-
@else if $p==right {
320-
$_position: right center;
321-
$_big_gradient_size: $_big_gradient_length 100%;
322-
}
323-
324-
@else if $p==left {
325-
$_position: left center;
326-
$_big_gradient_size: $_big_gradient_length 100%;
327-
}
328-
329-
background-image: -gtk-gradient(radial,
330-
$_position, 0,
331-
$_position, 0.6,
332-
from(transparentize($c, 0.8)),
333-
to(transparentize($c, 1)));
314+
background-image: radial-gradient(farthest-side at $p,
315+
transparentize($c, 0.8),
316+
transparentize($c, 1));
334317

335318
background-size: $_big_gradient_size;
336319
background-repeat: no-repeat;
337-
background-position: $_position;
320+
background-position: $p;
338321

339322
background-color: transparent; // reset some properties to be sure to not inherit them somehow
340323
border: none; //

0 commit comments

Comments
 (0)