mmtc/mmtc.ron

38 lines
1 KiB
Text
Raw Normal View History

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
])),
Min(0, Queue(
2020-10-30 16:21:35 +00:00
columns: [
Ratio(5, QueueTitle),
Ratio(4, QueueArtist),
Ratio(4, QueueAlbum),
],
)),
Fixed(1, Textbox(If(Playing, Parts([
2020-10-30 21:09:22 +00:00
Text("["),
CurrentElapsed,
2020-10-30 21:09:22 +00:00
Text("/"),
CurrentDuration,
2020-10-30 21:09:22 +00:00
Text("] "),
If(TitleExist,
Parts([
CurrentTitle,
If(ArtistExist, Parts([
2020-10-30 21:09:22 +00:00
Text(" - "),
CurrentArtist,
If(AlbumExist, Parts([
2020-10-30 21:09:22 +00:00
Text(" - "),
CurrentAlbum,
])),
2020-10-30 16:21:35 +00:00
])),
]),
CurrentFile,
)
])))),
2020-10-30 16:21:35 +00:00
]),
)