diff --git a/crates/qbz-slint/ui/primitives/QualityBadge.slint b/crates/qbz-slint/ui/primitives/QualityBadge.slint index 8b324b158..38d4d6f17 100644 --- a/crates/qbz-slint/ui/primitives/QualityBadge.slint +++ b/crates/qbz-slint/ui/primitives/QualityBadge.slint @@ -44,8 +44,10 @@ export component QualityBadge inherits Rectangle { height: 16px; source: @image-url("../assets/cd.svg"); image-fit: contain; - // Tinted light, matching the Tauri CD badge. - tint: #b0b0b0; + // Muted-tier mark — themed so it stays legible on light/HC themes + // (a fixed mid-grey vanished on light backgrounds). Hi-Res keeps + // its brand colors (it is a non-tinted Image above). + tint: Theme.text-muted; } } if root.tier == "mp3": Rectangle { @@ -62,7 +64,7 @@ export component QualityBadge inherits Rectangle { height: 16px; source: @image-url("../assets/mp3.svg"); image-fit: contain; - tint: #b0b0b0; + tint: Theme.text-muted; } } // Un-hydrated lossless: the bit-depth/rate isn't known yet, but the @@ -79,7 +81,7 @@ export component QualityBadge inherits Rectangle { x: Math.round((parent.width - self.width) / 2 / 1px) * 1px; y: Math.round((parent.height - self.height) / 2 / 1px) * 1px; text: root.detail; - color: #b0b0b0; + color: Theme.text-muted; font-size: 9px; font-weight: Typography.medium; } diff --git a/crates/qbz-slint/ui/primitives/QualityBadgeFull.slint b/crates/qbz-slint/ui/primitives/QualityBadgeFull.slint index 4a03643d0..a4e6ca4cc 100644 --- a/crates/qbz-slint/ui/primitives/QualityBadgeFull.slint +++ b/crates/qbz-slint/ui/primitives/QualityBadgeFull.slint @@ -51,7 +51,8 @@ export component QualityBadgeFull inherits Rectangle { alignment: root.bare ? center : start; // Format icon. The Hi-Res brand mark keeps its own colors; the - // CD / MP3 marks render in muted grey. + // CD / MP3 marks render in the themed muted tier (legible on + // light/HC themes, unlike the old fixed mid-grey). if root.show-icon: VerticalLayout { alignment: center; if root.tier == "hires": Image { @@ -64,13 +65,13 @@ export component QualityBadgeFull inherits Rectangle { source: @image-url("../assets/cd.svg"); width: (root.compact ? 13px : 16px) * root.scale-factor; height: (root.compact ? 13px : 16px) * root.scale-factor; - tint: #b0b0b0; + tint: Theme.text-muted; } if root.tier == "mp3": QbzIcon { source: @image-url("../assets/mp3.svg"); width: (root.compact ? 13px : 16px) * root.scale-factor; height: (root.compact ? 13px : 16px) * root.scale-factor; - tint: #b0b0b0; + tint: Theme.text-muted; } // Un-hydrated lossless (filetype known, bit-depth/rate not yet): // reuse the neutral disc mark; the detail line carries "FLAC". @@ -78,7 +79,7 @@ export component QualityBadgeFull inherits Rectangle { source: @image-url("../assets/cd.svg"); width: (root.compact ? 13px : 16px) * root.scale-factor; height: (root.compact ? 13px : 16px) * root.scale-factor; - tint: #b0b0b0; + tint: Theme.text-muted; } } @@ -87,7 +88,7 @@ export component QualityBadgeFull inherits Rectangle { spacing: 1px; Text { text: root.tier-label; - color: #b0b0b0; + color: Theme.text-secondary; font-size: (root.compact ? 7px : 8px) * root.scale-factor; font-weight: 100; letter-spacing: 0.5px; @@ -95,7 +96,7 @@ export component QualityBadgeFull inherits Rectangle { } Text { text: root.detail; - color: #999999; + color: Theme.text-muted; font-size: (root.compact ? 8px : 9px) * root.scale-factor; font-weight: 100; horizontal-alignment: root.bare ? center : left; diff --git a/crates/qbz-slint/ui/shell/SongCard.slint b/crates/qbz-slint/ui/shell/SongCard.slint index e6d76b431..125cc4cb2 100644 --- a/crates/qbz-slint/ui/shell/SongCard.slint +++ b/crates/qbz-slint/ui/shell/SongCard.slint @@ -74,9 +74,10 @@ component DotLed inherits Rectangle { } } Text { - // Quality-badge text grey — constant regardless of on/off. + // Muted-tier label — constant regardless of on/off. Themed so it + // stays legible on light/HC themes (the dot signals state). text: root.label; - color: #b0b0b0; + color: Theme.text-muted; font-size: 8px; font-weight: 600; letter-spacing: 0.3px;