feat: corner radius for CosmicMapped
This commit is contained in:
parent
228af1037a
commit
3465ce7602
7 changed files with 49 additions and 23 deletions
|
|
@ -1589,10 +1589,7 @@ impl FloatingLayout {
|
|||
}
|
||||
|
||||
let active_window_hint = crate::theme::active_window_hint(theme);
|
||||
let radius = elem
|
||||
.active_window()
|
||||
.corner_radius(geometry.size.as_logical())
|
||||
.unwrap_or([indicator_thickness; 4]);
|
||||
let radius = elem.corner_radius(geometry.size.as_logical(), indicator_thickness);
|
||||
if indicator_thickness > 0 {
|
||||
let element = IndicatorShader::focus_element(
|
||||
renderer,
|
||||
|
|
|
|||
|
|
@ -5015,10 +5015,7 @@ where
|
|||
x => Some(x),
|
||||
}
|
||||
}));
|
||||
let radius = mapped
|
||||
.active_window()
|
||||
.corner_radius(geo.size.as_logical())
|
||||
.unwrap_or([indicator_thickness; 4]);
|
||||
let radius = mapped.corner_radius(geo.size.as_logical(), indicator_thickness);
|
||||
if is_minimizing && indicator_thickness > 0 {
|
||||
elements.push(CosmicMappedRenderElement::FocusIndicator(
|
||||
IndicatorShader::focus_element(
|
||||
|
|
@ -5369,10 +5366,9 @@ where
|
|||
));
|
||||
}
|
||||
let radius = match data {
|
||||
Data::Mapped { mapped, .. } => mapped
|
||||
.active_window()
|
||||
.corner_radius(geo.size.as_logical())
|
||||
.unwrap_or([indicator_thickness; 4]),
|
||||
Data::Mapped { mapped, .. } => {
|
||||
mapped.corner_radius(geo.size.as_logical(), indicator_thickness)
|
||||
}
|
||||
_ => [1; 4],
|
||||
};
|
||||
if !swap_desc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue