Implement shadows for layer surfaces

This commit is contained in:
Ivan Molodetskikh
2025-01-21 09:40:00 +03:00
parent 5ebcae997e
commit acd4cb51aa
7 changed files with 133 additions and 6 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
use crate::{BlockOutFrom, RegexEq};
use crate::{BlockOutFrom, CornerRadius, RegexEq, ShadowRule};
#[derive(knuffel::Decode, Debug, Default, Clone, PartialEq)]
pub struct LayerRule {
@@ -11,6 +11,10 @@ pub struct LayerRule {
pub opacity: Option<f32>,
#[knuffel(child, unwrap(argument))]
pub block_out_from: Option<BlockOutFrom>,
#[knuffel(child, default)]
pub shadow: ShadowRule,
#[knuffel(child)]
pub geometry_corner_radius: Option<CornerRadius>,
}
#[derive(knuffel::Decode, Debug, Default, Clone, PartialEq)]
+2
View File
@@ -3778,6 +3778,8 @@ mod tests {
excludes: vec![],
opacity: None,
block_out_from: Some(BlockOutFrom::Screencast),
shadow: ShadowRule::default(),
geometry_corner_radius: None,
}
],
workspaces: vec![