skin: add new %pP tag (playlist progress as percentage)

This new tag returns the position in the playlist as a percent. The main usecase for this is to use it as a bar tag, allowing themes to visually present playlist progress.

Change-Id: I0eb001e7458d97b8a0db39f3980d9c283bc8806b
This commit is contained in:
Arin Kim 2026-01-13 16:41:55 +01:00 committed by Solomon Peachy
parent 1c429e2209
commit 41d5ca3c48
8 changed files with 35 additions and 1 deletions

View file

@ -174,7 +174,9 @@ or \config{\%D(2)}), produce the information for the next file to be played.
\config{\%pR} & Peak meter for the right channel. Can be used as a value, %
a conditional tag or a bar tag.\\
\config{\%pn} & Playlist name (without path or extension)\\
\config{\%pp} & Playlist position\\
\config{\%pp} & Playlist position as index\\
\config{\%pP} & Playlist position as percentage. Can be used as a value, %
a conditional tag or a bar tag.\\
\config{\%pr} & Remaining time in song\\
\config{\%ps} & ``s'' if shuffle mode is enabled\\
\config{\%pt} & Total track time\\