move subs up

This commit is contained in:
j 2023-11-15 09:39:44 +01:00
parent 6823002315
commit a83781ef56

View file

@ -21,6 +21,7 @@ DEBUG = False
FONT = 'Menlo' FONT = 'Menlo'
FONT_SIZE = 36 FONT_SIZE = 36
FONT_BORDER = 5 FONT_BORDER = 5
SUB_MARGIN = FONT_SIZE + 6
def mpv_log(loglevel, component, message): def mpv_log(loglevel, component, message):
@ -53,6 +54,7 @@ class Sync(Thread):
input_vo_keyboard=True, input_vo_keyboard=True,
sub_text_font_size=FONT_SIZE, sub_text_font=FONT, sub_text_font_size=FONT_SIZE, sub_text_font=FONT,
sub_border_size=FONT_BORDER, sub_border_size=FONT_BORDER,
sub_margin_y=SUB_MARGIN,
) )
self.mpv.observe_property('time-pos', self.time_pos_cb) self.mpv.observe_property('time-pos', self.time_pos_cb)
self.mpv.fullscreen = kwargs.get('fullscreen', False) self.mpv.fullscreen = kwargs.get('fullscreen', False)