You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The spinner on «Обновить сейчас» is nearly invisible in both themes #223
What is broken. In «Синхронизация», while a sync runs, the «Обновить сейчас» button greys out and shows a spinner next to its label. On the owner's phone the spinner is a faint grey arc in the light theme and a dark-purple arc that almost disappears in the dark theme, crowding the start of the label.
Cause.GroupActionItem sets enabled = enabled && !busy, so a busy button takes the disabled filled-button colours: container onSurface at 10 % and label at 38 %. The spinner's colour, however, is hard-coded to onPrimary, the content colour of an enabled button. Drawn on the disabled container, it measures about 1.3:1 contrast in the light scheme (#FFFFFF on about #E5E2E9) and about 1.6:1 in the dark scheme (#1B2878 on about #49494F). The label is also a MarqueeText without the weight its own KDoc asks for, so at a large font scale it fades and scrolls right beside the spinner.
Expected.
A busy button keeps its filled colours and only refuses presses, so the spinner is onPrimary on primary (about 6.6:1 light, 7:1 dark).
The icon and the spinner share one fixed slot, so the label does not move when a sync starts.
Activity
Keep a busy action's filled colours, so its spinner can be seen
Merge the busy states into dev (#223, #224)