extract constants
This commit is contained in:
parent
bc3a85d18d
commit
b969f0824f
22 changed files with 106 additions and 63 deletions
|
|
@ -4,15 +4,19 @@ import "." as M
|
|||
|
||||
M.BarSection {
|
||||
id: root
|
||||
spacing: 4
|
||||
spacing: M.Theme.moduleSpacing
|
||||
visible: player !== null
|
||||
tooltip: {
|
||||
const p = root.player;
|
||||
if (!p) return "";
|
||||
if (!p)
|
||||
return "";
|
||||
const parts = [];
|
||||
if (p.trackTitle) parts.push(p.trackTitle);
|
||||
if (p.trackArtists?.length) parts.push(p.trackArtists.join(", "));
|
||||
if (p.trackAlbum) parts.push(p.trackAlbum);
|
||||
if (p.trackTitle)
|
||||
parts.push(p.trackTitle);
|
||||
if (p.trackArtists?.length)
|
||||
parts.push(p.trackArtists.join(", "));
|
||||
if (p.trackAlbum)
|
||||
parts.push(p.trackAlbum);
|
||||
return parts.join("\n") || p.identity;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue