Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Material Theming - Woof App doesn't use colors frome Colors.kt #118

Open
Disona opened this issue Dec 24, 2024 · 0 comments
Open

Material Theming - Woof App doesn't use colors frome Colors.kt #118

Disona opened this issue Dec 24, 2024 · 0 comments

Comments

@Disona
Copy link

Disona commented Dec 24, 2024

URL of codelab

Issue is found on the last step of "4 "Add Color": Color mapping": "Take a look at WoofPreview(). The list items have now automatically changed color..."

The problem
"Card" composables on preview (and even when running the app on a device) do not use the colors from "Color.kt" file.
I have even tried to change the colors in "Colors.kt" but it doesn't help.
As i understand, a "Card" by default takes "Background" color from scheme, but no, it doesn't work.
Even if I switch to the "material" branch, which is the codelab solution - still the colors don't look like the ones from "Colors.kt"
Neither they resemble colors, which can be found on the screenshots in "Material Theming" pathway.

Please help!

Steps to reproduce?

  1. Just follow the instructions of the pathway in step 4 "Add Color".

Versions
Android Studio version: 2024.2.1 Patch 3
API version of the emulator: Android 10

This is how it looks in my case:

image

This is how it should look:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant