KiteLogoScope

abstract class KiteLogoScope

The logo topic, inside kiteConfig { logo { ... } }: one icon for every platform.

kiteConfig {
logo {
foreground = file("art/logo.png")
background = color("#102A43")
}
android { logo { foregroundScale = 0.61 } }
}
membermeaningdefault
foregroundthe mark that sits on topnone, and the topic stays off
backgroundcolor("#...") or image(file(...))none
foregroundScalehow much of the canvas the mark fillseach renderer's own ratio
enableddeliver the icon to this platformon once foreground is set
PlatformOutput
Androidic_launcher, ic_launcher_round, both adaptive layers, every density
Android, compileSdk 33+the themed-icon <monochrome> wrapper as well
Appleone AppIcon-1024.png plus a single-image universal Contents.json
Desktop.icns, .ico, and .png wired into Compose Desktop packaging

Apple rejects icons that carry transparency, so the Apple output is always flattened onto the background. Android keeps the two adaptive layers.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val background: Property<LogoBackground>

What sits behind foreground: color("#102A43") or image(file("bg.png")).

Link copied to clipboard
abstract val enabled: Property<Boolean>

Deliver the icon to this platform. Default: on once foreground is set.

Link copied to clipboard
abstract val foreground: RegularFileProperty

PNG holding the artwork that sits on top: your mark, your glyph.

Link copied to clipboard
abstract val foregroundScale: Property<Double>

How much of the icon canvas the foreground may fill, as a ratio in 0 < s <= 1.

Functions

Link copied to clipboard

A solid plate behind the mark.

Link copied to clipboard

A PNG behind the mark.

fun image(file: RegularFile): LogoBackground

A PNG behind the mark, from a Gradle file provider.