소스 검색

UI: Adapt media status bar color

Mike JS. Choi 7 년 전
부모
커밋
bc8a2d62b9
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      Sources/MediaSubcategoryViewController.swift

+ 4 - 1
Sources/MediaSubcategoryViewController.swift

@@ -98,5 +98,8 @@ class VLCMediaSubcategoryViewController: BaseButtonBarPagerTabStripViewControlle
     override func updateIndicator(for viewController: PagerTabStripViewController, fromIndex: Int, toIndex: Int, withProgressPercentage progressPercentage: CGFloat, indexWasChanged: Bool) {
         super.updateIndicator(for: viewController, fromIndex: fromIndex, toIndex: toIndex, withProgressPercentage: progressPercentage, indexWasChanged: indexWasChanged)
     }
-
+    
+    override var preferredStatusBarStyle: UIStatusBarStyle {
+        return PresentationTheme.current.colors.statusBarStyle
+    }
 }