Selaa lähdekoodia

AppearanceManager: UITableViewCell: Set default selectedBackgroundView

Soomin Lee 5 vuotta sitten
vanhempi
commit
96940a48b1
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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