Skip to content

Match Trio's override/temp-target colors for non-Loop backends#668

Merged
marionbarker merged 1 commit into
devfrom
override-temptarget-trio-colors
Jun 14, 2026
Merged

Match Trio's override/temp-target colors for non-Loop backends#668
marionbarker merged 1 commit into
devfrom
override-temptarget-trio-colors

Conversation

@bjorkert

@bjorkert bjorkert commented Jun 3, 2026

Copy link
Copy Markdown
Member

Overrides and temp targets were drawn with the colors swapped relative to Trio. In Trio an override is purple and a temp target is green; LoopFollow had them reversed.

Now non-Loop backends (Trio, OpenAPS) follow Trio's scheme — override purple, temp target green — while Loop keeps its existing colors (override green, temp target purple). The choice keys off the existing device == "Loop" convention, so it reacts to a backend change without recreating the graph.

Also switches the override info-row population in Overrides.swift from == "Trio" to != "Loop" so it applies to all non-Loop backends.

@codebymini codebymini left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved by code review

@marionbarker marionbarker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Relying on code review by @codebymini.
Confirm this builds for iOS 18 and iOS 26 phones and using Loop and Trio URLs.
Confirm the Trio lines on LoopFollow match Trio lines in Trio.

@marionbarker marionbarker merged commit a9d7330 into dev Jun 14, 2026
1 check passed
@marionbarker marionbarker deleted the override-temptarget-trio-colors branch June 14, 2026 19:10
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.

3 participants