-
-
Notifications
You must be signed in to change notification settings - Fork 32
Launcher: better badge animation #466
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
Conversation
| // Avoid a stutter at the beginning | ||
| badge.opacity = 0; | ||
|
|
||
| if (app.count_visible && (notify_settings == null || !notify_settings.get_boolean ("do-not-disturb"))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the idea behind the DND check here? It looks like it skips this and will use the default up above and still animate. And then if it is removing the badge and DND is on, it will use the default but won't be reversed. Am I reading this right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept this the same as it was before. I think it's if the badge should be visible AND (either do not disturb status is unknown OR do not disturb is off) → Do all the badge show animations otherwise do all the badge hide animations.
In other words, if do not disturb is turned on, don't show badges. We only need to check if DnD is turned on to show badges, we don't need to check it to hide badges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oooooh I see
Fixes #465
Kooha-2025-09-18-11-23-39.mp4