Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
- [⚠️ Platform-Specific Notes](#️-platform-specific-notes)
- [Icon Limitations](#icon-limitations)
- [Theme Behavior](#theme-behavior)
- [ProGuard / R8](#proguard--r8)
- [🧪 TrayApp (Experimental)](#-trayapp-experimental)
- [📄 License](#-license)
- [🤝 Contribution](#-contribution)
Expand Down Expand Up @@ -552,6 +553,17 @@ By default, icons are optimized by OS: 32x32px (Windows), 44x44px (macOS), 24x24
- **Windows**: Follows the system theme
- **Linux**: Varies by desktop environment (GNOME/KDE/etc.)

### ProGuard / R8

When building a release package (e.g. via `packageReleaseUberJarForCurrentOS`), you need to add ProGuard rules to keep JNA and library classes since this library relies on reflection. Without these rules, the tray icon may render incorrectly (semi-transparent background, broken click actions, wrong tooltip).

Add the following to your ProGuard rules file:

```
-keep class com.sun.jna.** { *; }
-keep class com.kdroid.composetray.** { *; }
```

# 🧪 TrayApp (Experimental)

`TrayApp` gives your desktop app a **system‑tray/menu‑bar icon** and a **tiny popup window** for quick actions. It’s perfect for quick toggles, mini dashboards, and “control center” UIs.
Expand Down
Loading