Skip to content

Instantly share code, notes, and snippets.

@greatseth
Created February 17, 2009 16:50
Show Gist options
  • Select an option

  • Save greatseth/65828 to your computer and use it in GitHub Desktop.

Select an option

Save greatseth/65828 to your computer and use it in GitHub Desktop.
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