diff --git a/crates/qbz-slint/ui/discover/Carousel.slint b/crates/qbz-slint/ui/discover/Carousel.slint index 589cce3c2..bdfc29392 100644 --- a/crates/qbz-slint/ui/discover/Carousel.slint +++ b/crates/qbz-slint/ui/discover/Carousel.slint @@ -121,5 +121,22 @@ export component Carousel inherits VerticalLayout { } } } + + // Cider-style edge fades — clipped cards dissolve into the + // content background instead of being hard-cut. + Rectangle { + x: 0px; + width: 56px; + background: @linear-gradient(90deg, Theme.surface-main 0%, transparent 100%); + opacity: root.current-page > 0 ? 1.0 : 0.0; + animate opacity { duration: 150ms; } + } + Rectangle { + x: parent.width - self.width; + width: 56px; + background: @linear-gradient(90deg, transparent 0%, Theme.surface-main 100%); + opacity: root.current-page < root.page-count - 1 ? 1.0 : 0.0; + animate opacity { duration: 150ms; } + } } } diff --git a/crates/qbz-slint/ui/shell/AppShell.slint b/crates/qbz-slint/ui/shell/AppShell.slint index 3862663dc..9e1e720f2 100644 --- a/crates/qbz-slint/ui/shell/AppShell.slint +++ b/crates/qbz-slint/ui/shell/AppShell.slint @@ -1,9 +1,11 @@ // App shell — the post-login frame: header bar, sidebar, content // region, and player bar. The content region shows either the Discover // Home view or the Album detail view, driven by NavState. +// +// Regions are delineated by their surface colors (chrome over the darker +// content well); no hairline borders. import { Theme } from "../foundation/semantic-colors.slint"; -import { Layout } from "../foundation/layout.slint"; import { NavState } from "../state.slint"; import { Sidebar } from "Sidebar.slint"; import { HeaderBar } from "HeaderBar.slint"; @@ -29,20 +31,12 @@ export component AppShell inherits Rectangle { root.close-app(); } } - Rectangle { - height: Layout.hairline; - background: Theme.border-subtle; - } HorizontalLayout { vertical-stretch: 1; spacing: 0px; Sidebar { } - Rectangle { - width: Layout.hairline; - background: Theme.border-subtle; - } // Content region — Home or Album detail. Rectangle { @@ -58,10 +52,6 @@ export component AppShell inherits Rectangle { } } - Rectangle { - height: Layout.hairline; - background: Theme.border-subtle; - } PlayerBar { } } }