Skip to content

Conversation

@danirabbit
Copy link
Member

Fixes #465

Kooha-2025-09-18-11-23-39.mp4

@danirabbit danirabbit marked this pull request as ready for review September 18, 2025 18:26
@danirabbit danirabbit requested a review from a team September 18, 2025 18:26
// Avoid a stutter at the beginning
badge.opacity = 0;

if (app.count_visible && (notify_settings == null || !notify_settings.get_boolean ("do-not-disturb"))) {
Copy link
Contributor

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?

Copy link
Member Author

@danirabbit danirabbit Sep 20, 2025

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Oooooh I see

@danirabbit danirabbit merged commit f04363a into main Sep 20, 2025
4 checks passed
@danirabbit danirabbit deleted the danirabbit/launcher-badgeanimate branch September 20, 2025 18:22
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.

Replace dock bubble animation

3 participants