Created
February 17, 2009 16:50
-
-
Save greatseth/65828 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/commit_list_item.rb b/lib/commit_list_item.rb | |
| index 5969894..14dd083 100644 | |
| --- a/lib/commit_list_item.rb | |
| +++ b/lib/commit_list_item.rb | |
| @@ -18,11 +18,11 @@ class CommitListItem < Shoes::Widget | |
| def draw_contents | |
| @slot.clear do | |
| - if @selected | |
| + @background = if @selected | |
| background green | |
| else | |
| background @default_bg_color | |
| - @hover_bg = background(green).hide | |
| + # @hover_bg = background(green).hide | |
| end | |
| gravatar_size = 36 | |
| @@ -53,8 +53,8 @@ class CommitListItem < Shoes::Widget | |
| end | |
| if not @selected | |
| - hover { @hover_bg.show } | |
| - leave { @hover_bg.hide } | |
| + hover { @background.fill = green } | |
| + leave { @background.fill = @default_bg_color } | |
| end | |
| click do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment