Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-iOS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
311
Issues
311
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-iOS
Commits
6a7a279a
Commit
6a7a279a
authored
Apr 21, 2018
by
Carola Nitz
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MoreViewController: remove unneeded code
parent
13c8cf7e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
25 deletions
+1
-25
Sources/AppearanceManager.swift
Sources/AppearanceManager.swift
+0
-9
Sources/VLCTabBarCoordinator.swift
Sources/VLCTabBarCoordinator.swift
+1
-16
No files found.
Sources/AppearanceManager.swift
View file @
6a7a279a
...
...
@@ -41,14 +41,5 @@ class AppearanceManager: NSObject {
UISearchBar
.
appearance
()
.
barTintColor
=
.
white
UITabBar
.
appearance
()
.
tintColor
=
theme
.
colors
.
orangeUI
//customization of MoreViewController
//Since there is no clean way to customize the Morecontroller appearance we're getting the class
if
let
moreListControllerClass
=
NSClassFromString
(
"UIMoreListController"
)
as?
UIAppearanceContainer
.
Type
{
UITableViewCell
.
appearance
(
whenContainedInInstancesOf
:
[
moreListControllerClass
.
self
])
.
backgroundColor
=
theme
.
colors
.
cellBackgroundA
UITableViewCell
.
appearance
(
whenContainedInInstancesOf
:
[
moreListControllerClass
.
self
])
.
textLabel
?
.
textColor
=
theme
.
colors
.
cellTextColor
UITableView
.
appearance
(
whenContainedInInstancesOf
:
[
moreListControllerClass
.
self
])
.
backgroundColor
=
theme
.
colors
.
background
UITableView
.
appearance
(
whenContainedInInstancesOf
:
[
moreListControllerClass
.
self
])
.
separatorColor
=
.
lightGray
UILabel
.
appearance
(
whenContainedInInstancesOf
:
[
moreListControllerClass
.
self
])
.
textColor
=
theme
.
colors
.
cellTextColor
}
}
}
Sources/VLCTabBarCoordinator.swift
View file @
6a7a279a
...
...
@@ -12,7 +12,7 @@
import
Foundation
class
VLCTabbarCooordinator
:
NSObject
,
VLCMediaViewControllerDelegate
,
UITabBarControllerDelegate
{
class
VLCTabbarCooordinator
:
NSObject
,
VLCMediaViewControllerDelegate
{
private
var
childCoordinators
:
[
NSObject
]
=
[]
private
var
tabBarController
:
UITabBarController
...
...
@@ -23,7 +23,6 @@ class VLCTabbarCooordinator: NSObject, VLCMediaViewControllerDelegate, UITabBarC
self
.
tabBarController
=
tabBarController
self
.
services
=
services
super
.
init
()
self
.
tabBarController
.
delegate
=
self
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
updateTheme
)
,
name
:
.
VLCThemeDidChangeNotification
,
object
:
nil
)
}
...
...
@@ -34,20 +33,6 @@ class VLCTabbarCooordinator: NSObject, VLCMediaViewControllerDelegate, UITabBarC
@objc
func
updateTheme
()
{
tabBarController
.
tabBar
.
barTintColor
=
PresentationTheme
.
current
.
colors
.
tabBarColor
customizeMoreViewController
()
}
func
customizeMoreViewController
()
{
if
let
UITabBarCustomizeViewClass
=
NSClassFromString
(
"UITabBarCustomizeView"
)
{
for
subview
in
tabBarController
.
view
.
subviews
where
subview
.
isKind
(
of
:
UITabBarCustomizeViewClass
)
{
subview
.
backgroundColor
=
PresentationTheme
.
current
.
colors
.
background
subview
.
tintColor
=
PresentationTheme
.
current
.
colors
.
orangeUI
}
}
}
func
tabBarController
(
_
tabBarController
:
UITabBarController
,
willBeginCustomizing
viewControllers
:
[
UIViewController
])
{
customizeMoreViewController
()
}
func
setupViewControllers
()
{
...
...
Carola
@caro
mentioned in issue
#153 (closed)
·
Apr 22, 2018
mentioned in issue
#153 (closed)
mentioned in issue #153
Toggle commit list
Write
Preview
Markdown
is supported
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