History

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.

Matthias Hunstock committed 6 years ago

Commit b80e4e41 parent c4b6d0d1 file · +5 −1Browse files

Unified · Split

player/lua/osc.lua+5−1
@@ -1878,7 +1878,11 @@ function osc_init() · 1877 unmodified lines
18781878
18791879 ne.content = function ()
18801880 if mp.get_property("pause") == "yes" then
1881− return ("\238\132\129")
1881+ if mp.get_property("play-direction", "forward") ~= "backward" then
1882+ return ("\238\132\129")
1883+ else
1884+ return ("\238\132\144")
1885+ end
18821886 else
18831887 return ("\238\128\130")
18841888 end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t