Skip to content

Keep the in-game bar split visible when team colors match - #152

Open
SeoFood wants to merge 1 commit into
vasqued2:mainfrom
SeoFood:seofood/teamtracker-probability-colors
Open

SeoFood wants to merge 1 commit into
vasqued2:mainfrom
SeoFood:seofood/teamtracker-probability-colors

Conversation

@SeoFood

@SeoFood SeoFood commented Oct 3, 2026

Copy link
Copy Markdown

When both teams use the same color, the win-probability bar appears as one continuous segment. Add a white edge to the left segment and a black edge to the right segment so the boundary remains visible with identical or similar colors.

The divider sits inside the existing segments and appears only when both displayed values are positive. Team colors, timeout indicators, percentages, widths, and the configured outline are unchanged. Includes the rebuilt distribution bundle and source map.

Fixes #151.

Both revisions build in Docker. The card passes 41 browser assertions covering colors, both home-side settings, empty and narrow segments, outlines, timeouts, and live updates. The original fails the 13 divider assertions. Also checked both bundles in a separate Home Assistant 2026.9.4 instance with synthetic data.

Before (b62cc8e):

Before: identical black segments have no visible boundary at the 37/63 split

After (5a92027):

After: a visible divider marks the same 37/63 split with unchanged team colors

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.

Team color and opponent color in win probability

1 participant