The app currently (6.7 (54)) currently calculates colors based on the number of safe days:
|
public var countdownColor :UIColor { |
|
switch self.safeBuf { |
|
case ..<1: |
|
return UIColor.Beeminder.SafetyBuffer.red |
|
case ..<2: |
|
return UIColor.Beeminder.SafetyBuffer.orange |
|
case ..<3: |
|
return UIColor.Beeminder.SafetyBuffer.blue |
|
case ..<7: |
|
return UIColor.Beeminder.SafetyBuffer.green |
|
default: |
|
return UIColor.Beeminder.SafetyBuffer.forestGreen |
|
} |
|
} |
A goal's commitment can be any combination of two of the following three items: goal date, goal total, goal rate.
Example goal, goal's commitment dial (on the website):
goal date: 2024-12-31
goal total: greyed out, not used to define the goal's commitment
goal rate: 40 / month
Goal progress on the website shows
NOW 2024-12-31 → 4089
TARGET 2024-12-31 → 4000
In the app this goal is colored orange on 2024-12-31, with safesum "Safe for 1 day". On the website this goal is colored dark green.
The app currently (6.7 (54)) currently calculates colors based on the number of safe days:
BeeSwift/BeeKit/GoalExtensions.swift
Lines 57 to 70 in 1c1a86d
A goal's commitment can be any combination of two of the following three items: goal date, goal total, goal rate.
Example goal, goal's commitment dial (on the website):
Goal progress on the website shows
In the app this goal is colored orange on 2024-12-31, with safesum "Safe for 1 day". On the website this goal is colored dark green.