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

fix: missing badge text on Windows #41618

Merged
merged 1 commit into from Mar 19, 2024
Merged

fix: missing badge text on Windows #41618

merged 1 commit into from Mar 19, 2024

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Mar 18, 2024

Description of Change

Closes #41589.
Refs CL:5053607

Fixes an issue where badge text set using the Badging API no longer appeared correctly on Windows. This happened because Chromium removed Skia SkFont default value setting to skia::DefaultFont(), which meant it would be a null value and nothing would be painted properly. Also pulls in some updates from chrome/browser/taskbar/taskbar_decorator_win.cc, where this function was initially adapted from to handle erstwhile Windows rendering issues.

Before

Screenshot 2024-03-15 at 7 02 12 PM

After

Screenshot 2024-03-15 at 7 01 43 PM

Checklist

Release Notes

Notes: Fixed an issue where badge text set using the Badging API no longer appeared correctly on Windows.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/29-x-y PR should also be added to the "29-x-y" branch. target/30-x-y PR should also be added to the "30-x-y" branch. labels Mar 18, 2024
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Mar 18, 2024
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Mar 19, 2024
@codebytere
Copy link
Member Author

Unrelated macOS failure - this PR is Windows-only.

@codebytere codebytere merged commit 433d6c3 into main Mar 19, 2024
24 of 25 checks passed
@codebytere codebytere deleted the fix-badging-windows branch March 19, 2024 11:50
Copy link

release-clerk bot commented Mar 19, 2024

Release Notes Persisted

Fixed an issue where badge text set using the Badging API no longer appeared correctly on Windows.

@trop
Copy link
Contributor

trop bot commented Mar 19, 2024

I have automatically backported this PR to "29-x-y", please check out #41628

@trop trop bot added in-flight/29-x-y and removed target/29-x-y PR should also be added to the "29-x-y" branch. labels Mar 19, 2024
@trop
Copy link
Contributor

trop bot commented Mar 19, 2024

I have automatically backported this PR to "30-x-y", please check out #41629

@trop trop bot added in-flight/30-x-y merged/29-x-y PR was merged to the "29-x-y" branch. merged/30-x-y PR was merged to the "30-x-y" branch. and removed target/30-x-y PR should also be added to the "30-x-y" branch. in-flight/29-x-y in-flight/30-x-y labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/29-x-y PR was merged to the "29-x-y" branch. merged/30-x-y PR was merged to the "30-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Electron v29 app.setBadgeCount() not showing the number on windows
3 participants