ChartColorPalette.swift 799 B

1234567891011121314151617181920212223242526272829
  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 let carbTint: UIColor
  17. public init(axisLine: UIColor, axisLabel: UIColor, grid: UIColor, glucoseTint: UIColor, insulinTint: UIColor, carbTint: UIColor) {
  18. self.axisLine = axisLine
  19. self.axisLabel = axisLabel
  20. self.grid = grid
  21. self.glucoseTint = glucoseTint
  22. self.insulinTint = insulinTint
  23. self.carbTint = carbTint
  24. }
  25. }