diff --git a/Source/Configuration/YPColors.swift b/Source/Configuration/YPColors.swift index 6a9daa645..98e71c1c2 100644 --- a/Source/Configuration/YPColors.swift +++ b/Source/Configuration/YPColors.swift @@ -10,17 +10,24 @@ import UIKit public struct YPColors { + // MARK: - Common + + /// The common tint color which is used for done buttons in navigation bar, multiple items selection and so on. public var tintColor = UIColor(r: 10, g: 120, b: 254) - /// A color for navigation bar spinner - /// Default is nil, which is default iOS gray UIActivityIndicator + /// A color for navigation bar spinner. + /// Default is nil, which is default iOS gray UIActivityIndicator. public var navigationBarActivityIndicatorColor: UIColor? /// A color for circle for selected items in multiple selection /// Default is nil, which takes tintColor. public var multipleItemsSelectedCircleColor: UIColor? - // Trimmer + /// The background color of the bottom of photo and video screens. + public var photoVideoScreenBackground: UIColor = .white + + // MARK: - Trimmer + /// The color of the main border of the view public var trimmerMainColor: UIColor = UIColor.black /// The color of the handles on the side of the view @@ -28,11 +35,13 @@ public struct YPColors { /// The color of the position indicator public var positionLineColor: UIColor = UIColor.white - // Cover selector + // MARK: - Cover selector + /// The color of the cover selector border public var coverSelectorBorderColor: UIColor = UIColor.white - // Progress bar + // MARK: - Progress bar + /// The color for the progress bar when processing video or images. The all track color. public var progressBarTrackColor: UIColor = UIColor.white /// The color of completed track for the progress bar diff --git a/Source/Pages/Photo/YPCameraView.swift b/Source/Pages/Photo/YPCameraView.swift index ca659fcf1..e11a31371 100644 --- a/Source/Pages/Photo/YPCameraView.swift +++ b/Source/Pages/Photo/YPCameraView.swift @@ -79,7 +79,7 @@ class YPCameraView: UIView, UIGestureRecognizerDelegate { shotButton.size(84).centerHorizontally() // Style - backgroundColor = .clear + backgroundColor = YPConfig.colors.photoVideoScreenBackground previewViewContainer.backgroundColor = .black timeElapsedLabel.style { l in l.textColor = .white