2020-10-30 16:21:35 +00:00
|
|
|
Config(
|
|
|
|
layout: Rows([
|
|
|
|
Fixed(1, Columns([
|
2020-10-30 21:09:22 +00:00
|
|
|
Ratio(5, Textbox(Text("Title"))),
|
|
|
|
Ratio(4, Textbox(Text("Artist"))),
|
|
|
|
Ratio(4, Textbox(Text("Album"))),
|
2020-10-30 16:21:35 +00:00
|
|
|
])),
|
2020-10-30 21:43:39 +00:00
|
|
|
Min(0, Queue(
|
2020-10-30 16:21:35 +00:00
|
|
|
columns: [
|
|
|
|
Ratio(5, QueueTitle),
|
|
|
|
Ratio(4, QueueArtist),
|
|
|
|
Ratio(4, QueueAlbum),
|
|
|
|
],
|
|
|
|
)),
|
2020-10-30 20:27:25 +00:00
|
|
|
Fixed(1, Textbox(If(Playing, Parts([
|
2020-10-30 21:09:22 +00:00
|
|
|
Text("["),
|
2020-10-30 20:27:25 +00:00
|
|
|
CurrentElapsed,
|
2020-10-30 21:09:22 +00:00
|
|
|
Text("/"),
|
2020-10-30 20:27:25 +00:00
|
|
|
CurrentDuration,
|
2020-10-30 21:09:22 +00:00
|
|
|
Text("] "),
|
2020-10-30 20:27:25 +00:00
|
|
|
If(TitleExist,
|
|
|
|
Parts([
|
|
|
|
CurrentTitle,
|
|
|
|
If(ArtistExist, Parts([
|
2020-10-30 21:09:22 +00:00
|
|
|
Text(" - "),
|
2020-10-30 20:27:25 +00:00
|
|
|
CurrentArtist,
|
|
|
|
If(AlbumExist, Parts([
|
2020-10-30 21:09:22 +00:00
|
|
|
Text(" - "),
|
2020-10-30 20:27:25 +00:00
|
|
|
CurrentAlbum,
|
|
|
|
])),
|
2020-10-30 16:21:35 +00:00
|
|
|
])),
|
2020-10-30 20:27:25 +00:00
|
|
|
]),
|
|
|
|
CurrentFile,
|
|
|
|
)
|
|
|
|
])))),
|
2020-10-30 16:21:35 +00:00
|
|
|
]),
|
|
|
|
)
|