feat(favorites): show album artwork in track rows, add release codename
- Favorite tracks now display album art between track number and title, matching the layout used in PlaylistDetailView (showArtwork=true) - VirtualizedTrackList gains showArtwork and getArtworkUrl props - AboutModal: add release codename 'La marrano de engorda' (1.1.15) - README: remove stale KWin native title bar manual workaround section
This commit is contained in:
4 files changed
+19
-48
No files matched your search
@@ -472,54 +472,6 @@ After enabling Force X11, configure scaling in Settings → Appearance → Compo
|
||||
|
||||
All settings require a restart to take effect.
|
||||
|
||||
#### KDE Plasma: native title bar via KWin rule (advanced, manual)
|
||||
|
||||
GTK3 (which QBZ uses internally via Tauri/WebKitGTK) hardcodes client-side
|
||||
decorations in the Wayland xdg-decoration protocol, so enabling "Use system
|
||||
title bar" in Settings gives you a Breeze-GTK bar instead of the native
|
||||
KDE/Plasma one. Attempts to apply a KWin SSD rule at runtime were abandoned
|
||||
in 1.1.15 due to a GTK3/WebKit heap corruption bug.
|
||||
|
||||
However, you can get a true Plasma title bar manually by writing the KWin
|
||||
rule **before** launching QBZ and leaving both built-in title bar options
|
||||
**disabled** (Settings → Appearance → "Use system title bar" OFF):
|
||||
|
||||
```bash
|
||||
# Write the KWin window rule
|
||||
kwriteconfig6 --file kwinrulesrc --group 99 --key Description "QBZ Native Title Bar"
|
||||
kwriteconfig6 --file kwinrulesrc --group 99 --key noborder "false"
|
||||
kwriteconfig6 --file kwinrulesrc --group 99 --key noborderrule "2"
|
||||
kwriteconfig6 --file kwinrulesrc --group 99 --key wmclass "qbz"
|
||||
kwriteconfig6 --file kwinrulesrc --group 99 --key wmclasscomplete "false"
|
||||
kwriteconfig6 --file kwinrulesrc --group 99 --key wmclassmatch "1"
|
||||
kwriteconfig6 --file kwinrulesrc --group 99 --key types "1"
|
||||
|
||||
# Increment the rule count (change N to current count + 1)
|
||||
kwriteconfig6 --file kwinrulesrc --group General --key count "1"
|
||||
|
||||
# Apply the rule without restarting KWin
|
||||
qdbus6 org.kde.KWin /KWin org.kde.KWin.reconfigure
|
||||
```
|
||||
|
||||
> **Use group 99** (or any number not already in use) to avoid conflicts.
|
||||
> Check `~/.config/kwinrulesrc` for existing groups and adjust accordingly.
|
||||
|
||||
With QBZ's custom title bar disabled and this rule active, KWin draws its
|
||||
own Plasma/Breeze decoration directly — identical to Dolphin or Konsole.
|
||||
|
||||
To undo:
|
||||
```bash
|
||||
kwriteconfig6 --file kwinrulesrc --group 99 --delete-group 2>/dev/null || \
|
||||
python3 -c "
|
||||
import os, re, pathlib
|
||||
p = pathlib.Path('~/.config/kwinrulesrc').expanduser()
|
||||
txt = p.read_text()
|
||||
txt = re.sub(r'\[99\][^\[]*', '', txt)
|
||||
p.write_text(txt)
|
||||
"
|
||||
qdbus6 org.kde.KWin /KWin org.kde.KWin.reconfigure
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Contributions are welcome. Please read `CONTRIBUTING.md` before submitting issues or pull requests.
|
||||
|
||||
@@ -96,6 +96,8 @@
|
||||
<div class="info-grid">
|
||||
<span class="label">Version</span>
|
||||
<span class="value">{appVersion}</span>
|
||||
<span class="label">Codename</span>
|
||||
<span class="value codename">La marrano de engorda</span>
|
||||
<span class="label">License</span>
|
||||
<span class="value">MIT</span>
|
||||
<span class="label">Platform</span>
|
||||
@@ -350,6 +352,12 @@
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.codename {
|
||||
font-family: var(--font-sans);
|
||||
font-style: italic;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.attributions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
|
||||
@@ -63,6 +63,9 @@
|
||||
// For getting artist/album IDs from non-local tracks
|
||||
getArtistId?: (track: Track) => number | undefined;
|
||||
getAlbumId?: (track: Track) => string | undefined;
|
||||
// Album artwork column (same as Playlist view)
|
||||
showArtwork?: boolean;
|
||||
getArtworkUrl?: (track: Track) => string | undefined;
|
||||
}
|
||||
|
||||
let {
|
||||
@@ -107,6 +110,8 @@
|
||||
onCreateQobuzRadio,
|
||||
getArtistId,
|
||||
getAlbumId,
|
||||
showArtwork = false,
|
||||
getArtworkUrl,
|
||||
}: Props = $props();
|
||||
|
||||
// Constants
|
||||
@@ -327,6 +332,8 @@
|
||||
title={getTrackTitle(item.track)}
|
||||
artist={trackArtist}
|
||||
album={albumName}
|
||||
showArtwork={showArtwork}
|
||||
artworkUrl={getArtworkUrl?.(item.track)}
|
||||
duration={formatDuration(getTrackDuration(item.track))}
|
||||
quality={getQualityBadge(item.track)}
|
||||
isPlaying={isPlaybackActive && activeTrackId === trackId}
|
||||
|
||||
@@ -1067,6 +1067,8 @@
|
||||
const getFavoriteTrackDuration = (trk: FavoriteTrack) => trk.duration;
|
||||
const getFavoriteTrackAlbumKey = (trk: FavoriteTrack) => trk.album?.id;
|
||||
const getFavoriteTrackAlbum = (trk: FavoriteTrack) => trk.album?.title;
|
||||
const getFavoriteTrackArtworkUrl = (trk: FavoriteTrack) =>
|
||||
trk.album?.image?.small ?? trk.album?.image?.thumbnail;
|
||||
const getFavoriteArtistId = (trk: FavoriteTrack) => trk.performer?.id;
|
||||
const getFavoriteAlbumId = (trk: FavoriteTrack) => trk.album?.id;
|
||||
|
||||
@@ -1569,6 +1571,8 @@
|
||||
getTrackDuration={getFavoriteTrackDuration}
|
||||
getTrackAlbumKey={getFavoriteTrackAlbumKey}
|
||||
getTrackAlbum={getFavoriteTrackAlbum}
|
||||
showArtwork={true}
|
||||
getArtworkUrl={getFavoriteTrackArtworkUrl}
|
||||
showAlbum={!trackGroupingEnabled || trackGroupMode !== 'album'}
|
||||
getArtistId={getFavoriteArtistId}
|
||||
getAlbumId={getFavoriteAlbumId}
|
||||
|
||||
Reference in new issue
Block a user