Commit Graph

355 Commits

Author SHA1 Message Date
nathan
1cebc72d93 HeavyCheckMark no longer depends on Swing. Can now specify the size of
the checkmark + padding for the image.
2017-05-30 13:02:56 +02:00
nathan
39c1e27a40 Added Heavy Checkmark java rendering 2017-05-29 20:44:38 +02:00
nathan
7673edae4b Code polish for Gtk Checkbox items and ubuntu 2017-05-29 20:43:40 +02:00
nathan
15029d0256 Moved GTK Theme methods to it's own class (it was a lot). Suppressed GTK
warnings during startup.
2017-05-29 19:02:36 +02:00
nathan
8181b72509 Moved undocumented GTK3 methods to GTK3 class 2017-05-14 16:58:15 +02:00
nathan
c4b27add55 No longer uses static sizes for tray size 2017-05-14 14:49:34 +02:00
nathan
52fc2c3a4a Added GtkPopover. Fixed issue with recursive color definitions. Code
cleanup
2017-05-14 14:48:48 +02:00
nathan
eb702327d5 Code polish 2017-05-10 15:24:30 +02:00
nathan
ca56dc9215 Code polish 2017-05-10 15:22:41 +02:00
nathan
736b098e86 Work for issue #42, detecting colors for the checkbox in linux via CSS
theme, RC theme, and raw GTK values.
2017-05-10 15:18:18 +02:00
nathan
1bcf51c755 Moved JnaHelper + windows JNA to util project 2017-03-10 15:56:37 +01:00
nathan
6b1d0c4a12 Updated comments WRT component sizing information 2017-03-05 00:19:20 +01:00
nathan
0455507f51 Added comments 2017-03-03 15:56:39 +01:00
nathan
ee5f509e76 Fixed issue with scaling fonts incorrectly on Swing UIs. 2017-02-23 01:31:05 +01:00
nathan
29186db011 Updated version information 2017-02-22 16:25:23 +01:00
nathan
5498d3633c Simpler logging when the tray is loaded when DEBUG=false. 2017-02-22 14:41:54 +01:00
nathan
7e89c7b583 Fixed missing AWT types (separator and checkbox) not getting added to
the menu.
2017-02-22 14:34:40 +01:00
nathan
fe6b09e8dd Fixed erroneous warning messages for windows/mac. 2017-02-22 14:32:30 +01:00
nathan
f4a538a459 Updated version for release 2017-02-21 12:33:05 +01:00
nathan
c2209bfd5f Turned off Debug (prep for release) 2017-02-21 12:24:10 +01:00
nathan
c297201133 Fixed casting warnings for reflection 2017-02-20 10:46:40 +01:00
nathan
ad923952c8 Tray type is back to automatic (no longer testing) 2017-02-19 11:29:05 +01:00
nathan
238e5d8afa Moved DeafultUI implementations to Utils 2017-02-17 16:23:08 +01:00
nathan
0e5d52352b Updated Swing menu item behavior to permit customization. 2017-02-17 15:50:42 +01:00
nathan
455642caf0 Removed dead/unused code 2017-02-17 15:44:41 +01:00
nathan
8dddee95dd WIP for checkboxes on AppIndicators 2017-01-30 02:44:48 +01:00
nathan
e4ff8da145 Removed dead methods 2017-01-30 02:26:18 +01:00
nathan
3d510e7092 Removed commented out/dead code 2017-01-30 01:56:12 +01:00
nathan
042bf973c7 Code cleanup/polish for Swing/Awt tray types 2017-01-30 01:47:22 +01:00
nathan
3c24139544 Removing logic to choose between swing/native menus (Swing w/
appindicators is broken)
2017-01-30 01:34:36 +01:00
nathan
ec9499c1bb Added support for tooltips. note: AppIndicators DO NOT support tooltips 2017-01-30 00:25:01 +01:00
nathan
9e3af1a299 Code polish for extension 2017-01-30 00:13:02 +01:00
nathan
9abc2bdc5f Menu entry font size is also adjusted (if necessary) based on scaling
of UI. This impact is specifically for swing menus, notably windows.
2017-01-26 14:10:33 +01:00
nathan
1d3b65f4c4 Added comments 2017-01-26 14:09:07 +01:00
nathan
3b80b126ed Fixed issue on windows/swing where menu entries with no icon are the
wrong size.
2017-01-25 23:03:05 +01:00
nathan
a018a76185 WIP icon sizes for windows/swing. Renamed GetTransparatenImageAsImage
-> AsBufferedImage
2017-01-25 22:42:25 +01:00
nathan
50076367ee Optimized status entry for Swing menus 2017-01-25 22:38:01 +01:00
nathan
1d9921c22d Fixed issue on windows with unchecked icons 2017-01-25 22:29:55 +01:00
nathan
430309a3f9 WIP windows menu scaling 2017-01-25 22:17:43 +01:00
nathan
cd51b756dd Added ability for swing menu's to change size in scale with the display. 2017-01-25 21:49:55 +01:00
nathan
bc5871d920 Change peer/native class name to make more sense when it's swing 2017-01-25 21:48:15 +01:00
nathan
03e56adc02 Fixed menu image icon scaling for windows. (it is now disabled) 2017-01-25 21:12:00 +01:00
nathan
c524585dec API Changed SystemTray.get() -> SystemTray.getSwing() to be
consistent with getNative() and to indicate that neither are preferred.
2017-01-21 15:49:58 +01:00
nathan
687035c3f1 Proper fix for checkbox state activating callbacks in GTK. 2017-01-21 14:58:49 +01:00
nathan
ea83c7e006 Added option to debug EDT 2017-01-21 14:58:00 +01:00
nathan
8d1e4bddaf fix for GTK triggering events when setting the checkbox state. Added
checks to only dispatch events if the checkbox state is actually
changed.
2017-01-19 01:23:36 +01:00
nathan
76b006023c Updated comments 2017-01-19 01:19:20 +01:00
nathan
e61723dd5b Updated SystemTray and Extension for Debian 8.5/8.6 + Gnome3. It does
not work (on a default install)
2016-12-30 00:04:16 +01:00
nathan
b9ab6a79c2 fixed comments 2016-12-29 23:01:37 +01:00
nathan
f426e2d08d Fixed errors with GObject access on FreeBSD + Gnome3. Added text to
warning logs.
2016-12-29 22:55:33 +01:00
nathan
9727662aca Added comments to Gtk 2016-12-29 22:44:28 +01:00
nathan
3919e1ce9e Fixed issues with isGnome() detection on Unix (FreeBSD) 2016-12-29 13:05:32 +01:00
nathan
e57724229e change package name to lowercase 2016-12-28 23:54:23 +01:00
nathan
c7e90049e6 Fixed isLoaded issues for Gtk and AppIndicator 2016-12-28 23:54:06 +01:00
nathan
c12eacf3fc Fixed package name (is now lowercase) 2016-12-28 23:48:06 +01:00
nathan
3ee25b3935 Updated logic for loading Gtk/AppIndicator based on OS info 2016-12-28 22:14:01 +01:00
nathan
88707b5786 Renamed OsUtil -> OSUtil 2016-12-28 21:43:36 +01:00
nathan
8dfd2d3317 Added isGtk3, changed static fields to be final. 2016-12-28 21:41:49 +01:00
nathan
e3fbec2c55 Changed exception catching in ImageUtils to a larger scope
(IOException -> Exception). Fixed issue with converting a Image to
InputStream for size check operation.
2016-12-28 00:59:46 +01:00
nathan
c01f12fcaf Added UbuntuGnome. Fixed warning output for elementaryOS. 2016-12-27 01:29:42 +01:00
nathan
86ceefc5d3 Fixed issue with AppIndicators setting the indicator name in the
wrong location
2016-12-27 01:29:01 +01:00
nathan
e17ff9082e code polish 2016-12-26 23:32:11 +01:00
nathan
4e009340fa Refactored OS utils into their own class (b/c of dependency issues) 2016-12-26 23:18:39 +01:00
nathan
297d68e06e Now sets the systemtray also to null it fails to load. 2016-12-26 11:34:57 +01:00
nathan
2e55b34ec8 Fix for UbuntuGnome (which has AppIndicators + gnome-shell). Code polish 2016-12-26 01:17:46 +01:00
nathan
48cde07ff5 Code polish, added scaling factor for menus icons 2016-12-26 00:45:59 +01:00
nathan
7bb6129d34 Code polish 2016-12-26 00:30:01 +01:00
nathan
849304467c code polish 2016-12-26 00:18:42 +01:00
nathan
c0b3e9260c Updated comments, added BASIC support for Arch. 2016-12-25 23:53:19 +01:00
nathan
fdabacdf4b Moved windows version info check to OS.java 2016-12-25 21:41:23 +01:00
nathan
2c16b2ca0b Added method to check if topIcons is installed 2016-12-25 21:40:46 +01:00
nathan
8ed9efa289 Added fallback appindicator check for GTK2 2016-12-25 20:20:23 +01:00
nathan
f437c1ddf9 Tweaked extension description 2016-12-25 20:19:19 +01:00
nathan
389c2a0ed4 Fixed issue for possible empty extensions 2016-12-25 16:56:03 +01:00
nathan
ec124384e7 Move other OS info detection methods to OS.java. Fixed Fedora 25 KDE 2016-12-25 00:45:00 +01:00
nathan
c48759725e Fixed system tray for fedora 24 2016-12-24 01:03:06 +01:00
nathan
91c401e389 Fixed system tray icon scaling issue 2016-12-24 01:02:23 +01:00
nathan
5c37796779 Fixed issues with detecting/installing on fedora 23 2016-12-23 23:50:51 +01:00
nathan
b1a41e06ba Fixed various extension install errors for gnome. 2016-12-23 23:50:05 +01:00
nathan
10ba55b9e7 Code cleanup 2016-12-23 22:32:31 +01:00
nathan
ce12c0c208 Fixed comment typos 2016-12-23 21:45:24 +01:00
nathan
773b83eb8c Fixed issues on MacOSX for right-click tray icon event 2016-12-23 16:51:51 +01:00
nathan
53647c8d4d Added more comments for eOS. 2016-12-23 12:32:54 +01:00
nathan
726a1034b0 Fixed issues with checkboxes not working for AWT/GTK 2016-12-23 12:18:14 +01:00
nathan
4fe1ebf14f Added comments for TrayType. Added "AUTO_FIX_INCONSISTENCIES" to
automatically try to resolve issues with various OS configurations.
Cleaned up exceptions (now just error log and NULL menu value)
2016-12-23 11:42:46 +01:00
nathan
1308b5f602 Fixed timeout. 2016-12-23 10:11:22 +01:00
nathan
a3118a07f4 Fixed issues with calling gtk_widget_destroy too much. Fixed
threading issue with isDispatch.
2016-12-23 02:18:01 +01:00
nathan
7c6f3ca77b updated comments 2016-12-19 11:59:08 +01:00
nathan
022e3e1036 Updated dispatchAndWait, updated exceptions, update gtkUpdateThread 2016-12-18 23:21:06 +01:00
nathan
6cce5cd1cb Added comments for gtk2/3. Code polish, fixed potential issues with
race conditions and finally blocks.
2016-12-17 13:13:21 +01:00
nathan
b3b4300179 Changed synchronized -> volatile, changed how synchronized works for
menuEntries Changed setState -> setChecked for checkbox entry
2016-12-16 22:45:27 +01:00
nathan
d104c7e510 Added extra error info when the dispatch queue is buggered up 2016-12-16 22:40:12 +01:00
nathan
a23cb3bf22 Added pantheon (ElementaryOS) detection 2016-12-16 21:57:01 +01:00
nathan
d4ba8d9fae Comment/error formatting 2016-12-13 16:21:41 +01:00
nathan
424135f926 Added extra checks if running as root + using AppIndicators. There
are dbus restrictions that will prevent the indicator from showing in
 this combination
2016-12-12 01:14:43 +01:00
nathan
6a6fb3b140 Changed incorrect error -> debug log 2016-12-12 01:10:02 +01:00
nathan
623906b154 Adjusted to use the new utils ShellProcess (no longer ends with newline) 2016-12-12 01:09:12 +01:00
nathan
cb2702922a Fixed typo with loading libappindicator1, added comments 2016-12-12 01:08:34 +01:00
nathan
82b148e32b Updated comments 2016-12-11 23:42:14 +01:00
nathan
c57533dde8 Added extra checks in case XDG_CURRENT_DESKTOP is not available as a
system environment
2016-12-11 23:37:45 +01:00