Explorar o código

VLCEditToolbar: Add background to base view

This fixes the toolbar not having a background color on the first
appearance.
Soomin Lee %!s(int64=6) %!d(string=hai) anos
pai
achega
cc17067a4d
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Sources/VLCEditToolbar.swift

+ 5 - 0
Sources/VLCEditToolbar.swift

@@ -88,9 +88,14 @@ class VLCEditToolbar: UIView {
             ])
     }
 
+    private func setupView() {
+        backgroundColor = PresentationTheme.current.colors.background
+    }
+
     init(category: MediaLibraryBaseModel) {
         self.category = category
         super.init(frame: .zero)
+        setupView()
         setupStackView()
     }