Commit eaf18869 authored by sanmarcos's avatar sanmarcos Committed by Felix Paul Kühne
Browse files

Open Network Stream: Make the UISwitches have an orange on color so they are actually visible


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 02b995f6
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<switch opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" id="8"> <switch opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" id="8">
<rect key="frame" x="20" y="10" width="51" height="31"/> <rect key="frame" x="20" y="10" width="51" height="31"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="onTintColor" white="0.0" alpha="0.60999999999999999" colorSpace="custom" customColorSpace="calibratedWhite"/> <color key="onTintColor" red="1" green="0.51764705879999995" blue="0.0" alpha="1" colorSpace="deviceRGB"/>
</switch> </switch>
<label clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Private Playback" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="9"> <label clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Private Playback" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="9">
<rect key="frame" x="77" y="15" width="205" height="21"/> <rect key="frame" x="77" y="15" width="205" height="21"/>
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<switch opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" id="nCb-2V-ulT"> <switch opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" id="nCb-2V-ulT">
<rect key="frame" x="20" y="10" width="51" height="31"/> <rect key="frame" x="20" y="10" width="51" height="31"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="onTintColor" white="0.0" alpha="0.60999999999999999" colorSpace="custom" customColorSpace="calibratedWhite"/> <color key="onTintColor" red="1" green="0.51764705879999995" blue="0.0" alpha="1" colorSpace="deviceRGB"/>
</switch> </switch>
<label clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Scan Subtitle" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Ewx-Hn-7Lc" userLabel="Label - Scan Subtitle"> <label clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Scan Subtitle" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Ewx-Hn-7Lc" userLabel="Label - Scan Subtitle">
<rect key="frame" x="77" y="10" width="205" height="31"/> <rect key="frame" x="77" y="10" width="205" height="31"/>
......
...@@ -17,5 +17,6 @@ ...@@ -17,5 +17,6 @@
+ (UIColor *)VLCDarkBackgroundColor; + (UIColor *)VLCDarkBackgroundColor;
+ (UIColor *)VLCLightTextColor; + (UIColor *)VLCLightTextColor;
+ (UIColor *)VLCDarkTextShadowColor; + (UIColor *)VLCDarkTextShadowColor;
+ (UIColor *)VLCOrangeTintColor;
@end @end
...@@ -29,4 +29,9 @@ ...@@ -29,4 +29,9 @@
return [UIColor colorWithWhite:0. alpha:.25f]; return [UIColor colorWithWhite:0. alpha:.25f];
} }
+ (UIColor *)VLCOrangeTintColor
{
return [UIColor colorWithRed:1.0f green:(132.0f/255.0f) blue:0.0f alpha:1.f];
}
@end @end
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
navBar.translucent = NO; navBar.translucent = NO;
navBar.opaque = YES; navBar.opaque = YES;
} else { } else {
navBar.barTintColor = [UIColor colorWithRed:1.0f green:(132.0f/255.0f) blue:0.0f alpha:1.f]; navBar.barTintColor = [UIColor VLCOrangeTintColor];
navBar.tintColor = [UIColor whiteColor]; navBar.tintColor = [UIColor whiteColor];
navBar.titleTextAttributes = @{ UITextAttributeTextColor : [UIColor whiteColor] }; navBar.titleTextAttributes = @{ UITextAttributeTextColor : [UIColor whiteColor] };
} }
......
...@@ -66,6 +66,8 @@ ...@@ -66,6 +66,8 @@
[[UITextField appearance] setKeyboardAppearance:UIKeyboardAppearanceDark]; [[UITextField appearance] setKeyboardAppearance:UIKeyboardAppearanceDark];
} }
[[UISwitch appearance] setOnTintColor:[UIColor VLCOrangeTintColor]];
BWQuincyManager *quincyManager = [BWQuincyManager sharedQuincyManager]; BWQuincyManager *quincyManager = [BWQuincyManager sharedQuincyManager];
[quincyManager setSubmissionURL:@"http://crash.videolan.org/crash_v200.php"]; [quincyManager setSubmissionURL:@"http://crash.videolan.org/crash_v200.php"];
[quincyManager setDelegate:self]; [quincyManager setDelegate:self];
......
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