瀏覽代碼

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