diff --git a/src/common/defaultSetting.ts b/src/common/defaultSetting.ts index ae084d1d..e2327078 100644 --- a/src/common/defaultSetting.ts +++ b/src/common/defaultSetting.ts @@ -71,6 +71,7 @@ const defaultSetting: LX.AppSetting = { 'desktopLyric.style.isZoomActiveLrc': true, 'desktopLyric.style.isFontWeightFont': true, 'desktopLyric.style.isFontWeightLine': false, + 'desktopLyric.style.isFontWeightExtended': false, 'list.isClickPlayList': false, 'list.isShowSource': true, diff --git a/src/common/types/app_setting.d.ts b/src/common/types/app_setting.d.ts index 1e0f2203..16800229 100644 --- a/src/common/types/app_setting.d.ts +++ b/src/common/types/app_setting.d.ts @@ -329,6 +329,11 @@ declare global { */ 'desktopLyric.style.isFontWeightLine': boolean + /** + * 是否加粗翻译、罗马音字体 + */ + 'desktopLyric.style.isFontWeightExtended': boolean + /** * 是否启用双击列表里的歌曲时自动切换到当前列表播放(仅对歌单、排行榜有效) */ diff --git a/src/common/types/desktop_lyric.d.ts b/src/common/types/desktop_lyric.d.ts index 090b75c7..dd05f266 100644 --- a/src/common/types/desktop_lyric.d.ts +++ b/src/common/types/desktop_lyric.d.ts @@ -28,6 +28,7 @@ declare namespace LX { 'desktopLyric.style.ellipsis': LX.AppSetting['desktopLyric.style.ellipsis'] 'desktopLyric.style.isFontWeightFont': LX.AppSetting['desktopLyric.style.isFontWeightFont'] 'desktopLyric.style.isFontWeightLine': LX.AppSetting['desktopLyric.style.isFontWeightLine'] + 'desktopLyric.style.isFontWeightExtended': LX.AppSetting['desktopLyric.style.isFontWeightExtended'] 'desktopLyric.style.isZoomActiveLrc': LX.AppSetting['desktopLyric.style.isZoomActiveLrc'] 'common.langId': LX.AppSetting['common.langId'] 'player.isShowLyricTranslation': LX.AppSetting['player.isShowLyricTranslation'] diff --git a/src/lang/en-us.json b/src/lang/en-us.json index 5fee1aba..e911d455 100644 --- a/src/lang/en-us.json +++ b/src/lang/en-us.json @@ -449,6 +449,7 @@ "setting__search_focus_search_box": "Automatically focus the search box on startup", "setting__search_history": "Search history", "setting__search_hot": "Top Searches", + "setting__setting__desktop_lyric_font_weight_extended": "translation, romanized lyrics", "setting__setting__desktop_lyric_font_weight_font": "verbatim lyrics", "setting__setting__desktop_lyric_font_weight_line": "progressive lyrics", "setting__sync": "Data synchronization", diff --git a/src/lang/zh-cn.json b/src/lang/zh-cn.json index e773a044..7f69236d 100644 --- a/src/lang/zh-cn.json +++ b/src/lang/zh-cn.json @@ -452,6 +452,7 @@ "setting__search_focus_search_box": "启动时自动聚焦搜索框", "setting__search_history": "显示历史搜索记录", "setting__search_hot": "显示热门搜索", + "setting__setting__desktop_lyric_font_weight_extended": "翻译、罗马音歌词", "setting__setting__desktop_lyric_font_weight_font": "逐字歌词", "setting__setting__desktop_lyric_font_weight_line": "逐行歌词", "setting__sync": "数据同步", diff --git a/src/lang/zh-tw.json b/src/lang/zh-tw.json index 5ad4fdd1..bd649852 100644 --- a/src/lang/zh-tw.json +++ b/src/lang/zh-tw.json @@ -450,6 +450,7 @@ "setting__search_focus_search_box": "啟動時自動聚焦搜索框", "setting__search_history": "顯示歷史搜索記錄", "setting__search_hot": "顯示熱門搜索", + "setting__setting__desktop_lyric_font_weight_extended": "翻譯、羅馬音歌詞", "setting__setting__desktop_lyric_font_weight_font": "逐字歌詞", "setting__setting__desktop_lyric_font_weight_line": "逐行歌詞", "setting__sync": "數據同步", diff --git a/src/main/modules/winLyric/utils.ts b/src/main/modules/winLyric/utils.ts index 8d51aca8..33925469 100644 --- a/src/main/modules/winLyric/utils.ts +++ b/src/main/modules/winLyric/utils.ts @@ -78,6 +78,7 @@ export const watchConfigKeys = [ 'desktopLyric.style.ellipsis', 'desktopLyric.style.isFontWeightFont', 'desktopLyric.style.isFontWeightLine', + 'desktopLyric.style.isFontWeightExtended', 'desktopLyric.style.isZoomActiveLrc', 'common.langId', 'player.isShowLyricTranslation', diff --git a/src/renderer-lyric/components/layout/LyricHorizontal/index.vue b/src/renderer-lyric/components/layout/LyricHorizontal/index.vue index f07f86f8..e0ebf105 100644 --- a/src/renderer-lyric/components/layout/LyricHorizontal/index.vue +++ b/src/renderer-lyric/components/layout/LyricHorizontal/index.vue @@ -1,7 +1,7 @@