Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wutschel committed May 19, 2024
1 parent 391177b commit 802dc69
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions XBMC Remote/DetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ - (void)layoutTVShowCell:(UIView*)cell useDefaultThumb:(BOOL)useFallback imgView
// If loaded, we use a dark background
if (!useFallback) {
// Gray:28 is similar to systemGray6 in Dark Mode
cell.backgroundColor = [Utilities getGrayColor:28 alpha:1.0];
cell.backgroundColor = UIColor.yellowColor;//[Utilities getGrayColor:28 alpha:1.0];
}
// If not loaded, use default background color and poster dimensions for default thumb
else {
Expand All @@ -959,14 +959,14 @@ - (void)layoutTVShowCell:(UIView*)cell useDefaultThumb:(BOOL)useFallback imgView
// When in grid or fullscreen view
else {
// Gray:28 is similar to systemGray6 in Dark Mode
cell.backgroundColor = [Utilities getGrayColor:28 alpha:1.0];
cell.backgroundColor = UIColor.blueColor;//[Utilities getGrayColor:28 alpha:1.0];
}
}
// Other tabs (e.g. list of episodes) use default layout
else {
if (enableCollectionView) {
// Gray:28 is similar to systemGray6 in Dark Mode
cell.backgroundColor = [Utilities getGrayColor:28 alpha:1.0];
cell.backgroundColor = UIColor.greenColor;//[Utilities getGrayColor:28 alpha:1.0];
}
else {
cell.backgroundColor = [Utilities getSystemGray6];
Expand Down Expand Up @@ -1685,7 +1685,7 @@ - (void)setFlowLayoutParams {
flowLayout.minimumLineSpacing = cellMinimumLineSpacing;
flowLayout.minimumInteritemSpacing = cellMinimumLineSpacing;
}
flowLayout.collectionView.backgroundColor = UIColor.clearColor;
flowLayout.collectionView.backgroundColor = UIColor.cyanColor;
}

#pragma mark - UICollectionView methods
Expand Down Expand Up @@ -1808,7 +1808,7 @@ - (UICollectionViewCell*)collectionView:(UICollectionView*)cView cellForItemAtIn
cell.posterThumbnail.frame = cell.bounds;
[self setCellImageView:cell.posterThumbnail cell:cell dictItem:item url:stringURL size:CGSizeMake(cellthumbWidth, cellthumbHeight) defaultImg:displayThumb];
if (!stringURL.length) {
cell.posterThumbnail.backgroundColor = [Utilities getGrayColor:28 alpha:1.0];
cell.posterThumbnail.backgroundColor = UIColor.redColor;//[Utilities getGrayColor:28 alpha:1.0];
}
// Set label visibility based on setting and current view
if (hiddenLabel || stackscrollFullscreen) {
Expand Down Expand Up @@ -2495,7 +2495,7 @@ - (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSI
frame.size.height = cellHeight;
cell.urlImageView.frame = frame;
cell.urlImageView.autoresizingMask = UIViewAutoresizingNone;
cell.urlImageView.backgroundColor = UIColor.clearColor;
cell.urlImageView.backgroundColor = UIColor.redColor;

UILabel *title = (UILabel*)[cell viewWithTag:XIB_JSON_DATA_CELL_TITLE];
UILabel *genre = (UILabel*)[cell viewWithTag:XIB_JSON_DATA_CELL_GENRE];
Expand Down
3 changes: 2 additions & 1 deletion XBMC Remote/PosterCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ - (id)initWithFrame:(CGRect)frame {
_posterThumbnail = [[UIImageView alloc] initWithFrame:CGRectMake(borderWidth, borderWidth, frame.size.width - borderWidth * 2, frame.size.height - borderWidth * 2)];
_posterThumbnail.clipsToBounds = YES;
_posterThumbnail.contentMode = UIViewContentModeScaleAspectFill;
_posterThumbnail.backgroundColor = UIColor.systemPinkColor;
self.contentView.backgroundColor = UIColor.clearColor;
[self.contentView addSubview:_posterThumbnail];

Expand All @@ -40,7 +41,7 @@ - (id)initWithFrame:(CGRect)frame {

_posterLabel = [[PosterLabel alloc] initWithFrame:CGRectMake(0, 0, frame.size.width - borderWidth * 2, labelHeight - borderWidth)];
_posterLabel.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;
_posterLabel.backgroundColor = UIColor.clearColor;
_posterLabel.backgroundColor = UIColor.blueColor;
_posterLabel.textAlignment = NSTextAlignmentCenter;
_posterLabel.textColor = UIColor.whiteColor;
_posterLabel.shadowColor = [Utilities getGrayColor:0 alpha:0.6];
Expand Down

0 comments on commit 802dc69

Please sign in to comment.