p-lr / MapComposeMP

Kotlin Multiplatform port of MapCompose
Apache License 2.0
36 stars 5 forks source link

Use background color from material theme in new tiles #10

Open lsrom opened 3 months ago

lsrom commented 3 months ago

Color new tiles according to set theme so they are not white in dark mode apps while loading.

p-lr commented 3 months ago

Good idea. What if the app has a material3 theme? The library itself doesn't use any androidx.compose.material.* imports. Maybe use a library defined dark theme color for loading tiles.

lsrom commented 3 months ago

You mean like a factory where user will pass the colors of their choice? Would you want to name them by material naming scheme (background/primary?) or by their use (defaultBackground or something)?