Repository navigation
Round the corners of the Linux app icon - #62
Merged
Merged
Conversation
macOS masks the icon's corners at display time, so the asset is a full-bleed square that Linux shells drew with hard corners. The mask covers the full tile at the macOS corner ratio rather than an inset body, since most Linux app icons fill their tile and an inset one reads as undersized in the dock. Release verification checks each icon's size rather than its pixels, so a redesigned icon still passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The app icon asset is a full-bleed square because macOS masks its corners at display time. Linux shells draw the PNG as it is, so agterm shows up in the GNOME dock and app grid as a hard-cornered square next to rounded icons.
Solution
stage-linux.shandinstall-linux.shmask each hicolor size with a rounded rectangle at the macOS corner ratio (22.4% of the side). The mask covers the full tile rather than an inset body, since most Linux app icons fill their tile and an inset one looks undersized in the dock. The pixmap is now the rounded 256x256 copy rather than the raw source. Without ImageMagick, staging still installs the unrounded source as the pixmap.verify-linux-packages.shchecks that every icon size is present at its dimensions. It checks size, not pixels, so a redesigned icon still passes.Checked in the GNOME dock on CachyOS after a system install.
This is visual polish with nothing to drive, so it adds no control API or CLI coverage.