Match shell squircle outlines with compositor masks
Use shared corner geometry for shell controls, window clipping, materials and blur masks. Preserve circular pills and controls where appropriate, track contour changes in damage, and use tagged ferese-shape and libcosmic dependencies.
This commit is contained in:
1 parent
03a265b97f
commit
d75c93db85
31 files changed
+453
-80
No files matched your search
@@ -146,12 +146,7 @@ pub(crate) fn physical_rect(
|
||||
)
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
|
||||
pub(crate) enum CornerShape {
|
||||
#[default]
|
||||
Circular,
|
||||
Continuous,
|
||||
}
|
||||
pub(crate) use ferese_shape::Shape as CornerShape;
|
||||
|
||||
/// Conservative extent of the corner shoulders, in physical pixels.
|
||||
pub(crate) fn corner_extent(radius: f32, size: smithay::utils::Size<i32, Physical>, shape: CornerShape) -> f32 {
|
||||
|
||||
Reference in new issue
Block a user