fix(myqbz): visual round 2 — local art, checkbox-filter, circular checkboxes, quality skeleton, album header
Per the user's 2nd visual review: - Local/Plex album art now renders in the detail rows: resolve_items backfills empty-art rows from the first resolved track (source-aware dispatch -> spawn_local_or_plex_loads with live Plex creds); to_item re-hydrates from cache. - Type/source FILTER homologated: a LABELED filter button (FavGenreButton idiom, accent-fill active) + a checkbox popup; the "Select" toggle is now ICON-ONLY (square-check-big, no text) matching Favorites/LocalLibrary. - New primitives/SelectionCheckbox.slint (the canonical CIRCULAR 13px selection checkbox, accent fill, check / minus for indeterminate). Replaced all 5 square MyQBZ checkboxes (detail list+grid, filter popup, builder per-row + tri-state select-all). KindRadio dots stay round radios (single-select, correct). - Quality column shows a LoadingDots skeleton while resolving (not empty). - Album view header buttons: deleted AlbumPageView's private divergent CircleAction copy -> the shared primitive, so it matches every other view's thickness. CollectionsView kind-filter stays QbzSelect (single-select group-by = the app's group-by idiom). Backend crates untouched. cargo check -p qbz-slint green. cc
This commit is contained in:
7 files changed
+274
-223
No files matched your search
@@ -20,6 +20,7 @@ import { QualityBadgeFull } from "../primitives/QualityBadgeFull.slint";
|
||||
import { QbzPrimaryButton } from "../primitives/QbzPrimaryButton.slint";
|
||||
import { SecondaryButton } from "../primitives/SecondaryButton.slint";
|
||||
import { SourceGlyph } from "../primitives/SourceGlyph.slint";
|
||||
import { SelectionCheckbox } from "../primitives/SelectionCheckbox.slint";
|
||||
|
||||
// ── Release-type label tints (spec §0) ────────────────────────────────────
|
||||
// The ONE legitimately-hardcoded palette in this view: the per-release-type
|
||||
@@ -289,27 +290,11 @@ component CandidateRow inherits Rectangle {
|
||||
}
|
||||
VerticalLayout {
|
||||
alignment: center;
|
||||
Rectangle {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 3px;
|
||||
background: root.candidate.checked ? Theme.accent : transparent;
|
||||
border-width: root.candidate.checked ? 0px : 1.5px;
|
||||
border-color: Theme.text-muted;
|
||||
if root.candidate.checked: QbzIcon {
|
||||
source: @image-url("../assets/icons/check.svg");
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
x: Math.round((parent.width - self.width) / 2 / 1px) * 1px;
|
||||
y: Math.round((parent.height - self.height) / 2 / 1px) * 1px;
|
||||
tint: Theme.accent-text;
|
||||
}
|
||||
TouchArea {
|
||||
mouse-cursor: pointer;
|
||||
clicked => {
|
||||
DiscoBuilderActions.toggle-checked(
|
||||
root.group-key, root.candidate.key);
|
||||
}
|
||||
SelectionCheckbox {
|
||||
checked: root.candidate.checked;
|
||||
toggled => {
|
||||
DiscoBuilderActions.toggle-checked(
|
||||
root.group-key, root.candidate.key);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -665,43 +650,22 @@ export component DiscographyBuilderView inherits Rectangle {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
spacing: 10px;
|
||||
// [0] 28px — select-all checkbox (tri-state).
|
||||
// [0] 28px — select-all checkbox (tri-state). The
|
||||
// indeterminate state renders minus.svg inside the
|
||||
// same circular accent box (the TreeRow idiom), NOT a
|
||||
// hand-drawn dash.
|
||||
Rectangle {
|
||||
width: 28px;
|
||||
HorizontalLayout {
|
||||
alignment: start;
|
||||
VerticalLayout {
|
||||
alignment: center;
|
||||
Rectangle {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 3px;
|
||||
background: DiscoBuilderState.all-checked
|
||||
? Theme.accent : transparent;
|
||||
border-width: DiscoBuilderState.all-checked ? 0px : 1.5px;
|
||||
border-color: Theme.text-muted;
|
||||
if DiscoBuilderState.all-checked: QbzIcon {
|
||||
source: @image-url("../assets/icons/check.svg");
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
x: Math.round((parent.width - self.width) / 2 / 1px) * 1px;
|
||||
y: Math.round((parent.height - self.height) / 2 / 1px) * 1px;
|
||||
tint: Theme.accent-text;
|
||||
}
|
||||
// Indeterminate dash.
|
||||
if !DiscoBuilderState.all-checked
|
||||
&& DiscoBuilderState.some-checked: Rectangle {
|
||||
width: 9px;
|
||||
height: 2px;
|
||||
background: Theme.accent;
|
||||
x: Math.round((parent.width - self.width) / 2 / 1px) * 1px;
|
||||
y: Math.round((parent.height - self.height) / 2 / 1px) * 1px;
|
||||
}
|
||||
TouchArea {
|
||||
mouse-cursor: pointer;
|
||||
clicked => {
|
||||
DiscoBuilderActions.toggle-all();
|
||||
}
|
||||
SelectionCheckbox {
|
||||
checked: DiscoBuilderState.all-checked;
|
||||
partial: !DiscoBuilderState.all-checked
|
||||
&& DiscoBuilderState.some-checked;
|
||||
toggled => {
|
||||
DiscoBuilderActions.toggle-all();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user