Commit Graph

41 Commits

Author SHA1 Message Date
nathan
78b78b80b9 Better checking when setting tooltip text 2017-07-09 16:02:34 +02:00
nathan
133cb9f8f8 Fixed race condition between bind() and add(), where they could both add
an entry. Now entries will only be added if they have not already been
 added.
2017-07-05 00:08:07 +02:00
nathan
923ff023b0 Changed how the checkmark is rendered. now specifiy a color, the size
one wants for the check, and the size one wants for the resulting image.
 If the checkmark is smaller than the size of the resulting image, then
 the checkmark will be centered in it.
2017-07-03 20:30:14 +02:00
nathan
c81411ef88 comment polish 2017-07-03 15:32:03 +02:00
nathan
c989de8cd8 Getting the Checkmark file name can now be overridden by the
SWING_UI paramater.
2017-07-01 16:23:51 +02:00
nathan
fd492a74e9 Swing checkbox now extends Swing MenuItem. Fixed size of checkmark 2017-07-01 16:16:49 +02:00
nathan
f64feecaed Correct (based on menu item size) transparent icon for spacing 2017-07-01 16:16:15 +02:00
nathan
9dbee8cfc5 GTK now starts up when on linux/unix, regardless of tray type. 2017-06-25 23:50:22 +02:00
nathan
2c2e835ab2 Swing tray (on linux/unix) will now initialize GTK (there are GTK
methods needed, so it makes sense to start GTK)
2017-06-25 22:56:40 +02:00
nathan
eb702327d5 Code polish 2017-05-10 15:24:30 +02: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
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
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
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
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
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
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
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
f426e2d08d Fixed errors with GObject access on FreeBSD + Gnome3. Added text to
warning logs.
2016-12-29 22:55:33 +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
2e55b34ec8 Fix for UbuntuGnome (which has AppIndicators + gnome-shell). Code polish 2016-12-26 01:17:46 +01:00
nathan
5c37796779 Fixed issues with detecting/installing on fedora 23 2016-12-23 23:50:51 +01:00
nathan
726a1034b0 Fixed issues with checkboxes not working for AWT/GTK 2016-12-23 12:18:14 +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
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
fef02fba79 Code cleanup/polish. Can now add JMenu, JCheckboxMenuItem,
JSeparator, and JMenuItem as components that will get converted and
added to our menu.
2016-10-31 11:32:49 +01:00
nathan
568fb95ee6 Cleaned up caching - now is based on file hash, instead of cache
names, which could lead to heisenbugs. Everything always caches now
based on hash of input
2016-10-24 02:39:40 +02:00
nathan
599dabf4ef Code polish, documentation, cleanup for API changes 2016-10-24 01:43:32 +02:00
nathan
daff5a8e48 Fininshed round 2 of API changes (native/swing UI finished) 2016-10-23 23:27:13 +02:00
nathan
d665f29f28 new API front-end + bound backend for SwingUI 2016-10-21 12:36:55 +02:00
nathan
a07c5e8ab8 Changed action callback to ActionListener. Added checkbox. 2016-10-17 11:47:25 +02:00
nathan
a26522411e Code cleanup, GTK.dispatchAndWait refactor, fixed issue with hiding
the tray icon in MacOSx.
2016-10-16 15:58:02 +02:00
nathan
109def7db2 WIP: Getting windows DPI checks in order. 2016-10-12 19:14:44 +02:00
nathan
7a2909abca WIP: native + swing menus 2016-10-11 15:23:58 +02:00