-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Description: The button colors are not showing correctly on API < 30. The text and background color are pink, like the color attribute from the theme was not set. But the rest of the UI of the Dialog seems fine.
Expected behavior: Screenshots and/or description of expected behavior
Source code: The App theme is extending Theme.Material3.DayNight.NoActionBar
but it's setting only colorPrimary
, colorPrimaryDark
and colorAccent
(since this is a Compose only app, I'm trying to keep the XML theme attributes to the minimum).
Minimal sample app repro: Repro project available here: https://github.com/leinardi/Forlago/tree/date-piker
- Theme defined here: https://github.com/leinardi/Forlago/blob/date-piker/modules/library-ui/src/main/res/values/themes.xml
- Date picker shown here: https://github.com/leinardi/Forlago/blob/date-piker/modules/feature-foo/src/main/kotlin/com/leinardi/forlago/feature/foo/ui/foo/FooScreen.kt#L133
- Date picker defined here: https://github.com/leinardi/Forlago/blob/date-piker/modules/library-ui/src/main/kotlin/com/leinardi/forlago/library/ui/component/DatePicker.kt#L50
Android API version: The issue happens on API < 30 (tested on 29 and 25)
Material Library version: 1.7.0
Device: Emulator (Nexus 5)