Skip to content

Commit

Permalink
Attempt to adjust the Updates image button template and badge code to…
Browse files Browse the repository at this point in the history
… address display issues
  • Loading branch information
gregneagle committed Mar 15, 2016
1 parent d5a0af5 commit bad0cb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def imageNamed_withCount_(self, name, count):
badgeOutlineWidth, badgeOutlineHeight)

# shift the rects around to look better. These are magic numbers.
badgeStringRect = NSOffsetRect(badgeStringRect, -4.75, -1)
badgeOutlineRect = NSOffsetRect(badgeOutlineRect, -1, -4)
badgeStringRect = NSOffsetRect(badgeStringRect, -4.75, -2)
badgeOutlineRect = NSOffsetRect(badgeOutlineRect, -1, -5)

# our erase rect needs to be a little bigger than the badge itself
badgeEraseRect = NSInsetRect(badgeOutlineRect, -1.5, -1.5)
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bad0cb9

Please sign in to comment.