Themes should be located in "~/.config/Yatoro/themes"
directory.
If this directory doesn't exist Yatoro will create it on startup and put the default one in there.
So you can check the default theming config for the reference once it's created.
Color
is a string property, which could be represented in theme config file:
- either as a string of RGB hex in format
#rrggbb
, example:#bd93f9
- or as one of the 16 default colors, which are used by your terminal
Default terminal color names
black
red
green
yellow
blue
magenta
cyan
white
brightBlack
brightRed
brightGreen
brightYellow
brightBlue
brightMagenta
brightCyan
brightWhite
Each UI element has bg
and fg
properties.
bg
- Color --- the color of the plane on which symbols are rendered. Default: nilfg
- Color --- the color of symbols on the plane themselves. Default: nil
By default, both properties are nil
on every UI element, which basically means using default terminal background and foreground colors.
page
--- Command line backgroundmodeNormal
--- normal mode statusmodeCommand
--- command mode statusplayStatus
--- status of the player, e.g. playing, paused, stopped, etc.time
--- song playback time and durationinput
--- command mode input (or output)nowPlayingArtist
--- artist name stringnowPlayingDash
--- "-" between artist name string and song title stringnowPlayingTitle
--- song title stringcompletions
--- command line completionscompletionSelected
--- command line selected completion
page
--- Now Playing page backgroundpageName
--- "Now Playing" stringborder
--- page borderslider
--- time slidersliderKnob
--- time slider knobcontrols
--- backward, play/pause, forward iconsartistLeft
--- "Artist:" stringartistRight
--- artist name stringsongLeft
--- "Song:" stringsongRight
--- song title stringalbumLeft
--- "Album:" stringalbumRight
--- album title stringcurrentTime
--- song playback timeduration
--- song duration
page
--- Queue page backgroundpageName
--- "Player Queue" stringborder
--- page bordershuffleMode
--- status of repeat moderepeatMode
--- status of repeat modesongItem
--- see songItem
page
--- Search page backgroundpageName
--- "Search" stringborder
--- page borderitemIndices
--- indices of items in Search pagesongItem
--- see songItemalbumItem
--- see albumItemartistItem
--- see artistItemplaylistItem
--- see playlistItemstationItem
--- see stationItemrecommendationItem
--- see recommendationItem
page
--- Album detail page backgroundborder
--- page borderalbumTitle
--- the name of the albumartistsText
--- "Artists:" stringartistIndices
--- indices of artist itemssongsText
--- "Songs:" stringsongIndices
--- indices of song itemssongItem
--- see songItemartistItem
--- see artistItem
page
--- Artist detail page backgroundborder
--- page borderartistTitle
--- the name of the artistalbumsText
--- "Albums:" stringalbumIndices
--- indices of album itemstopSongsText
--- "Top Songs:" stringtopSongIndices
--- indices of song itemssongItem
--- see songItemalbumItem
-- see albumItem
page
--- Playlist detail page backgroundborder
--- page borderplaylistTitle
--- the name of the playlistsongsText
--- "Songs:" stringsongIndices
--- indices of song itemssongItem
--- see songItem
page
--- Recommendation detail page backgroundborder
--- page borderrecommendationTitle
--- the name of the recommendationalbumsText
--- "Albums:" stringalbumIndices
--- indices of album itemsstationsText
--- "Stations:" stringstationIndices
--- indices of station itemsplaylistsText
--- "Playlists:" stringplaylistIndices
--- indices of playlist itemsalbumItem
--- see albumItemstationItem
--- see stationItemplaylistItem
--- see playlistItem
Some pages pages can display song items which could be colored.
page
--- song item backgroundborder
--- song item borderartistLeft
--- "Artist:" stringartistRight
--- artist name stringsongLeft
--- "Song:" stringsongRight
--- song title stringalbumLeft
--- "Album:" stringalbumRight
--- album title string
Similar to songItem, but used when displaying Albums.
page
--- album item backgroundborder
--- album item borderartistLeft
--- "Artist:" stringartistRight
--- artist name stringalbumLeft
--- "Album:" stringalbumRight
--- album title stringgenreLeft
--- "Genre:" stringgenreRight
--- genre names string
Similar to songItem, but used when displaying Artists.
page
--- artist item backgroundborder
--- artist item borderartistLeft
--- "Artist:" stringartistRight
--- artist name stringgenreLeft
--- "Genre:" stringgenreRight
--- genre names stringalbumsLeft
--- "Albums:" stringalbumsRight
--- artist album titles string
Similar to songItem, but used when displaying Playlists.
page
--- playlist item backgroundborder
--- playlist item borderplaylistLeft
--- "Playlist:" stringplaylistRight
--- playlist name stringcuratorLeft
--- "Curator:" stringcuratorRight
--- curator name stringdescriptionLeft
--- "Description:" stringdescriptionRight
--- playlist description string
Similar to songItem, but used when displaying Stations.
page
--- station item backgroundborder
--- station item borderstationLeft
--- "Station:" stringstationRight
--- station name stringisLiveLeft
--- "IsLive:" stringisLiveRight
--- is station live boolean stringnotesLeft
--- "Notes:" stringnotesRight
--- station editorial notes string
Similar to songItem, but used when displaying Recommendations.
page
--- recommnedation item backgroundborder
--- recommnedation item bordertitleLeft
--- "Title:" stringtitleRight
--- recommendation name stringrefreshDateLeft
--- "Refresh:" stringrefreshDateRight
--- recommnedation next refresh date stringtypesLeft
--- "Types:" stringtypesRight
--- recommendation types string