Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LoopUI/ViewModel/CGMStatusHUDViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public class CGMStatusHUDViewModel {
}

glucoseValueTintColor = sensor?.glucoseValueType?.glucoseColor ?? .label
glucoseTrendTintColor = sensor?.glucoseValueType?.trendColor ?? .glucoseTintColor
glucoseTrendTintColor = isManualGlucose ? .destructive : sensor?.glucoseValueType?.trendColor ?? .glucoseTintColor
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, when the sensor is in a warmup state, and the user enters a manual glucose value, there is not really any "error" that needs attending to. I guess this is a question for design/product. It seems like communicating the value as a manual entry is important, but painting it in error/warning colors when everything is operating as expected and user attention is not required is not great.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that when the CGM is failing in some way, we don't want to paint over the failing state with a manual glucose entry that makes everything look ok.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ps2 yes, I'm working with Matt to determine all the possible states. Currently the known states include a red !, red or glucose colour +, and glucose colour <clock>, but we are still exploring.


self.isManualGlucose = isManualGlucose

Expand Down
6 changes: 4 additions & 2 deletions LoopUI/Views/GlucoseTrendHUDView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public final class GlucoseTrendHUDView: BaseHUDView {
}

public func setManualGlucoseIcon(_ isManualGlucose: Bool) {
trendIcon.image = UIImage(systemName: "exclamationmark.circle.fill")
trendIcon.tintColor = .destructive
if isManualGlucose {
trendIcon.image = UIImage(systemName: "exclamationmark.circle.fill")
trendIcon.tintColor = .destructive
}
}
}