From 49fc10191c8820e066a66929dcdcd919543a4078 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 31 Aug 2019 20:19:03 -0700 Subject: [PATCH] Fix transparent app grid background being incorrectly overridden --- Limelight/UIComputerView.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Limelight/UIComputerView.m b/Limelight/UIComputerView.m index 81f59af..b29a226 100644 --- a/Limelight/UIComputerView.m +++ b/Limelight/UIComputerView.m @@ -190,8 +190,12 @@ static const int LABEL_DY = 20; UIButton *previousButton = (UIButton *)context.previouslyFocusedItem; UIButton *nextButton = (UIButton *) context.nextFocusedItem; - previousButton.superview.backgroundColor = nil; - nextButton.superview.backgroundColor = [UIColor darkGrayColor]; + if (previousButton.superview == self) { + self.backgroundColor = nil; + } + if (nextButton.superview == self) { + nextButton.superview.backgroundColor = [UIColor darkGrayColor]; + } } #endif