move subs up
This commit is contained in:
parent
6823002315
commit
a83781ef56
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue