Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

✨ feat: 支持状态栏歌词设置 - #805

Merged
imsyy merged 5 commits into
devfrom
dev-rust-set
Feb 3, 2026
Merged

imsyy merged 5 commits into
devfrom
dev-rust-set

Conversation

@kazukokawagawa

Copy link
Copy Markdown
Collaborator

No description provided.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @kazukokawagawa, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

此拉取请求旨在为应用程序的任务栏歌词功能引入全面的自定义设置。通过在前端添加新的配置选项,并在 Electron 主进程中实现相应的逻辑,用户现在可以更精细地控制任务栏歌词的显示行为和外观,例如调整最大宽度、选择显示位置、控制封面显示以及在暂停时是否显示歌词。这些改进提升了用户体验,使任务栏歌词功能更加灵活和个性化。

Highlights

  • 新增任务栏歌词设置项: 引入了多项新的任务栏歌词设置,包括最大宽度、是否显示封面、显示位置(自动、左侧、右侧)以及暂停时是否显示等,极大地增强了用户对任务栏歌词的自定义能力。
  • 动态调整任务栏歌词窗口布局: 任务栏歌词窗口现在能够根据用户设置的最大宽度和显示位置动态调整其大小和在屏幕上的布局,确保歌词显示适配不同用户偏好和屏幕环境。
  • 前端与主进程通信更新: 前端界面新增了对任务栏歌词设置的监听器,当用户更改设置时,会通过 IPC 机制将这些设置同步到 Electron 主进程,确保设置的实时生效。
  • 歌词内容宽度自适应: 任务栏歌词组件现在能够根据歌词内容的实际宽度动态计算并请求主进程调整窗口宽度,以更好地适应不同长度的歌词显示。
  • 设置存储与迁移: 更新了应用程序的设置存储结构,新增了所有任务栏歌词相关的配置项及其默认值。同时,为 taskbarLyricMaxWidth 引入了数据迁移逻辑,以兼容旧版本设置。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

此拉取请求为状态栏歌词功能添加了全面的设置支持,包括最大宽度、封面可见性、位置和字体粗细。实现横跨主进程和渲染器进程,通过新的 IPC 通道进行通信,并包含了用于向后兼容的设置迁移脚本。代码结构良好。

我发现了一些可以改进的地方:

  • 有一个重复的设置项 watch,应该进行整合。
  • 主进程中的一些逻辑可以简化并提高效率。
  • 任务栏歌词组件包含一个应移除的 console.log 语句和一个可以改进的“魔术数字”。

总的来说,这是一个很棒的功能补充。解决这些问题将提高代码的质量和可维护性。

Comment thread src/utils/initIpc.ts Outdated
Comment thread electron/main/store/index.ts
Comment thread electron/main/windows/taskbar-lyric-window.ts
Comment thread electron/main/windows/taskbar-lyric-window.ts Outdated
Comment thread src/views/TaskbarLyric/index.vue Outdated
Comment thread src/views/TaskbarLyric/index.vue Outdated
@apoint123

Copy link
Copy Markdown
Member

任务栏歌词窗口右对齐托盘时有难以解决的布局抖动问题,需要进一步研究一下如何解决

@apoint123
apoint123 marked this pull request as draft February 2, 2026 18:03
@kazukokawagawa
kazukokawagawa marked this pull request as ready for review February 3, 2026 04:39
@imsyy
imsyy merged commit 4cdeb5a into dev Feb 3, 2026
4 checks passed
@kazukokawagawa
kazukokawagawa deleted the dev-rust-set branch February 3, 2026 04:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants