171 lines
5.2 KiB
Plaintext
171 lines
5.2 KiB
Plaintext
#![enable(implicit_some)]
|
|
#![enable(unwrap_newtypes)]
|
|
#![enable(unwrap_variant_newtypes)]
|
|
(
|
|
default_album_art_path: None,
|
|
show_song_table_header: true,
|
|
draw_borders: true,
|
|
format_tag_separator: " | ",
|
|
browser_column_widths: [20, 38, 42],
|
|
background_color: None,
|
|
text_color: None,
|
|
header_background_color: None,
|
|
modal_background_color: None,
|
|
modal_backdrop: false,
|
|
preview_label_style: (fg: "yellow"),
|
|
preview_metadata_group_style: (fg: "yellow", modifiers: "Bold"),
|
|
tab_bar: (
|
|
active_style: (fg: "black", bg: "red", modifiers: "Bold"),
|
|
inactive_style: (),
|
|
),
|
|
highlighted_item_style: (fg: "red", modifiers: "Bold"),
|
|
current_item_style: (fg: "black", bg: "red", modifiers: "Bold"),
|
|
borders_style: (fg: "red"),
|
|
highlight_border_style: (fg: "red"),
|
|
symbols: (
|
|
song: "",
|
|
dir: "",
|
|
playlist: "",
|
|
marker: "",
|
|
ellipsis: "…",
|
|
song_style: None,
|
|
dir_style: None,
|
|
playlist_style: None,
|
|
),
|
|
level_styles: (
|
|
info: (fg: "cyan", bg: "black"),
|
|
warn: (fg: "yellow", bg: "black"),
|
|
error: (fg: "red", bg: "black"),
|
|
debug: (fg: "green", bg: "black"),
|
|
trace: (fg: "magenta", bg: "black"),
|
|
),
|
|
progress_bar: (
|
|
symbols: ["[", "-", ">", " ", "]"],
|
|
track_style: (fg: "black"),
|
|
elapsed_style: (fg: "red"),
|
|
thumb_style: (fg: "red", bg: "black"),
|
|
),
|
|
scrollbar: (
|
|
symbols: ["│", "█", "▲", "▼"],
|
|
track_style: (),
|
|
ends_style: (),
|
|
thumb_style: (fg: "red"),
|
|
),
|
|
song_table_format: [
|
|
(
|
|
prop: (kind: Property(Artist),
|
|
default: (kind: Text("Unknown"))
|
|
),
|
|
width: "20%",
|
|
),
|
|
(
|
|
prop: (kind: Property(Title),
|
|
default: (kind: Text("Unknown"))
|
|
),
|
|
width: "35%",
|
|
),
|
|
(
|
|
prop: (kind: Property(Album), style: (fg: "white"),
|
|
default: (kind: Text("Unknown Album"), style: (fg: "white"))
|
|
),
|
|
width: "30%",
|
|
),
|
|
(
|
|
prop: (kind: Property(Duration),
|
|
default: (kind: Text("-"))
|
|
),
|
|
width: "15%",
|
|
alignment: Right,
|
|
),
|
|
],
|
|
components: {},
|
|
layout: Split(
|
|
direction: Vertical,
|
|
panes: [
|
|
(
|
|
pane: Pane(Header),
|
|
size: "2",
|
|
),
|
|
(
|
|
pane: Pane(Tabs),
|
|
size: "3",
|
|
),
|
|
(
|
|
pane: Pane(TabContent),
|
|
size: "100%",
|
|
),
|
|
(
|
|
pane: Pane(ProgressBar),
|
|
size: "1",
|
|
),
|
|
],
|
|
),
|
|
header: (
|
|
rows: [
|
|
(
|
|
left: [
|
|
(kind: Text("["), style: (fg: "yellow", modifiers: "Bold")),
|
|
(kind: Property(Status(StateV2(playing_label: "Playing", paused_label: "Paused", stopped_label: "Stopped"))), style: (fg: "yellow", modifiers: "Bold")),
|
|
(kind: Text("]"), style: (fg: "yellow", modifiers: "Bold"))
|
|
],
|
|
center: [
|
|
(kind: Property(Song(Title)), style: (modifiers: "Bold"),
|
|
default: (kind: Text("No Song"), style: (modifiers: "Bold"))
|
|
)
|
|
],
|
|
right: [
|
|
(kind: Property(Widget(ScanStatus)), style: (fg: "red")),
|
|
(kind: Property(Widget(Volume)), style: (fg: "red"))
|
|
]
|
|
),
|
|
(
|
|
left: [
|
|
(kind: Property(Status(Elapsed))),
|
|
(kind: Text(" / ")),
|
|
(kind: Property(Status(Duration))),
|
|
(kind: Text(" (")),
|
|
(kind: Property(Status(Bitrate))),
|
|
(kind: Text(" kbps)"))
|
|
],
|
|
center: [
|
|
(kind: Property(Song(Artist)), style: (fg: "yellow", modifiers: "Bold"),
|
|
default: (kind: Text("Unknown"), style: (fg: "yellow", modifiers: "Bold"))
|
|
),
|
|
(kind: Text(" - ")),
|
|
(kind: Property(Song(Album)),
|
|
default: (kind: Text("Unknown Album"))
|
|
)
|
|
],
|
|
right: [
|
|
(
|
|
kind: Property(Widget(States(
|
|
active_style: (fg: "white", modifiers: "Bold"),
|
|
separator_style: (fg: "white")))
|
|
),
|
|
style: (fg: "dark_gray")
|
|
),
|
|
]
|
|
),
|
|
],
|
|
),
|
|
browser_song_format: [
|
|
(
|
|
kind: Group([
|
|
(kind: Property(Track)),
|
|
(kind: Text(" ")),
|
|
])
|
|
),
|
|
(
|
|
kind: Group([
|
|
(kind: Property(Artist)),
|
|
(kind: Text(" - ")),
|
|
(kind: Property(Title)),
|
|
]),
|
|
default: (kind: Property(Filename))
|
|
),
|
|
],
|
|
lyrics: (
|
|
timestamp: false
|
|
)
|
|
)
|