applyTheme method
Apply colors from a GeneratedPalette to this component's state.
This method is called when the theme changes or when a new palette is generated. It should update all color properties based on the palette's values.
Implementation should use ThemeColorMapper.forComponent() for component-specific color resolution.
Implementation
@override
void applyTheme(GeneratedPalette palette) {
super.applyTheme(palette);
final colors = ThemeColorMapper.forComponent(palette, componentName);
// Text colors
restDestinationColorLight = colors.restTextColorLight;
restDestinationColorDark = colors.restTextColorDark;
// Distance, ETA, and turn icon use accent color
restDistanceColorLight = colors.accentColorLight;
restDistanceColorDark = colors.accentColorDark;
restEtaColorLight = colors.accentColorLight;
restEtaColorDark = colors.accentColorDark;
restTurnIconColorLight = colors.accentColorLight;
restTurnIconColorDark = colors.accentColorDark;
// Update border color
borderColor = colors.accentColorLight;
}