From 44f64e1a35948badc26c06bcc05875795f3e1e03 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 26 Aug 2018 16:43:45 -0700 Subject: [PATCH] Fix several UI issues --- Limelight/UIAppView.m | 3 +++ Limelight/UIComputerView.m | 5 +++++ Moonlight TV/Base.lproj/Main.storyboard | 9 +++++---- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Limelight/UIAppView.m b/Limelight/UIAppView.m index 889a52f..f519959 100644 --- a/Limelight/UIAppView.m +++ b/Limelight/UIAppView.m @@ -112,6 +112,9 @@ static UIImage* noImage; [_appLabel setTextAlignment:NSTextAlignmentCenter]; [_appLabel setLineBreakMode:NSLineBreakByWordWrapping]; [_appLabel setNumberOfLines:0]; +#if TARGET_OS_TV + [_appLabel setFont:[UIFont systemFontOfSize:16]]; +#endif [_appLabel setText:_app.name]; [_appButton addSubview:_appLabel]; } diff --git a/Limelight/UIComputerView.m b/Limelight/UIComputerView.m index f7ebacd..4683d31 100644 --- a/Limelight/UIComputerView.m +++ b/Limelight/UIComputerView.m @@ -18,7 +18,12 @@ CGSize _labelSize; } static const float REFRESH_CYCLE = 2.0f; + +#if TARGET_OS_TV +static const int LABEL_DY = 40; +#else static const int LABEL_DY = 20; +#endif - (id) init { self = [super init]; diff --git a/Moonlight TV/Base.lproj/Main.storyboard b/Moonlight TV/Base.lproj/Main.storyboard index 2c2c16f..cf404a8 100644 --- a/Moonlight TV/Base.lproj/Main.storyboard +++ b/Moonlight TV/Base.lproj/Main.storyboard @@ -33,18 +33,19 @@ + - + - + - + - +