Commit 72a5f1ea authored by Pierre SAGASPE's avatar Pierre SAGASPE Committed by Felix Paul Kühne

playback: lock button change background color when activated

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 34b02260
......@@ -1402,6 +1402,10 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
- (void)toggleUILock
{
_interfaceIsLocked = !_interfaceIsLocked;
if (_interfaceIsLocked)
_multiSelectionView.displayLock = YES;
else
_multiSelectionView.displayLock = NO;
}
- (void)toggleEqualizer
......
......@@ -27,6 +27,7 @@
@property (readwrite, assign) BOOL mediaHasChapters;
- (void)setDisplayRepeatOne:(BOOL)displayRepeatOne;
- (void)setDisplayLock:(BOOL)displayLock;
- (CGSize)proposedDisplaySize;
@end
......@@ -141,6 +141,14 @@
[_repeatButton setImage:[UIImage imageNamed:@"repeat"] forState:UIControlStateNormal];
}
- (void)setDisplayLock:(BOOL)displayLock
{
if (displayLock)
[_lockButton setBackgroundColor:[UIColor VLCOrangeTintColor]];
else
[_lockButton setBackgroundColor:[UIColor clearColor]];
}
- (void)equalizerAction:(id)sender
{
[self.delegate toggleEqualizer];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment