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
1878 1878
1879 ne.content = function ()1879 ne.content = function ()
1880 if mp.get_property("pause") == "yes" then1880 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
1882 else1886 else
1883 return ("\238\128\130")1887 return ("\238\128\130")
1884 end1888 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