aboutsummaryrefslogtreecommitdiff
path: root/niri-config/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-05-01 10:30:50 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-05-01 10:33:53 +0300
commit9d6037b94c72deb0f5d928d3f68acc287d8baed2 (patch)
tree8380b2330170ba08a554be0292ba6617a07fe3bd /niri-config/src
parent7b4cf094ef6c45ca92eaca4b0d42ef0a7c77e7e3 (diff)
downloadniri-9d6037b94c72deb0f5d928d3f68acc287d8baed2.tar.gz
niri-9d6037b94c72deb0f5d928d3f68acc287d8baed2.tar.bz2
niri-9d6037b94c72deb0f5d928d3f68acc287d8baed2.zip
Normalize workspace shadows to 1080 px tall screen, adjust defaults
Workspace gaps are dependent on screen size, so it makes sense to make shadows depend on the screen size to, to avoid them filling more or less of the gap.
Diffstat (limited to 'niri-config/src')
-rw-r--r--niri-config/src/lib.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs
index 8bb069c6..d8c8f863 100644
--- a/niri-config/src/lib.rs
+++ b/niri-config/src/lib.rs
@@ -774,10 +774,10 @@ impl Default for WorkspaceShadow {
off: false,
offset: ShadowOffset {
x: FloatOrInt(0.),
- y: FloatOrInt(20.),
+ y: FloatOrInt(10.),
},
- softness: FloatOrInt(120.),
- spread: FloatOrInt(20.),
+ softness: FloatOrInt(80.),
+ spread: FloatOrInt(10.),
color: Color::from_rgba8_unpremul(0, 0, 0, 0x70),
}
}
@@ -4664,14 +4664,14 @@ mod tests {
0.0,
),
y: FloatOrInt(
- 20.0,
+ 10.0,
),
},
softness: FloatOrInt(
- 120.0,
+ 80.0,
),
spread: FloatOrInt(
- 20.0,
+ 10.0,
),
color: Color {
r: 0.0,