diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-11-13 16:40:02 -0800 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-11-13 16:40:02 -0800 |
| commit | 3803f14160c30ac470bc957f8a0f2dbe67c4fd57 (patch) | |
| tree | b7cfc3e0570ef7766e053b89ca038109c353d359 /desktop | |
| parent | 8974b115b69bc25ebf174e8c9637373c4d206325 (diff) | |
| download | rookery-release.tar.gz rookery-release.zip | |
Diffstat (limited to 'desktop')
| -rw-r--r-- | desktop/build.gradle.kts | 2 | ||||
| -rw-r--r-- | desktop/src/main/kotlin/coffee/liz/rookery/desktop/Main.kt | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/desktop/build.gradle.kts b/desktop/build.gradle.kts index d72a319..2a9287b 100644 --- a/desktop/build.gradle.kts +++ b/desktop/build.gradle.kts @@ -23,6 +23,8 @@ compose.desktop { modules("java.instrument", "java.net.http", "jdk.security.auth", "jdk.unsupported") targetFormats(TargetFormat.AppImage, TargetFormat.Deb, TargetFormat.Dmg) macOS { + // The alert penguin (same icns the site/macos-app.sh bundle uses). + iconFile = rootProject.file("site/assets/rookery.icns") infoPlist { extraKeysRawXml = """ <key>NSBluetoothAlwaysUsageDescription</key><string>Connects to your smart cube.</string> diff --git a/desktop/src/main/kotlin/coffee/liz/rookery/desktop/Main.kt b/desktop/src/main/kotlin/coffee/liz/rookery/desktop/Main.kt index 12a856a..0629e23 100644 --- a/desktop/src/main/kotlin/coffee/liz/rookery/desktop/Main.kt +++ b/desktop/src/main/kotlin/coffee/liz/rookery/desktop/Main.kt @@ -27,6 +27,7 @@ import coffee.liz.rookery.ui.AppModel import coffee.liz.rookery.ui.Host import coffee.liz.rookery.ui.RookeryApp import coffee.liz.rookery.ui.handleTimerKey +import coffee.liz.rookery.ui.rememberPenguinIcon import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import kotlinx.coroutines.withContext @@ -257,7 +258,7 @@ fun main(args: Array<String>) { } } Window( - onCloseRequest = ::exitApplication, state = state, title = "rookery", + onCloseRequest = ::exitApplication, state = state, title = "rookery", icon = rememberPenguinIcon(), onPreviewKeyEvent = { handleTimerKey(model, it) }, ) { RookeryApp(model) |
