f9644463a9
Between Electron `0.30.x` and `0.37.x`, the tray icon stopped automatically inverting template images when highlighted. NSImageView normally uses the correct color for template images magicaly, but I think the addition of event handlers in the container view prevents the image view from determining highlight state. This PR switches to drawing the image manually. The `drawRect` function decides whether to use `image` or `alternateImage`(pressed image) and then if that image is marked as a template, it fills it with the same color used for the text before drawing it. |
||
---|---|---|
.. | ||
cocoa | ||
views | ||
win | ||
x | ||
accelerator_util.cc | ||
accelerator_util.h | ||
accelerator_util_mac.mm | ||
accelerator_util_views.cc | ||
atom_menu_model.cc | ||
atom_menu_model.h | ||
file_dialog.h | ||
file_dialog_gtk.cc | ||
file_dialog_mac.mm | ||
file_dialog_win.cc | ||
message_box.h | ||
message_box_gtk.cc | ||
message_box_mac.mm | ||
message_box_win.cc | ||
tray_icon.cc | ||
tray_icon.h | ||
tray_icon_cocoa.h | ||
tray_icon_cocoa.mm | ||
tray_icon_gtk.cc | ||
tray_icon_gtk.h | ||
tray_icon_observer.h | ||
tray_icon_win.cc |