2020-10-30 16:21:35 +00:00
|
|
|
Config(
|
|
|
|
layout: Rows([
|
|
|
|
Fixed(1, Columns([
|
2020-10-31 22:12:08 +00:00
|
|
|
Ratio(12, Textbox(Text("Title"))),
|
|
|
|
Ratio(10, Textbox(Text("Artist"))),
|
|
|
|
Ratio(10, Textbox(Text("Album"))),
|
|
|
|
Ratio(1, Textbox(Text("Time"))),
|
2020-10-30 16:21:35 +00:00
|
|
|
])),
|
2020-11-01 19:29:39 +00:00
|
|
|
Min(0, Queue([
|
|
|
|
Column(
|
|
|
|
item: Ratio(12, QueueTitle),
|
|
|
|
style: [Fg(Indexed(117))],
|
|
|
|
selected_style: [Fg(Black), Bg(Indexed(117)), Bold],
|
|
|
|
),
|
|
|
|
Column(
|
|
|
|
item: Ratio(10, QueueArtist),
|
|
|
|
style: [Fg(Indexed(111))],
|
|
|
|
selected_style: [Fg(Black), Bg(Indexed(111)), Bold],
|
|
|
|
),
|
|
|
|
Column(
|
|
|
|
item: Ratio(10, QueueAlbum),
|
|
|
|
style: [Fg(Indexed(105))],
|
|
|
|
selected_style: [Fg(Black), Bg(Indexed(105)), Bold],
|
|
|
|
),
|
|
|
|
Column(
|
|
|
|
item: Ratio(1, QueueDuration),
|
|
|
|
style: [Fg(Indexed(177))],
|
|
|
|
selected_style: [Fg(Black), Bg(Indexed(177)), Bold],
|
|
|
|
),
|
|
|
|
])),
|
2020-11-01 19:56:46 +00:00
|
|
|
Fixed(1, Columns([
|
2020-11-01 20:55:58 +00:00
|
|
|
Min(0, Textbox(If(Not(Stopped), Parts([
|
|
|
|
If(Playing, Text("[playing: "), Text("[paused: ")),
|
2020-11-01 19:56:46 +00:00
|
|
|
CurrentElapsed,
|
|
|
|
Text("/"),
|
|
|
|
CurrentDuration,
|
|
|
|
Text("] "),
|
|
|
|
If(TitleExist,
|
|
|
|
Parts([
|
|
|
|
CurrentTitle,
|
|
|
|
If(ArtistExist, Parts([
|
2020-10-30 21:09:22 +00:00
|
|
|
Text(" - "),
|
2020-11-01 19:56:46 +00:00
|
|
|
CurrentArtist,
|
|
|
|
If(AlbumExist, Parts([
|
|
|
|
Text(" - "),
|
|
|
|
CurrentAlbum,
|
|
|
|
])),
|
2020-10-30 20:27:25 +00:00
|
|
|
])),
|
2020-11-01 19:56:46 +00:00
|
|
|
]),
|
|
|
|
CurrentFile,
|
|
|
|
)
|
|
|
|
])))),
|
2020-11-01 20:55:58 +00:00
|
|
|
Fixed(12, TextboxR(Parts([
|
|
|
|
If(Repeat, Text("[@]")),
|
|
|
|
If(Random, Text("[#]")),
|
|
|
|
If(Single, Text("[^]"), If(Oneshot, Text("[!]"))),
|
|
|
|
If(Consume, Text("[*]")),
|
2020-11-01 19:56:46 +00:00
|
|
|
]))),
|
|
|
|
])),
|
2020-10-30 16:21:35 +00:00
|
|
|
]),
|
|
|
|
)
|