Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotificationAPI: Dark mode support for icons #535

Closed
wants to merge 5 commits into from

Conversation

AgentConDier
Copy link
Contributor

Previously, the black notification icons were shown on a dark background if system-wide dark mode was enabled. (At least in some cases, there are differences between vendors and android versions)
To make them more visible, apply a white tint while termux is in dark mode.

The second commit fixes an issue I had with the latest build from GH Actions (df3cb50) where the first notification action supplied after a reboot overwrote all subsequent ones.

Tested on a Huawei Mate 20 Pro with
Android 10
EMUI 12
Termux 0.118.0+1488bb0

Also skip iterating over remaining icons if we already found the right one
The sound option is being ignored in favor of channel settings. Instead, add a silent option to be able to create notifications without playing any sound.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant