Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
03211b34
Commit
03211b34
authored
Dec 09, 2015
by
Felix Paul Kühne
Browse files
Deploy xmas cone
parent
702dd7ae
Changes
7
Hide whitespace changes
Inline
Side-by-side
Apple-TV/VLCOpenNetworkStreamTVViewController.h
View file @
03211b34
...
...
@@ -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
;
...
...
Apple-TV/VLCOpenNetworkStreamTVViewController.m
View file @
03211b34
...
...
@@ -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
...
...
Apple-TV/VLCOpenNetworkStreamTVViewController.xib
View file @
03211b34
...
...
@@ -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"
/>
...
...
Apple-TV/VLCRemoteBrowsingCollectionViewController.h
View file @
03211b34
...
...
@@ -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
Apple-TV/VLCRemoteBrowsingCollectionViewController.m
View file @
03211b34
...
...
@@ -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
...
...
Apple-TV/VLCRemoteBrowsingCollectionViewController.xib
View file @
03211b34
...
...
@@ -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"
/>
...
...
Apple-TV/VLCRemotePlaybackViewController.m
View file @
03211b34
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment