nathan
0279fb2852
Fixed adding an entry without specifying an index (this simplifies peer
...
logic)
2017-07-11 01:28:03 +02:00
nathan
9bf01aaf04
Moved Gtk Event Dispatch into it's own class.
2017-07-11 01:27:19 +02:00
nathan
876c5bb591
Code polish
2017-07-10 23:59:23 +02:00
nathan
78b78b80b9
Better checking when setting tooltip text
2017-07-09 16:02:34 +02:00
nathan
3125fb6b0e
WIP tray/menu image size
2017-07-09 01:38:43 +02:00
nathan
ee1be59dc3
Added more logic to getting the screen DPI + scaling.
2017-07-09 01:38:00 +02:00
nathan
22a61f29ca
Added log info for detected tray/menu image sizes.
2017-07-09 00:02:29 +02:00
nathan
10be3e302f
Changed createTransparentImage -> createImage. If a null color is used,
...
it will be transparent
2017-07-08 23:58:08 +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
44c5b11816
AppIndicators will fallback to GtkStatusIndicator or Swing Tray. Less
...
aggressive searcing/loading of libararies (which had it's own Gtk2/Gtk3
bugs)
2017-07-04 15:24:09 +02:00
nathan
f9532841cd
System Tray fix forNow screen-shots a strip, then paints that in
...
addition to colors, as the background of the icon. This solves problems
with Ubuntu (or others) that have a gradient as panel background.
2017-07-04 13:31:05 +02:00
nathan
4207a9e145
code polish
2017-07-03 22:20:01 +02:00
nathan
afaf9faff3
Fixed color define parsing on ubuntu (color defines were scattered
...
throughout the CSS)
2017-07-03 22:19:42 +02:00
nathan
6be7445a77
Added methods to get widget sizes. Code cleanup.
2017-07-03 20:59:09 +02:00
nathan
d10d7983d6
Fixed issues grabbing pixels on linux, when going negative.
2017-07-03 20:57:53 +02:00
nathan
aa33dabb9b
removed getTextPadding. (dead code)
2017-07-03 20:31:59 +02:00
nathan
5368c6db75
Getting the menu image size for linux is now correct
2017-07-03 20:30:59 +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
4b44851bf4
Fixed iterator issues with css parsing
2017-07-03 20:29:18 +02:00
nathan
c81411ef88
comment polish
2017-07-03 15:32:03 +02:00
nathan
8ed5a9df80
Code polish
2017-07-03 15:28:47 +02:00
nathan
bdb62dad4e
Cleaned up CSS parsing
2017-07-03 15:20:39 +02:00
nathan
be636f1ea9
Fixed getting the checkmark image file.
2017-07-03 15:19:23 +02:00
nathan
a6711dacb4
Fixed issues with reading structure data from JNA. Now gets text size
...
and padding VIA pango. Fixed issues with getting colors on linux.
Abstracted Gtk2 from Gtk once Gtk2 deprecated methods are removed.
2017-07-03 15:18:33 +02:00
nathan
0caf22de16
Fixed issues with unbalanced () during parsing CSS attribute values.
2017-07-02 02:34:23 +02:00
nathan
e7e9cddda9
Fixed parsing error for URL() base64 streams
2017-07-01 22:01:03 +02:00
nathan
c3373dd0c5
Updated notes
2017-07-01 21:35:41 +02:00
nathan
686e14401e
WIP getting the size + scale
2017-07-01 21:35:10 +02:00
nathan
203168fe42
Fixed issues with sizing images where the width > height.
2017-07-01 21:34:19 +02:00
nathan
c95051daa9
Added shutdown hook for Swing, fixed issue with GTKLookAndFeel name (is
...
now string, instead of class definition), added L&F to debug output.
Added Ubuntu Unity fallback to Swing when in GTK2 mode.
2017-07-01 20:46:10 +02:00
nathan
e8cf81637a
Custom Swing UI now defaults to the built-in checkmark
2017-07-01 20:39:31 +02:00
nathan
b317d90bb5
Removed hard-coded checkmark bitmap
2017-07-01 20:38:58 +02:00
nathan
dda400f61f
Fixed issue with windows. Code polish
2017-07-01 20:35:57 +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
4c92097ff6
Code polish
2017-07-01 16:14:29 +02:00
nathan
97035637e0
Fixed scaling resize (now aspect ratio is preserved based on height, not
...
width). Renamed parameters to indicate what (width/height) is used.
2017-07-01 16:14:09 +02:00
nathan
2c362c63d1
Code polish
2017-07-01 16:07:31 +02:00
nathan
cf1606f321
Proper padding for checkmark icon now
2017-07-01 00:54:30 +02:00
nathan
6599989e82
Code polish/cleanup. Moved "autodetect" tray logic to it's own method.
2017-06-27 00:19:38 +02:00
nathan
38110f2dff
Added TEMP_DIR to OS. Code polish.
2017-06-26 14:07:45 +02:00
nathan
c4a6d67ed1
Incoming padding is now for both top + bottom (instead of padding*2)
2017-06-26 14:07:12 +02:00
nathan
54298932c2
Only fixes SystemTray issues if AUTO_FIX_INCONSISTENCIES is true
2017-06-26 00:06:28 +02:00
nathan
da76a73ab8
removed debugging
2017-06-25 23:53:34 +02:00
nathan
b8a3736fbf
Code polish/cleanup. Moved icon size determination to another class
2017-06-25 23:51:21 +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
c70c96b5d9
preverification for methods
2017-06-25 23:48:35 +02:00
nathan
69db7215b4
Code polish/cleanup. Added tray icon size adjustments for linux/unix
2017-06-25 22:59:45 +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