fix(qbz-qt): phase 12 — card rounding, menu anchoring, opaque window, titlebar toggle
Rounding: QML clip is rectangular (radius+clip does NOT round-clip) — new shared RoundedImage (software Canvas raster clip, GL-independent) applied at 16 artwork sites incl. true circular artist crops. Menus: new QbzContextMenu (cursor-anchored / below-trigger, window-clamped) converted at 7 sites, replicating TrackRow.slint positioning. Window: main window is OPAQUE in Slint (transparency is miniplayer-only; rounded corners are KWin's) — dropped the translucent frameless misread, squared app corners, opaque root. Titlebar: wired the EXISTING shared ui_prefs use_system_title_bar key (app-menu checkable item, restart semantics like Slint). km
This commit is contained in:
24 files changed
+403
-187
No files matched your search
@@ -17,11 +17,10 @@ import com.blitzfc.qbz
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
// 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"
|
||||
// OPAQUE surface-card chrome (phase 12: the translucent-window read
|
||||
// was wrong — the Slint main window is opaque with square corners;
|
||||
// the compositor owns any rounding).
|
||||
color: theme.surfaceCard
|
||||
|
||||
// The host ApplicationWindow (custom chrome: drag / maximize / resize).
|
||||
property var hostWindow: null
|
||||
@@ -35,9 +34,8 @@ Rectangle {
|
||||
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
|
||||
// Square corners (phase 12: the window is opaque; any rounding is
|
||||
// the compositor's business).
|
||||
}
|
||||
|
||||
NowPlayingBarSmall {
|
||||
@@ -46,9 +44,7 @@ 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
|
||||
// Square corners (see the header note above).
|
||||
}
|
||||
|
||||
Sidebar {
|
||||
|
||||
Reference in new issue
Block a user