Compare commits

...

4 Commits

Author SHA1 Message Date
a-tze 55b957bc53
Merge 37bfa7052f into 2e03e0305c 2024-04-27 00:27:28 +08:00
Matthias Hunstock 37bfa7052f osd: show left arrow when playing backwards
If playback direction is backwards, display a triangle
pointing to the left as status symbol of OSD.
2020-09-25 22:34:55 +02:00
Matthias Hunstock d2380b13f9 tools: add narrow left arrow glyph for OSD
Add rotated arrow glyph on unused codepoint U+E00D.
2020-09-25 22:34:02 +02:00
Matthias Hunstock 9c31e4156d 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.
2020-09-25 22:32:27 +02:00
5 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,15 @@
StartChar: uniE00D
Encoding: 57357 57357 34
Width: 880
Flags: HWO
HStem: 780 20G<200 200>
VStem: 200 375<400 400 400 800>
LayerCount: 2
Fore
SplineSet
200 400 m 1
575 800 l 1
575 0 l 1
200 400 l 1
EndSplineSet
EndChar

View File

@ -1849,7 +1849,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

View File

@ -412,6 +412,8 @@ void get_current_osd_sym(struct MPContext *mpctx, char *buf, size_t buf_size)
sym = OSD_CLOCK;
} else if (mpctx->paused || mpctx->step_frames) {
sym = OSD_PAUSE;
} else if (mpctx->play_dir < 0 ) {
sym = OSD_REV;
} else {
sym = OSD_PLAY;
}

View File

@ -126,6 +126,7 @@ enum mp_osd_font_codepoints {
OSD_BRIGHTNESS = 0x0A,
OSD_HUE = 0x0B,
OSD_BALANCE = 0x0C,
OSD_REV = 0x0D,
OSD_PANSCAN = 0x50,
OSD_PB_START = 0x10,

Binary file not shown.