Commit 03211b34 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Deploy xmas cone

parent 702dd7ae
......@@ -19,6 +19,7 @@
@property (readwrite, nonatomic, weak) IBOutlet UILabel *nothingFoundLabel;
@property (readwrite, nonatomic, weak) IBOutlet UIView *nothingFoundView;
@property (readwrite, nonatomic, weak) IBOutlet UIImageView *nothingFoundConeImageView;
- (IBAction)URLEnteredInField:(id)sender;
......
......@@ -41,6 +41,17 @@
object:[NSUbiquitousKeyValueStore defaultStore]];
self.playURLField.placeholder = NSLocalizedString(@"ENTER_URL", nil);
/* After day 354 of the year, the usual VLC cone is replaced by another cone
* wearing a Father Xmas hat.
* Note: this icon doesn't represent an endorsement of The Coca-Cola Company
* and should not be confused with the idea of religious statements or propagation there off
*/
NSCalendar *gregorian =
[[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
NSUInteger dayOfYear = [gregorian ordinalityOfUnit:NSCalendarUnitDay inUnit:NSCalendarUnitYear forDate:[NSDate date]];
if (dayOfYear >= 354)
self.nothingFoundConeImageView.image = [UIImage imageNamed:@"xmas-cone"];
}
- (void)viewWillAppear:(BOOL)animated
......
......@@ -7,6 +7,7 @@
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="VLCOpenNetworkStreamTVViewController">
<connections>
<outlet property="deleteHintView" destination="Wa3-IS-ztU" id="ipW-Hx-fMJ"/>
<outlet property="nothingFoundConeImageView" destination="aAb-aY-bkT" id="Abp-Yt-oQb"/>
<outlet property="nothingFoundLabel" destination="sdc-e1-PSc" id="dvi-jc-vaR"/>
<outlet property="nothingFoundView" destination="dvt-CP-ALF" id="lg3-aJ-oHg"/>
<outlet property="playURLField" destination="dWa-3n-YCa" id="Eoe-vT-AuM"/>
......
......@@ -16,5 +16,6 @@
@property (readwrite, weak, nonatomic) IBOutlet UIView *nothingFoundView;
@property (readwrite, weak, nonatomic) IBOutlet UILabel *nothingFoundLabel;
@property (readwrite, weak, nonatomic) IBOutlet UIImageView *nothingFoundConeImageView;
@end
......@@ -29,6 +29,17 @@
forCellWithReuseIdentifier:VLCRemoteBrowsingTVCellIdentifier];
self.collectionView.maskView = [[VLCMaskView alloc] initWithFrame:self.collectionView.bounds];
/* After day 354 of the year, the usual VLC cone is replaced by another cone
* wearing a Father Xmas hat.
* Note: this icon doesn't represent an endorsement of The Coca-Cola Company
* and should not be confused with the idea of religious statements or propagation there off
*/
NSCalendar *gregorian =
[[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
NSUInteger dayOfYear = [gregorian ordinalityOfUnit:NSCalendarUnitDay inUnit:NSCalendarUnitYear forDate:[NSDate date]];
if (dayOfYear >= 354)
self.nothingFoundConeImageView.image = [UIImage imageNamed:@"xmas-cone"];
}
- (void)viewDidLayoutSubviews
......
......@@ -7,6 +7,7 @@
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="VLCRemoteBrowsingCollectionViewController">
<connections>
<outlet property="collectionView" destination="NUi-8f-W1D" id="iDT-ID-8jS"/>
<outlet property="nothingFoundConeImageView" destination="Quf-Xw-Yoh" id="2bc-0R-tbC"/>
<outlet property="nothingFoundLabel" destination="Mu6-3W-jEj" id="hmc-NZ-fOG"/>
<outlet property="nothingFoundView" destination="h3e-OS-Jjb" id="QPG-ls-Fhp"/>
<outlet property="preferredFocusedView" destination="NUi-8f-W1D" id="mXv-Wn-Sh7"/>
......
......@@ -69,6 +69,17 @@
self.cachedMediaLabel.text = NSLocalizedString(@"CACHED_MEDIA", nil);
self.cachedMediaLongLabel.text = NSLocalizedString(@"CACHED_MEDIA_LONG", nil);
/* After day 354 of the year, the usual VLC cone is replaced by another cone
* wearing a Father Xmas hat.
* Note: this icon doesn't represent an endorsement of The Coca-Cola Company
* and should not be confused with the idea of religious statements or propagation there off
*/
NSCalendar *gregorian =
[[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
NSUInteger dayOfYear = [gregorian ordinalityOfUnit:NSCalendarUnitDay inUnit:NSCalendarUnitYear forDate:[NSDate date]];
if (dayOfYear >= 354)
self.cachedMediaConeImageView.image = [UIImage imageNamed:@"xmas-cone"];
}
- (void)viewDidLayoutSubviews
......
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