App icon: winged-bubble adaptive icon (Android) + window/jpackage icon (desktop); concept art in app/icons/

This commit is contained in:
ARIA committed 2026-08-20 19:48:57 +02:00
1 parent ccc40213ca
commit 8b40eb6e4c
19 files changed
+392

No files matched your search

@@ -21,6 +21,7 @@ import iris.platform.DesktopBridge
import iris.platform.DesktopSecureStore
import java.awt.Color
import java.awt.Graphics2D
import javax.imageio.ImageIO
import java.awt.RenderingHints
import java.awt.SystemTray
import java.awt.event.WindowEvent
@@ -45,6 +46,10 @@ import kotlinx.serialization.json.jsonPrimitive
*/
private val windowJson = File(System.getProperty("user.home"), ".iris/window.json")
// Window/taskbar icon (src/main/resources/icon.png).
private class IrisDesktop
private val windowIcon = ImageIO.read(IrisDesktop::class.java.getResource("/icon.png")!!).toComposeImageBitmap()
// Tray icon colors (ARGB). .toInt(): the literals exceed the Int range.
private const val TRAY_OFFLINE = 0xFF9E9E9E.toInt()
private const val TRAY_CONNECTING = 0xFFFFC107.toInt()
@@ -107,6 +112,7 @@ fun main() {
}
Window(
icon = BitmapPainter(windowIcon),
onCloseRequest = {
if (closeToTray.get()) {
composeWindow?.isVisible = false
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB