fix(slint): tint AlbumCard cd-tier badge icon light
The cd.svg quality badge rendered black/transparent; switched the Image to QbzIcon with a light tint so it matches the Tauri look. cc
This commit is contained in:
1 file changed
+4
-1
@@ -7,6 +7,7 @@
|
||||
import { Theme } from "../foundation/semantic-colors.slint";
|
||||
import { Typography } from "../foundation/typography.slint";
|
||||
import { Radius } from "../foundation/radius.slint";
|
||||
import { QbzIcon } from "QbzIcon.slint";
|
||||
|
||||
export component QualityBadge inherits Rectangle {
|
||||
// "hires" | "cd" | "" — empty hides the badge entirely.
|
||||
@@ -33,13 +34,15 @@ export component QualityBadge inherits Rectangle {
|
||||
background: Theme.surface-elevated;
|
||||
border-width: 1px;
|
||||
border-color: Theme.border-subtle;
|
||||
Image {
|
||||
QbzIcon {
|
||||
x: (parent.width - self.width) / 2;
|
||||
y: (parent.height - self.height) / 2;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
source: @image-url("../assets/cd.svg");
|
||||
image-fit: contain;
|
||||
// Tinted light, matching the Tauri CD badge.
|
||||
tint: #b0b0b0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user