Repository navigation
Named themes now set the system appearance, so alerts, the keyboard and the native tab bar match
the theme. Selected rows stay readable when accent is a solid colour, and Moon's accent is the
lavender its description promised.
Added
PanelUITheme.setTheme. Sets the theme from outside React — at module scope before the app
mounts, from a deep link or a settings store — and sets the system appearance to the theme's
own mode in the same tick. Uniwind keeps the system appearance in step only forlightand
dark, so before this a dark theme such asgrass-darkon a phone set to Light got light
alerts, a light keyboard and a light native tab bar.useThemeanduseThemeModego through
it, so apps using the hooks get the fix without a change.systemstill follows the device,
and a theme the app registers itself is left to the device, since its mode is unknown.
Reported by @techzealot in #308.
Fixed
- Selected rows switch their text to
accent-foreground. Select, Combobox, SearchBar, Table,
Calendar's range band and month/year picker, SectionProgress, SectionRail, Questionnaire and
the card variants of RadioGroup and Checkbox drew a selected row onaccentwhile keeping the
default text colour. With the stock tokens that was only faint; withaccentset to a solid
colour, as the Colors page allows, the label disappeared into the fill. Check marks drawn on
the fill follow it too. Reported by @techzealot in
#309. - Moon has a lavender accent. Its
accentwas the neutral grey of the default theme, so a
selected Chip was barely distinguishable from an unselected one.moon-dark'ssecondaryalso
rises from 6% to 8% white, so borderless controls at rest keep their shape on its near-black
background. Reported by @techzealot in #309.