feat: added control bar button badge limits
It is now possible to specify a threshold when to hide the badge by doing `#audio>1` to display the audio counter badge only when there's more than 1 audio track. ref #212
This commit is contained in:
@@ -27,7 +27,7 @@ timeline_chapters_opacity=0.8
|
||||
|
||||
# A comma delimited list of items to construct the controls bar above the timeline. Set to `never` to disable.
|
||||
# Parameter spec: enclosed in `{}` means value, enclosed in `[]` means optional
|
||||
# Full item syntax: `[<[!]{disposition1}[,[!]{dispositionN}]>]{element}[:{paramN}][#{badge}][?{tooltip}]`
|
||||
# Full item syntax: `[<[!]{disposition1}[,[!]{dispositionN}]>]{element}[:{paramN}][#{badge}[>{limit}]][?{tooltip}]`
|
||||
# Common properties:
|
||||
# `{icon}` - parameter used to specify an icon name (example: `face`)
|
||||
# - you can pick one here: https://fonts.google.com/icons?selected=Material+Icons
|
||||
@@ -63,10 +63,12 @@ timeline_chapters_opacity=0.8
|
||||
# - `<stream>stream-quality` - show stream quality button only for streams
|
||||
# - `<has_audio,!audio>audio` - show audio tracks button for all files that have
|
||||
# an audio track, but are not exclusively audio only files
|
||||
# Place `#{badge}` after the element params to give it a badge. Available badges:
|
||||
# Place `#{badge}[>{limit}]` after the element params to give it a badge. Available badges:
|
||||
# `sub`, `audio`, `video` - track type counters
|
||||
# `{mpv_prop}` - any mpv prop that makes sense to you: https://mpv.io/manual/master/#property-list
|
||||
# - if prop value is an array it'll display its size
|
||||
# `>{limit}` will display the badge only if it's numerical value is above this threshold.
|
||||
# Example: `#audio>1`
|
||||
# Place `?{tooltip}` after the element config to give it a tooltip.
|
||||
# Example: `<stream>stream-quality?Stream quality`
|
||||
# Example implementations of some of the available shorthands:
|
||||
|
Reference in New Issue
Block a user