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 committed by Kacper Michajłow
parent c4b6d0da38
commit b80e4e46a3
1 changed files with 5 additions and 1 deletions

View File

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