osc: show left arrow when paused while playing backwards

Use existing glyph for playlist buttons to show a triangle
pointing left if playback is stopped with a backward playback
direction.
This commit is contained in:
Matthias Hunstock 2020-09-25 22:32:27 +02:00
parent 82eda2e5f8
commit 9c31e4156d
1 changed files with 5 additions and 1 deletions

View File

@ -1796,7 +1796,11 @@ function osc_init()
ne.content = function ()
if mp.get_property("pause") == "yes" then
return ("\238\132\129")
if mp.get_property("play-dir", "forward") ~= "backward" then
return ("\238\132\129")
else
return ("\238\132\144")
end
else
return ("\238\128\130")
end