Commit Graph

36 Commits

Author SHA1 Message Date
nathan
87222f8483 AppIndicator does not support BOLD text in menus, since we cater to
the lowest common denominator, we remove bold text for status. We
change to use a menu separator to define a "status" at the top of the
 menu
2016-10-08 23:32:21 +02:00
nathan
82ab3fc7bd Code polish, cleaned up comments 2016-10-08 21:53:43 +02:00
nathan
381e629e72 Code polish 2016-10-08 21:50:37 +02:00
nathan
000d069bfc windows/mac swing menus working with keyboard navigation/mnemonics 2016-10-08 21:47:53 +02:00
nathan
d4ac42d21f WIP adding mnemonic support for windows/mac 2016-10-08 17:42:05 +02:00
nathan
f0fe9fa9a2 Fixed issue with keyboard navigation/mnemonics on popup window. 2016-10-08 17:41:21 +02:00
nathan
42d053398f Fixed issues with windows/mac 2016-10-04 16:59:22 +02:00
nathan
62c73e8f32 Fixed gtk entry/sub-menu removal for SWT. code polish 2016-10-04 15:36:00 +02:00
nathan
b8cd5c875f Code polish 2016-10-04 00:21:40 +02:00
nathan
7e2834c0cb Added setEnabled() for menu+entries, misc bug fixes for windows 2016-10-03 23:12:00 +02:00
nathan
b1398392c7 Fixed windows problem 2016-10-03 22:28:24 +02:00
nathan
b41c62c898 WIP menu cleanup 2016-10-03 20:14:09 +02:00
nathan
14ff3fae06 Fixed issues with submenu's and our popup auto-hide tracker 2016-09-29 13:07:58 +02:00
nathan
05231587d2 Code polish, fixed newly craeted JPopupMenu border + margin info. 2016-09-29 03:23:33 +02:00
nathan
b354daab68 WIP swing submenus 2016-09-29 03:00:29 +02:00
nathan
bf3cb8de11 Refactored out Menu object (from the SystemTray object). Converted
SystemTray into a crossPlatform proxy. WIP submenus
2016-09-29 01:44:11 +02:00
nathan
de8d1d8b07 Fixed swing border/margins for menus/entries 2016-09-28 18:35:25 +02:00
nathan
280da3b0b0 Code polish 2016-09-28 17:20:13 +02:00
nathan
83c865a51c Added setImage from a file 2016-09-28 17:01:11 +02:00
nathan
ddcec4cb68 Refactored out the "menu", on preparation for submenus 2016-09-28 15:33:22 +02:00
nathan
c9b0cce1e3 Refactored status entries, added spacers to menu 2016-09-28 02:51:06 +02:00
nathan
34588de6b7 Added 'hasImage()' to menu-entry. Fixed text entry alignment issues
for GTK menus
2016-09-27 00:50:51 +02:00
nathan
19eb4df547 Added comments 2016-09-26 21:45:37 +02:00
nathan
6a9b606e51 Fixed image scaling query for Ubuntu 16.06, changed all debug logs to
'debug'. Added a separate menu entry size (independent of tray size)
2016-09-26 20:56:42 +02:00
nathan
ad066c6e42 Image scaling + caching + error-icon if problems, fix for windows
'auto'
scaling
2016-09-26 02:06:27 +02:00
nathan
5b469b65ed Added comments for bugs on linux 2016-09-22 15:33:02 +02:00
nathan
6fdbe8ac83 Abstracted 'dispatch(Runnable)' so that all updates to the SystemTray
occur on the dispatch thread. This will resolve any race condition
 issues when creating, then (before it's actually created) trying to
 modify a menu entry.
2016-04-05 14:07:41 +02:00
nathan
3add3419a8 Put getExtension back into ImageUtil. There were too many dependencies necessary when including FileUtil in the build process 2016-02-21 01:52:55 +01:00
nathan
a2a1c092cb Fixed issue with icon scaling in popup menu 2016-02-21 00:56:30 +01:00
nathan
3d22f97026 Added movement delta for hiding popup 2016-02-21 00:56:14 +01:00
nathan
5c2dc1fdc6 code polish 2016-02-21 00:55:54 +01:00
nathan
a68c79182d Cleaned up memory leaks. Added SystemTray.getStatus(). Cleaned up support for SWT. 2016-02-15 13:27:33 +01:00
nathan
3507869c35 Removed checked expections (now they are unchecked). Added better detection of JavaFX. 2016-02-14 17:51:35 +01:00
nathan
c1b6c1a723 Added GTK3 support (now libappindicator3 works correctly with regards to showing menu icons). Added support for setting icons via URL and InputStream. Moved all GTK operations to a single thread. Moved error logs from System.err -> logger. Made SystemTray a singleton (it will no longer have the java-side get accidentally garbage collected). Update documentation 2016-02-13 15:06:19 +01:00
nathan
8b109f6d1c Converted SystemTray to use a singleton pattern for ease of use. Icon *must* be set to see it (obviously). Updated Readme.md example. 2016-02-12 02:30:33 +01:00
nathan
801baad635 Added SystemTray.getVersion(), added URL and InputStream (to all methods that previous accepted String) for setting images in the menu/tray. Moved package out of util. 2016-02-12 01:51:15 +01:00