From d1fa51c2bbd2c9479ba5f627a8501c550df2c338 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 12 Sep 2026 20:38:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E5=9B=BE=E7=89=87URL=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 15 +-------------- src/main/utils/index.ts | 2 +- src/renderer/store/utils.ts | 2 +- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index e30801be..79682f11 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -3,19 +3,6 @@ 对于日常使用 LX Music 的人可以试试迁移到 Any Listen,若遇到任何问题可以发 issue 反馈。 Any Listen 的项目地址为 https://github.com/any-listen/any-listen -### 优化 - -- 优化kw歌单列表数据显示 -- 同步服务在连接时允许URL重定向 -- Linux 点击托盘时将显示主界面(#2840) -- 优化自动换源歌曲匹配机制 - ### 修复 -- 修复 kg 搜索结果显示问题 (#2782) -- 修复某些情况下开放 API 获取到的音量为 0 的问题 (#2790) -- 修复 mg 图片、歌词获取 -- 修复某些 tx 歌单打开失败的问题 (#1060, @ght-000) -- 修复在某些情况下添加、移动歌曲时可能导致保存的歌曲顺序不对的问题(#2842) -- 修复歌词标签解析格式没有严格按照标准的问题(#2855) -- 修复 tx 歌曲搜索失败的问题(#2848, @ikun0014) +- 修复自定义主题背景图片无法显示的问题 diff --git a/src/main/utils/index.ts b/src/main/utils/index.ts index 64fbea51..71670b9c 100644 --- a/src/main/utils/index.ts +++ b/src/main/utils/index.ts @@ -263,7 +263,7 @@ export const getTheme = () => { theme.config.extInfo['--background-image'] = isUrl(theme.config.extInfo['--background-image']) ? `url(${theme.config.extInfo['--background-image']})` - : `url(file:///${encodePath(joinPath(global.lxDataPath, 'theme_images', theme.config.extInfo['--background-image']))})` + : `url(${encodePath(joinPath(global.lxDataPath, 'theme_images', theme.config.extInfo['--background-image']))})` } } else { themeId = global.lx.appSetting['theme.id'] == 'auto' && shouldUseDarkColors ? 'black' : 'green' diff --git a/src/renderer/store/utils.ts b/src/renderer/store/utils.ts index fe570306..7a66853b 100644 --- a/src/renderer/store/utils.ts +++ b/src/renderer/store/utils.ts @@ -18,7 +18,7 @@ export const assertApiSupport = (source: LX.Source): boolean => { export const buildBgUrl = (originUrl: string, dataPath: string): string => { return isUrl(originUrl) ? `url(${originUrl})` - : `url(file:///${encodePath(joinPath(dataPath, originUrl).replaceAll('\\', '/'))})` + : `url(${encodePath(joinPath(dataPath, originUrl).replaceAll('\\', '/'))})` } export const getThemes = (callback: (themeInfo: LX.ThemeInfo) => void) => {