Skip to content

Commit

Permalink
Added additional tray icon styles
Browse files Browse the repository at this point in the history
  • Loading branch information
x211321 committed Dec 29, 2022
1 parent fbfb362 commit ecccaa1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 1 deletion.
Binary file modified assets/tray/color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/tray/color_square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tray/outline_black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/tray/outline_black_square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tray/outline_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/tray/outline_white_square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions lib/tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ def UpdateIcon(self):

self.SetIcon(wx.Icon(icon, wx.BITMAP_TYPE_PNG), _("RGB Config"))

# Test code for tray icon via wx.BitmapBundle
#
# bitmaps = [ wx.Bitmap('./assets/tray/%s/16x16.png' % self.parent.preferences["trayIconStyle"]),
# wx.Bitmap('./assets/tray/%s/22x22.png' % self.parent.preferences["trayIconStyle"]),
# wx.Bitmap('./assets/tray/%s/24x24.png' % self.parent.preferences["trayIconStyle"]),
# wx.Bitmap('./assets/tray/%s/32x32.png' % self.parent.preferences["trayIconStyle"]),
# wx.Bitmap('./assets/tray/%s/64x64.png' % self.parent.preferences["trayIconStyle"]),
# wx.Bitmap('./assets/tray/%s/128x128.png' % self.parent.preferences["trayIconStyle"]),
# wx.Bitmap('./assets/tray/%s/256x256.png' % self.parent.preferences["trayIconStyle"]),
# ]
#
# self.SetIcon(wx.BitmapBundle.FromBitmaps(bitmaps), _("RGB Config"))

def on_toggle_gui(self, event):
if self.parent.IsShown():
self.parent.Hide()
Expand Down
2 changes: 1 addition & 1 deletion lib/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.4.7"
VERSION = "0.4.8"

0 comments on commit ecccaa1

Please sign in to comment.