[libadwaita/wip/tbernard/soft-shadows] style: softer window shadows
- From: Tobias Bernard <tbernard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/tbernard/soft-shadows] style: softer window shadows
- Date: Thu, 8 Jul 2021 22:50:00 +0000 (UTC)
commit 17f156cd05ab43c1199d52f3202f04e1a50a1352
Author: Tobias Bernard <tbernard gnome org>
Date: Fri Jul 9 00:47:21 2021 +0200
style: softer window shadows
src/stylesheet/widgets/_window.scss | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/stylesheet/widgets/_window.scss b/src/stylesheet/widgets/_window.scss
index 62f559eb..5010f5da 100644
--- a/src/stylesheet/widgets/_window.scss
+++ b/src/stylesheet/widgets/_window.scss
@@ -8,8 +8,9 @@ window {
$_wm_border_backdrop: if($variant=='light', transparentize(black, 0.82), transparentize(black, 0.25));
&.csd {
- box-shadow: 0 3px 9px 1px transparentize(black, 0.5),
- 0 2px 6px 2px transparent,
+ box-shadow: 0 2px 8px 2px transparentize(black, 0.87),
+ 0 3px 20px 10px transparentize(black, 0.91),
+ 0 6px 32px 16px transparentize(black, 0.96),
0 0 0 1px $_wm_border; //doing borders with box-shadow
margin: 0px;
border-radius: $window_radius;
@@ -25,8 +26,9 @@ window {
// change when we go to backdrop, to prevent jumping windows.
// The biggest shadow should be in the same order then in the active state
// or the jumping will happen during the transition.
- box-shadow: 0 3px 9px 1px transparent,
- 0 2px 6px 2px transparentize(black, 0.8),
+ box-shadow: 0 1px 3px 3px transparentize(black, 0.91),
+ 0 2px 14px 5px transparentize(black, 0.95),
+ 0 4px 28px 12px transparentize(black, 0.97),
0 0 0 1px $_wm_border_backdrop;
transition: $backdrop_transition;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]