Skip to content

Conversation

@v-ein
Copy link
Collaborator

@v-ein v-ein commented Jan 4, 2026


name: Pull Request
about: Create a pull request to help us improve
title: Loading indicator: corrected size calculations and other fixes
assignees: ''


Description:
This PR corrects size/position calculations for the ring-style indicator so that it's properly centered and no longer sticks out of the bounding box. Another change is animation - it used to be jerky at some moments, and is now smooth. Here's an example of what it looks like (old version on the left, corrected on the right):

spinner-corrected

The PR also adds constants for the style argument. Old style values (0 and 1) are still supported, with 1 mapped to the old (broken) rendering that is now deprecated and therefore doesn't have its own constant. In fact, new constants have the values 2 and 3, i.e. do not overlap with the old ones. For compatibility reasons, the default style is still 0, the old "dots" style. The difference between "old dots" and "new dots" is alignment: the new indicator aligns itself to text baseline - it's useful when radius=1 is used (to make indicator the same height as text line).

Defaults for indicator colors are no longer hardcoded and are instead taken from Button/ButtonHovered styles, as was intended in the original design.

Also, the indicator does not receive navigation focus anymore (since it's not actionable anyway).

Concerning Areas:
None. Old scripts should continue to work as they were; new users are supposed to specify the style using the new mvLoadInd_xxx constants.

…yle indicator.

Old indicator rendering is kept at style=1 for compatibility; new corrected rendering can be selected with style=mvLoadInd_Ring.

Also, colors are taken from Button/ButtonHovered styles, as was intended in the original design.

Also, the indicator should not receive navigation focus (since it's not actionable anyway).
@v-ein v-ein requested a review from hoffstadt January 5, 2026 15: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.

1 participant