-
|
In the docs, it's mentioned you can set the (
// -- snip --
song_table_format: [
(
prop: (kind: Property(Artist), default: (kind: Text("Unknown"))),
width: "20%",
label: "Artist",
scoll_speed: 1
),
(
prop: (kind: Property(Title), default: (kind: Text("Unknown"))),
width: "35%",
label: "Title",
scoll_speed: 1
),
(
prop: (kind: Property(Track)),
width: "2",
alignment: Right,
label: "#"
),
(
prop: (kind: Property(Album), default: (kind: Text("Unknown Album"))),
width: "45%",
label: "Album",
scoll_speed: 1
),
(
prop: (kind: Property(Duration),default: (kind: Text("-"))),
width: "6",
alignment: Right,
label: "Length"
),
],
// -- snip --
)I tried using creating a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
That is on the "title": Pane(Property(
content: [
(kind: Property(Song(Title)), style: (modifiers: "Bold"),
default: (kind: Text("No Song"), style: (modifiers: "Bold"))),
(kind: Transform(Replace(content: (kind: Sticker("like")), replacements: [
(match: "0", replace: (kind: Text(" "), style: (fg: "blue"))),
(match: "1", replace: (kind: Text(" "), style: (fg: "white"))),
(match: "2", replace: (kind: Text(" "), style: (fg: "red"))),
]))),
],
align: Center,
scroll_speed: 1
)),Making this available in the queue table is an interesting idea, I am not sure what the performance implications of it would be though because the string processing in there can already be quite heavy depending on user config. |
Beta Was this translation helpful? Give feedback.
#852