feat: custom subtitle fontscale

Closes #28

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-01 10:22:31 +08:00
parent a6f5bd8d7d
commit 018424d5bd
4 changed files with 130 additions and 13 deletions

View File

@@ -99,6 +99,12 @@ class GStorage {
static double get danmakuFontScaleFS =>
setting.get(SettingBoxKey.danmakuFontScaleFS, defaultValue: 1.2);
static double get subtitleFontScale =>
setting.get(SettingBoxKey.subtitleFontScale, defaultValue: 1.0);
static double get subtitleFontScaleFS =>
setting.get(SettingBoxKey.subtitleFontScaleFS, defaultValue: 1.5);
static bool get grpcReply =>
setting.get(SettingBoxKey.grpcReply, defaultValue: true);
@@ -302,6 +308,8 @@ class SettingBoxKey {
strokeWidth = 'strokeWidth',
fontWeight = 'fontWeight',
memberTab = 'memberTab',
subtitleFontScale = 'subtitleFontScale',
subtitleFontScaleFS = 'subtitleFontScaleFS',
// 代理host port
systemProxyHost = 'systemProxyHost',