mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Implement shadows for layer surfaces
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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![
|
||||
|
||||
Reference in New Issue
Block a user