Skip to content

Commit ebf1a19

Browse files
author
rekols
committed
feat: new subtitle font style.
linuxdeepin/internal-discussion#557 Change-Id: I8c2cb47c52fee8d5953ad4b84d6198e215eb61d1
1 parent c9334f8 commit ebf1a19

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/backends/mpv/mpv_proxy.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,11 @@ void MpvProxy::updateSubStyle(const QString& font, int sz)
564564
{
565565
set_property(_handle, "sub-font", font);
566566
set_property(_handle, "sub-font-size", sz);
567+
set_property(_handle, "sub-color", "#FFFFFF");
568+
set_property(_handle, "sub-border-size", 1);
569+
set_property(_handle, "sub-border-color", "0.0/0.0/0.0/0.50");
570+
set_property(_handle, "sub-shadow-offset", 1);
571+
set_property(_handle, "sub-shadow-color", "0.0/0.0/0.0/0.50");
567572
}
568573

569574
void MpvProxy::showEvent(QShowEvent *re)

0 commit comments

Comments
 (0)