mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-16 21:50:57 +00:00
feat: update text color
do not apply UIComputerView text color so it uses the theme default
This commit is contained in:
@@ -54,7 +54,9 @@ static const int LABEL_DY = 20;
|
|||||||
|
|
||||||
[_hostLabel setText:@"Add Host"];
|
[_hostLabel setText:@"Add Host"];
|
||||||
[_hostLabel sizeToFit];
|
[_hostLabel sizeToFit];
|
||||||
|
#if !TARGET_OS_TV
|
||||||
_hostLabel.textColor = [UIColor whiteColor];
|
_hostLabel.textColor = [UIColor whiteColor];
|
||||||
|
#endif
|
||||||
_hostLabel.center = CGPointMake(_hostButton.frame.origin.x + (_hostButton.frame.size.width / 2), _hostButton.frame.origin.y + _hostButton.frame.size.height + LABEL_DY);
|
_hostLabel.center = CGPointMake(_hostButton.frame.origin.x + (_hostButton.frame.size.width / 2), _hostButton.frame.origin.y + _hostButton.frame.size.height + LABEL_DY);
|
||||||
|
|
||||||
UIImageView* addIcon = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"AddComputerIcon"]];
|
UIImageView* addIcon = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"AddComputerIcon"]];
|
||||||
@@ -128,7 +130,9 @@ static const int LABEL_DY = 20;
|
|||||||
|
|
||||||
- (void) updateContentsForHost:(TemporaryHost*)host {
|
- (void) updateContentsForHost:(TemporaryHost*)host {
|
||||||
_hostLabel.text = _host.name;
|
_hostLabel.text = _host.name;
|
||||||
|
#if !TARGET_OS_TV
|
||||||
_hostLabel.textColor = [UIColor whiteColor];
|
_hostLabel.textColor = [UIColor whiteColor];
|
||||||
|
#endif
|
||||||
[_hostLabel sizeToFit];
|
[_hostLabel sizeToFit];
|
||||||
|
|
||||||
switch (host.pairState) {
|
switch (host.pairState) {
|
||||||
@@ -142,7 +146,9 @@ static const int LABEL_DY = 20;
|
|||||||
_hostPairState.text = @"Paired";
|
_hostPairState.text = @"Paired";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#if !TARGET_OS_TV
|
||||||
_hostPairState.textColor = [UIColor whiteColor];
|
_hostPairState.textColor = [UIColor whiteColor];
|
||||||
|
#endif
|
||||||
[_hostPairState sizeToFit];
|
[_hostPairState sizeToFit];
|
||||||
|
|
||||||
if (host.online) {
|
if (host.online) {
|
||||||
|
|||||||
Reference in New Issue
Block a user