public
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/Caged/gitnub.git
Click here to lend your support to: gitnub and make a donation at www.pledgie.com !
gitnub / BrowserToolbarView.rb
100644 19 lines (14 sloc) 0.4 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# BrowserToolbarView.rb
# GitNub
#
# Created by Justin Palmer on 4/27/08.
# Copyright (c) 2008 Active Reload, LLC. All rights reserved.
#
 
require 'osx/cocoa'
 
class BrowserToolbarView < OSX::NSView
 
  def drawRect(rect)
    gradient = NSGradient.alloc.initWithStartingColor_endingColor(NSColor.darkGrayColor, NSColor.controlShadowColor)
    gradient.drawInRect_angle(bounds, 90.0)
  end
 
end