Add taskbar-fluent-media-player-lx mod (LX Music lyrics + Chinese localization) - #5263
Add taskbar-fluent-media-player-lx mod (LX Music lyrics + Chinese localization)#5263zq20180515 wants to merge 6 commits into
Conversation
在Taskbar Fluent Media Player基础上二开,增加在任务栏中显示歌词的功能,仅适配LX Music播放器
|
Thanks for the pull request! This repository uses a two-stage review: an AI review that you run yourself, followed by a human review. To get started, comment See the pull request review process for the full details. |
|
/ai-review |
Submission reviewNote: This review was done by Claude. Due to the amount of submissions, doing a fully manual review for each pull request is no longer feasible. Thank you for understanding. Remember: The AI reviewer can be wrong - it may misread code, flag correct code as broken, or suggest changes that make things worse. Treat its findings as suggestions to verify, not instructions to follow blindly. You're responsible for the code you submit, so if a finding doesn't hold up, say so instead of changing working code to satisfy it. Please address the following issues. The items in the collapsed sections are optional, so it's your call whether to address them. The lyric feature itself is put together carefully (LRC parsing, dual-line rendering, scroll reuse), but the submission has a catalog-level problem and a few defects that will bite users. 1. This is a near-complete copy of an existing catalog mod. Windhawk's strong preference is to extend an existing mod rather than merge a fork of it: two nearly identical entries fragment the catalog, confuse users choosing between them, and every upstream fix has to be hand-ported forever. All three of your additions are natural upstream features:
Please take these to the original project as a PR / feature request: https://github.com/Salyts/Taskbar-Fluent-Media-Player. If the author declines, say so here and we can discuss, but a standalone fork should be the last resort. 2. The English user-facing strings were deleted and replaced with Chinese. Mod name, 3. [[clang::no_destroy]] static std::optional<std::thread> g_CaptureThread; // line 4871Mirror it: 4. WinHttpSetTimeouts(hSession, 2000, 2000, 2000, 2000);5. 6. The "controls up offset" silently stops working after any settings change. 7. Enabling lyrics silently overrides the user's "Media player height (min max)" setting. Line 8033: if (g_settings.lxEnabled) {
if (phMin < 56.0) phMin = 56.0;
if (phMax > 0.0 && phMax < 56.0) phMax = 56.0;
}
8. Attribution, license and README. The README keeps Salyts' full feature list but deletes the upstream Credits section (Salyts as author, GR0UD for the visualizer engine), the issue-report link, and all screenshots. Please restore the credits, and add an
Optional improvements
Minor polish — none of this affects users much, so it's your call.
Functionality notes
Non-critical observations and ideas about the feature behavior itself.
Next steps:
See the review process for details. |
|
/ai-review |
Submission reviewNote: This review was done by Claude. Due to the amount of submissions, doing a fully manual review for each pull request is no longer feasible. Thank you for understanding. Remember: The AI reviewer can be wrong - it may misread code, flag correct code as broken, or suggest changes that make things worse. Treat its findings as suggestions to verify, not instructions to follow blindly. You're responsible for the code you submit, so if a finding doesn't hold up, say so instead of changing working code to satisfy it. Please address the following issues. The items in the collapsed sections are optional, so it's your call whether to address them. The lyrics feature itself is a nice idea and the LX API integration is mostly sound, but the submission is structured as a full fork of an existing catalog mod, and the localization pass damaged the English settings UI. Those two need resolving before anything else. 1. This is a near-duplicate of an existing mod in the catalog. The three additions here are all self-contained and none of them require forking:
Please open a PR against Salyts/Taskbar-Fluent-Media-Player for the localization, the overlay mode and the popup toggle, and if the lyrics feature isn't wanted upstream, submit it here as its own small mod instead of a fork of the whole player. 2. README images are on a disallowed host. Only 3. The Chinese localization pass overwrote ~20 English setting names with their parent group's name. In each settings group the last child's English - fullHeightHitArea: true
$name: Media player # should be "Full-height invisible hit area"
$name:zh-CN: 全高不可见点击区域 # correct
$name:ru-RU: Невидимая область клика на всю высотуThe affected settings, with the correct upstream text:
Two group headings were clobbered the same way: 4. The README is Chinese-first. User-facing text should default to English, with other languages provided through the localization syntax. The metadata is fine ( Related: the README claims "All settings ... fully translated to Simplified Chinese" / "全中文设置界面", but only 5. Lyrics never appear if both "Show track title" and "Show track artist" are off. The lyric bool hasText = g_settings.showTrackTitle || g_settings.showTrackArtist || g_settings.lxEnabled; // line 8350
...
if (hasText) { // 8616
...
if (g_settings.showTrackTitle || g_settings.showTrackArtist) { // 8653
...
if (g_settings.lxEnabled) { // 8832 <- lyric UI built hereSo with lyrics enabled but title and artist both hidden, the text column is reserved and the player is made taller (line 8280), yet 6. if (!g_settings.lyricColor.empty()) {
std::wstring s = g_settings.lyricColor;
s.erase(0, s.find_first_not_of(L" \t"));
s.erase(s.find_last_not_of(L" \t") + 1);
if (s.front() == L'#') s.erase(s.begin()); // line 3073 - UB if s is now emptyIf the setting contains only spaces/tabs, 7. The LX poller runs by default for every user, forever, and never backs off.
8. Please confirm the local-HTTP dependency with the maintainer before proceeding. Windhawk mods are expected to be self-contained and not to talk to servers; this one's headline feature is inoperative without LX Music Desktop running with its Open API enabled, and it makes HTTP requests from Optional improvements
Minor polish — none of this affects users in normal operation, so it's your call.
Functionality notes
Non-critical observations and ideas about the lyrics feature itself.
Next steps:
See the review process for details. |
Summary
This PR adds a new mod: taskbar-fluent-media-player-lx, a fork of Taskbar Fluent Media Player that adds real-time LX Music lyrics display in the Windows 11 taskbar media player, plus full Chinese localization of all settings and visualizer overlay improvements.
Features
LX Music Lyrics
#RRGGBBandR G B), and optional text shadowChinese Localization
$name:zh-CN/$description:zh-CN)Visualizer Overlay Improvements
Preserved
Requirements
http://127.0.0.1:port/statusScreenshots
Mod authorship