Unify window presentation and frame-driven shell motion

Share window geometry across overview, resize snapshots and retained closes. Advance close handoffs and group retained rendering by stacking position.

Drive shell motion from surface frames, reuse settled widget content, and synchronize notification materials with each card's fade. Replace physical config keys with duration and bounce, and update documentation and regression coverage.
This commit is contained in:
Samuel Onoja committed 2026-10-03 04:22:36 +01:00
1 parent f8bc17e913
commit 64a80dc069
33 files changed
+1742 -600

No files matched your search

+21 -2
View File
@@ -131,12 +131,31 @@ impl OpenMenu {
impl FereseShell {
fn view_status_menu(&self) -> Element<'_, cosmic::Action<Message>> {
let Some(menu) = &self.menu else { return text("").into() };
motion::frame_driven(
menu.motion.revision(),
|now| self.view_status_menu_at(now),
|now| menu.motion.frame_active(now),
|now| {
if let Some(effects) = &menu.effects {
let _ = effects.set_regions(&menu.regions.lock().unwrap());
let _ = effects.set_opacity(menu.motion.progress_at(now).clamp(0.0, 1.0));
}
},
|now| {
(menu.motion.closing() && !menu.motion.animating_at(now))
.then_some(cosmic::Action::App(Message::AnimateMenu))
},
)
}
fn view_status_menu_at(&self, now: Instant) -> Element<'_, cosmic::Action<Message>> {
let Some(menu) = &self.menu else {
return text("").into();
};
if menu.kind == Menu::Notifications && self.notifications.ready {
return cosmic::widget::autosize::autosize(
self.view_notifications(),
self.view_notifications_at(now),
cosmic::iced::advanced::widget::Id::new("ferese-notification-center"),
)
.limits(
@@ -229,7 +248,7 @@ impl FereseShell {
cosmic::widget::autosize::autosize(
super::motion::animated(
panel.into(),
menu.progress(),
menu.motion.progress_at(now),
menu.regions.clone(),
theme.material_radius,
),