Skip to content

Commit

Permalink
Do not colorize recently added cell background
Browse files Browse the repository at this point in the history
Keep using clear background.
  • Loading branch information
wutschel committed May 20, 2024
1 parent 983a806 commit 2127eae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 1 addition & 10 deletions XBMC Remote/DetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1837,16 +1837,7 @@ - (UICollectionViewCell*)collectionView:(UICollectionView*)cView cellForItemAtIn
if (stringURL.length) {
[cell.posterThumbnail sd_setImageWithURL:[NSURL URLWithString:stringURL]
placeholderImage:[UIImage imageNamed:displayThumb]
options:SDWebImageScaleToNativeSize
completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *url) {
UIColor *averageColor = [Utilities averageColor:image inverse:NO autoColorCheck:YES];
CGFloat hue, saturation, brightness, alpha;
BOOL ok = [averageColor getHue:&hue saturation:&saturation brightness:&brightness alpha:&alpha];
if (ok) {
UIColor *bgColor = [UIColor colorWithHue:hue saturation:saturation brightness:0.2 alpha:alpha];
cell.backgroundColor = bgColor;
}
}];
options:SDWebImageScaleToNativeSize];
}
else {
cell.posterThumbnail.image = [UIImage imageNamed:displayThumb];
Expand Down
2 changes: 1 addition & 1 deletion XBMC Remote/RecentlyAddedCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ - (id)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
self.restorationIdentifier = @"recentlyAddedCell";
self.backgroundColor = UIColor.grayColor;
self.backgroundColor = UIColor.clearColor;
CGFloat labelHeight = (floor)(frame.size.height * 0.18);
CGFloat genreHeight = (floor)(frame.size.height * 0.11);
CGFloat yearHeight = (floor)(frame.size.height * 0.11);
Expand Down

0 comments on commit 2127eae

Please sign in to comment.