feat(qbz-qt): phase 7 — shared AlbumCard, rounded frameless window, sidebar playlist tree
One AlbumCard.qml replicating the Slint shared card (pin badge with PinnedItemsService wired, heart, hover play overlay, exact context menu with Play next/Add to queue wired) used by BOTH Home rails and the Library All grid. Frameless translucent window with 12px rounded corners, replicated WindowControls, header drag, 8 resize grips. Sidebar playlist tree: 56 playlists / 12 folders live, expand state, 5-option sort with direction caret, recursive search filter, collage covers, create-playlist wired. Fixed a std-Mutex self-deadlock in the sidebar loader (two lock temporaries in one log statement). km
This commit is contained in:
114 files changed
+2144
-297
No files matched your search
@@ -17,9 +17,14 @@ import com.blitzfc.qbz
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
// The window chrome is surface-card (header / sidebar / queue column /
|
||||
// NPB all paint it too); the content panel contrasts in surface-main.
|
||||
color: theme.surfaceCard
|
||||
// TRANSPARENT — the chrome (header / sidebar / queue column / NPB)
|
||||
// paints every pixel between the header's rounded top corners and the
|
||||
// NPB's rounded bottom corners, so the window's rounded corners show
|
||||
// through (frameless translucent window).
|
||||
color: "transparent"
|
||||
|
||||
// The host ApplicationWindow (custom chrome: drag / maximize / resize).
|
||||
property var hostWindow: null
|
||||
|
||||
QbzTheme { id: theme }
|
||||
|
||||
@@ -29,6 +34,10 @@ Rectangle {
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
height: theme.headerHeight
|
||||
hostWindow: root.hostWindow
|
||||
// Rounded top window corners (custom chrome); the bottom corners
|
||||
// are covered by the same-color surfaces below.
|
||||
radius: 12
|
||||
}
|
||||
|
||||
NowPlayingBarSmall {
|
||||
@@ -37,6 +46,9 @@ Rectangle {
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
height: theme.npbSmallHeight
|
||||
// Rounded bottom window corners (custom chrome); the top corners
|
||||
// are covered by the same-color surfaces above.
|
||||
radius: 12
|
||||
}
|
||||
|
||||
Sidebar {
|
||||
|
||||
Reference in new issue
Block a user