fix:处理通知图标的 “app_package ”并修复焦点通知图标的颜色#241
Merged
fankes merged 5 commits intofankes:masterfrom Aug 16, 2025
Merged
Conversation
Owner
|
由于主分支已经迁移到新写法了,所以烦请重新修复一下冲突问题 |
Contributor
Author
|
ok |
此提交解决了两个问题: 1. **通知图标软件包名称:** 现在,如果通知中的 "app_package" 字符串可用,它将正确使用该字符串,并返回到通知的软件包名称。这可确保在一个应用程序代表另一个应用程序(如系统服务)发送通知时加载正确的图标。 2. **焦点通知图标颜色:** 焦点通知图标的着色现在可根据通知图标优化配置正确应用,从而防止出现不正确的图标颜色。 Signed-off-by: ghhccghk <2137610394@qq.com>
Signed-off-by: ghhccghk <2137610394@qq.com>
Signed-off-by: ghhccghk <2137610394@qq.com>
Contributor
Author
|
测试一下,不知道怎么样 |
Contributor
Author
https://gist.github.com/ghhccghk/39657deb93b5221607409c1bddb6802c 为什么这里在我修改前的时候为true,我改的时候发现这里为false的时候才不会对不规范图标着色 |
Owner
|
我不知道 |
Contributor
Author
草,那要不还原最后一个提交合并吧 |
Owner
|
你来决定,我只管合,没问题了叫我就行 |
- 新增开关 `ENABLE_FOCUS_NOTIFICATION_FIX`,默认关闭 - 当该开关开启时,强制对焦点通知图标进行反色处理 - 调整了 SystemUIHooker 中对焦点通知图标的反色逻辑,使其在 `ENABLE_FOCUS_NOTIFICATION_FIX` 开启时生效 - 修复了当图标不是灰度图标时,也标记为需要反色的问题 Signed-off-by: ghhccghk <2137610394@qq.com>
Contributor
Author
|
OK了,加了个强制反色开关,反色有问题就开就行 |
Contributor
Author
|
#221 可能和这个bug有关 |
Owner
|
我给忘了还有 pr 了 |
fankes
approved these changes
Aug 16, 2025
fankes
added a commit
that referenced
this pull request
Aug 16, 2025
fankes
added a commit
that referenced
this pull request
Dec 27, 2025
* fix:处理通知图标的 “app_package ”并修复焦点通知图标的颜色 此提交解决了两个问题: 1. **通知图标软件包名称:** 现在,如果通知中的 "app_package" 字符串可用,它将正确使用该字符串,并返回到通知的软件包名称。这可确保在一个应用程序代表另一个应用程序(如系统服务)发送通知时加载正确的图标。 2. **焦点通知图标颜色:** 焦点通知图标的着色现在可根据通知图标优化配置正确应用,从而防止出现不正确的图标颜色。 Signed-off-by: ghhccghk <2137610394@qq.com> * fix: 修复焦点通知图标逻辑异常,修复setTint导致无法正确着色 Signed-off-by: ghhccghk <2137610394@qq.com> * fix: 修复焦点通知反色功能异常 Signed-off-by: ghhccghk <2137610394@qq.com> * feat: 新增开关强制对焦点通知进行反色 - 新增开关 `ENABLE_FOCUS_NOTIFICATION_FIX`,默认关闭 - 当该开关开启时,强制对焦点通知图标进行反色处理 - 调整了 SystemUIHooker 中对焦点通知图标的反色逻辑,使其在 `ENABLE_FOCUS_NOTIFICATION_FIX` 开启时生效 - 修复了当图标不是灰度图标时,也标记为需要反色的问题 Signed-off-by: ghhccghk <2137610394@qq.com> * style: some tweaks in SystemUIHooker --------- Signed-off-by: ghhccghk <2137610394@qq.com> Co-authored-by: fankesyooni <qzmmcn@163.com>
fankes
added a commit
that referenced
this pull request
Dec 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

此提交解决了两个问题: