Skip to content

Commit

Permalink
Allow for display scale change.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcw authored Dec 12, 2024
1 parent 32d0e5c commit 6cbc48c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ class AppGroup {
}

updateBadgesTextSize() {
const badgeTextSize = Math.round(this.iconBox.width / 2.5);
const badgeTextSize = Math.round(this.iconBox.width / 2.5 / global.ui_scale);
const badgePadding = Math.round(badgeTextSize / 4);
const sizeStyle = `font-size: ${badgeTextSize}px; padding-left: ${badgePadding}px; padding-right: ${badgePadding}px;`;
this.windowsBadgeLabel.set_style(sizeStyle);
Expand Down

0 comments on commit 6cbc48c

Please sign in to comment.