class IconSet
Draws the favicon, app icon and splash screen files from the data of one source image.
Every size is drawn from the source itself, never from a smaller copy, and a source is never enlarged: a size larger than the source is left out, or the source sits smaller in the middle of a larger canvas.
Constants
| FAVICON_SIZES |
|
| FAVICON_PNG_SIZE |
|
| APP_ICON_MIN_SIZE |
|
| MASKABLE_SAFE_ZONE |
Android crops a maskable icon to a shape of its choosing, keeping only a circle 80% of the icon's width, so the image is drawn inside it. |
| SPLASH_ICON_SIZE |
Points across the app icon on a splash screen: the size the 80% safe zone of a 128-point maskable icon has on Android. |
| LARGEST_SCREEN |
|
| SCREEN_QUALITY |
|
Methods
array
appIcon(string $source, string $background)
The home screen icons, and a favicon for forums that have no other.
string
square(string $source, int $size, string|null $background = null, float $content = 1.0)
No description
Details
at
line 49
__construct( ImageManager $images)
at
line 57
array
favicon(string $source)
at
line 79
array
appIcon(string $source, string $background)
The home screen icons, and a favicon for forums that have no other.