Skip to content

Commit

Permalink
OSX use 2x icon
Browse files Browse the repository at this point in the history
  • Loading branch information
tka committed Nov 13, 2012
1 parent d1d192f commit 1b0ce5d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/compile_version.rb
@@ -1,5 +1,5 @@
module CompileVersion
REVISION = '54e8b5bef0'
COMPILE_TIME = '201211061217'
REVISION = 'd1d192ff9c'
COMPILE_TIME = '201211131547'
UPDATE_URL = ''
end
13 changes: 10 additions & 3 deletions src/ui/tray.rb
Expand Up @@ -9,9 +9,16 @@ def initialize()
@logger = nil
@history_dirs = App.get_history
@shell = App.create_shell(Swt::SWT::ON_TOP | Swt::SWT::MODELESS)
@standby_icon = App.create_image("icon/16_dark.png")
@active_icon = App.create_image("icon/16_white.png")
@watching_icon = App.create_image("icon/16.png")

if org.jruby.platform.Platform::IS_MAC
@standby_icon = App.create_image("icon/16_dark@2x.png")
@active_icon = App.create_image("icon/16_white@2x.png")
@watching_icon = App.create_image("icon/16@2x.png")
else
@standby_icon = App.create_image("icon/16_dark.png")
@active_icon = App.create_image("icon/16_white.png")
@watching_icon = App.create_image("icon/16.png")
end

@tray_item = Swt::Widgets::TrayItem.new( App.display.system_tray, Swt::SWT::NONE)
@tray_item.image = @standby_icon
Expand Down

0 comments on commit 1b0ce5d

Please sign in to comment.