Skip to content

Fix range and mmol/L colors in chart and Live Activity - #778

Closed
MtlPhil wants to merge 1 commit into
loopandlearn:fix/la-color-range-modefrom
achkars-org:fix/la-custom-range-updates-on-762
Closed

MtlPhil wants to merge 1 commit into
loopandlearn:fix/la-color-range-modefrom
achkars-org:fix/la-custom-range-updates-on-762

Conversation

@MtlPhil

@MtlPhil MtlPhil commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Builds on #762. Adds the custom-range and mmol/L color fixes on top of it.

Changes

  • Push an immediate Live Activity update when the custom low/high lines change. TIR/TITR use fixed ranges, so this only applies in custom mode. Thresholds are published through writeThresholds() so the effective range is always used.
  • Refresh the main stats pie when the range lines or range mode change.
  • Compare reading colors at mmol/L display precision, so two readings that both display as "3.9" get the same color. Applies to the chart, BG text, contact image and the Live Activity widget. mg/dL is unchanged.
  • Share the rounding via GlucoseConversion.toDisplayedMmol.

Files

BGChartModel, ContactColorMode, Localizer, LiveActivityManager, MainViewController, LoopFollowLiveActivity, GlucoseConversion.

- Push an immediate Live Activity update when the custom low/high lines
  change. TIR/TITR use fixed ranges, so this only applies in custom mode.
  Thresholds are published through writeThresholds() so the effective
  range is always used.
- Refresh the main stats pie when the range lines or range mode change.
- Compare reading colors at mmol/L display precision, so two readings that
  both display as "3.9" get the same color. Applies to the chart, BG text,
  contact image and the Live Activity widget. mg/dL is unchanged.
- Share the rounding via GlucoseConversion.toDisplayedMmol.
@MtlPhil MtlPhil closed this Oct 12, 2026
@MtlPhil
MtlPhil deleted the fix/la-custom-range-updates-on-762 branch October 12, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant