소스 검색

AppearanceManager: UITableViewCell: Set default selectedBackgroundView

Soomin Lee 5 년 전
부모
커밋
96940a48b1
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      Sources/AppearanceManager.swift

+ 5 - 0
Sources/AppearanceManager.swift

@@ -34,6 +34,11 @@ class AppearanceManager: NSObject {
             UINavigationBar.appearance(whenContainedInInstancesOf: [VLCPlaybackNavigationController.self]).prefersLargeTitles = false
             UINavigationBar.appearance().largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor: theme.colors.navigationbarTextColor]
         }
+
+        let selectedBackgroundView = UIView()
+        selectedBackgroundView.backgroundColor = theme.colors.mediaCategorySeparatorColor
+        UITableViewCell.appearance().selectedBackgroundView = selectedBackgroundView
+
         // For the edit selection indicators
         UITableView.appearance().tintColor = theme.colors.orangeUI
         UISegmentedControl.appearance().tintColor = theme.colors.orangeUI