ChartColorPalette.swift 714 B

123456789101112131415161718192021222324252627
  1. //
  2. // ChartColorPalette.swift
  3. // LoopKitUI
  4. //
  5. // Created by Bharat Mediratta on 3/29/17.
  6. // Copyright © 2017 LoopKit Authors. All rights reserved.
  7. //
  8. import UIKit
  9. /// A palette of colors for displaying charts
  10. public struct ChartColorPalette {
  11. public let axisLine: UIColor
  12. public let axisLabel: UIColor
  13. public let grid: UIColor
  14. public let glucoseTint: UIColor
  15. public let insulinTint: UIColor
  16. public init(axisLine: UIColor, axisLabel: UIColor, grid: UIColor, glucoseTint: UIColor, insulinTint: UIColor) {
  17. self.axisLine = axisLine
  18. self.axisLabel = axisLabel
  19. self.grid = grid
  20. self.glucoseTint = glucoseTint
  21. self.insulinTint = insulinTint
  22. }
  23. }