Skip to content

Commit

Permalink
Merge pull request #802 from wutschel/ipad_menu_alpha
Browse files Browse the repository at this point in the history
Bugfix: Start with grayed out iPad main menu
  • Loading branch information
kambala-decapitator authored Dec 3, 2022
2 parents 6b64012 + 723e253 commit 726a68e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions XBMC Remote/iPad/MenuViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ - (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSI
title.text = item.mainLabel;
icon.highlightedImage = [UIImage imageNamed:iconName];
icon.image = [Utilities colorizeImage:icon.highlightedImage withColor:UIColor.grayColor];
if (AppDelegate.instance.serverOnLine) {
icon.alpha = 1.0;
title.alpha = 1.0;
}
else {
icon.alpha = 0.3;
title.alpha = 0.3;
}
return cell;
}

Expand Down

0 comments on commit 726a68e

Please sign in to comment.