Skip to content

Commit

Permalink
Added descriptions to colors and the background color property.
Browse files Browse the repository at this point in the history
  • Loading branch information
NikKovIos committed May 21, 2018
1 parent 2545185 commit 44f531f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions Source/Configuration/YPColors.swift
Expand Up @@ -10,29 +10,38 @@ 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
public var trimmerHandleColor: UIColor = UIColor.white
/// 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
Expand Down
2 changes: 1 addition & 1 deletion Source/Pages/Photo/YPCameraView.swift
Expand Up @@ -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
Expand Down

0 comments on commit 44f531f

Please sign in to comment.