Skip to content

AnimatedSearchBarConfig colors are hardcoded, not MaterialTheme-aware #22

Description

@cloudigits

Same underlying problem as #13 (which only covered AnimatedSearchBarTextConfig), but for AnimatedSearchBarConfig — none of these adapt to the app's theme:

  • searchBarBackgroundColorColor.White
  • searchBarBorderColorColor(0xFFE0E0E0)
  • iconBackgroundColorColor(0xFF558B2F)
  • iconTintColor.White
  • clearIconTintColor.Black

The component's own KDoc advertises "Configurable ... colors ..." and "Fully customizable through AnimatedSearchBarConfig," so this reads as the same class of defect as #13 rather than a missing feature — a dark-themed app gets a white search bar with black icons by default, with no crash but silently wrong output.

Not a crash, just a silent theming defect — usability/accessibility impact rather than a functional break, for triage purposes.

Suggested fix, matching M3 role pairing:

  • searchBarBackgroundColorcolorScheme.surfaceContainerHigh
  • searchBarBorderColorcolorScheme.outlineVariant
  • iconBackgroundColorcolorScheme.primaryContainer
  • iconTintcolorScheme.onPrimaryContainer
  • clearIconTintcolorScheme.onSurfaceVariant

Related: #13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions