Skip to content

Commit

Permalink
Bug 1145380 - No touch feedback on home screen links
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Mosbah committed Jul 15, 2015
1 parent 05cbfc8 commit 4e6367d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Client/Frontend/Widgets/ThumbnailCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ struct ThumbnailCellUX {
/// Ratio of width:height of the thumbnail image.
static let ImageAspectRatio: Float = 1.5
static let TextSize = UIConstants.DefaultSmallFontSize
static let SelectedBackgroundColor = UIAccessibilityDarkerSystemColorsEnabled() ? UIColor.blackColor() : UIColor.lightGrayColor()
static let BorderColor = UIColor.blackColor().colorWithAlphaComponent(0.2)
static let LabelFont = UIConstants.DefaultSmallFont
static let LabelColor = UIAccessibilityDarkerSystemColorsEnabled() ? UIColor.blackColor() : UIColor.darkGrayColor()
Expand Down Expand Up @@ -148,4 +149,13 @@ class ThumbnailCell: UICollectionViewCell {
}
}
}

override var selected: Bool {
willSet {
super.selected = selected
if (selected) {
self.backgroundColor = ThumbnailCellUX.SelectedBackgroundColor
}
}
}
}

0 comments on commit 4e6367d

Please sign in to comment.