@@ -93,11 +93,25 @@ export const useLyricSettings = (): SettingConfig => {
9393 noWrapper : true ,
9494 component : markRaw ( LyricPreview ) ,
9595 } ,
96+ {
97+ key : "lyricFontSizeMode" ,
98+ label : "自适应歌词大小" ,
99+ type : "switch" ,
100+ description : "开启后歌词大小将根据窗口高度自动缩放,避免全屏时过小或窗口时过大" ,
101+ value : computed ( {
102+ get : ( ) => settingStore . lyricFontSizeMode === "adaptive" ,
103+ set : ( v ) => ( settingStore . lyricFontSizeMode = v ? "adaptive" : "fixed" ) ,
104+ } ) ,
105+ } ,
96106 {
97107 key : "lyricFontSize" ,
98108 label : "歌词字体大小" ,
99109 type : "input-number" ,
100- description : "单位 px,最小 12,最大 60" ,
110+ description : computed ( ( ) =>
111+ settingStore . lyricFontSizeMode === "adaptive"
112+ ? "作为基准大小 (以 1080p 高度为准)"
113+ : "单位 px,最小 12,最大 60" ,
114+ ) ,
101115 min : 12 ,
102116 max : 60 ,
103117 suffix : "px" ,
@@ -111,7 +125,11 @@ export const useLyricSettings = (): SettingConfig => {
111125 key : "lyricTranFontSize" ,
112126 label : "翻译歌词大小" ,
113127 type : "input-number" ,
114- description : "单位 px,最小 5,最大 40" ,
128+ description : computed ( ( ) =>
129+ settingStore . lyricFontSizeMode === "adaptive"
130+ ? "作为基准大小 (以 1080p 高度为准)"
131+ : "单位 px,最小 5,最大 40" ,
132+ ) ,
115133 min : 5 ,
116134 max : 40 ,
117135 suffix : "px" ,
@@ -130,7 +148,11 @@ export const useLyricSettings = (): SettingConfig => {
130148 key : "lyricRomaFontSize" ,
131149 label : "音译歌词大小" ,
132150 type : "input-number" ,
133- description : "单位 px,最小 5,最大 40" ,
151+ description : computed ( ( ) =>
152+ settingStore . lyricFontSizeMode === "adaptive"
153+ ? "作为基准大小 (以 1080p 高度为准)"
154+ : "单位 px,最小 5,最大 40" ,
155+ ) ,
134156 min : 5 ,
135157 max : 40 ,
136158 suffix : "px" ,
0 commit comments