minor fixis

This commit is contained in:
Erekle 2016-05-14 17:01:06 +04:00
parent e30584d215
commit f30bf32a47
2 changed files with 8 additions and 5 deletions

View File

@ -58,6 +58,8 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
BOOL _muted;
int32_t _periodicTimeObserverTimescale;
NSString *_gravity;
UIColor *_defaultControlsColor;
}
@end
@ -105,6 +107,7 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
- (void)privateInit
{
_defaultControlsColor = [UIColor whiteColor];
_cachedControls = [[NSMutableDictionary alloc] init];
_videoNode = [[ASVideoNode alloc] init];
@ -220,7 +223,7 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
if (_delegateFlags.delegatePlaybackButtonTint) {
_playbackButtonNode.tintColor = [_delegate videoPlayerNodePlaybackButtonTint:self];
} else {
_playbackButtonNode.tintColor = [UIColor whiteColor];
_playbackButtonNode.tintColor = _defaultControlsColor;
}
[_playbackButtonNode addTarget:self action:@selector(playbackButtonTapped:) forControlEvents:ASControlNodeEventTouchUpInside];
[_cachedControls setObject:_playbackButtonNode forKey:@(ASVideoPlayerNodeControlTypePlaybackButton)];
@ -322,7 +325,7 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
} else {
options = @{
NSFontAttributeName : [UIFont systemFontOfSize:12.0],
NSForegroundColorAttributeName: [UIColor whiteColor]
NSForegroundColorAttributeName: _defaultControlsColor
};
}

View File

@ -38,9 +38,9 @@
- (nullable id<NSObject>)drawParametersForAsyncLayer:(_ASDisplayLayer *)layer
{
return @{
@"buttonType" : [NSNumber numberWithInt:_buttonType],
@"color" : self.tintColor
};
@"buttonType" : [NSNumber numberWithInt:_buttonType],
@"color" : self.tintColor
};
}
+ (void)drawRect:(CGRect)bounds withParameters:(id<NSObject>)parameters isCancelled:(asdisplaynode_iscancelled_block_t)isCancelledBlock isRasterizing:(BOOL)isRasterizing