TrainerSnow / oneui-compose

Enables Jetpack Compose developers the ability to incorporate Samsung's OneUI design-system into their applications, to match the visuals of prebuilt Samsung apps.
Apache License 2.0
28 stars 3 forks source link

Rework the way colors are ahndles #15

Closed TrainerSnow closed 1 year ago

TrainerSnow commented 1 year ago

Colors are now mainly stored in the colors.xml file (for each color _light and _dark variant). Theres is for each dark and light two OneUIColorScheme object: One that loads from the colors.xml, one that has the fields initialized as a constant. This is necessary so we can properly initialize the CompositionLocal for the color theme. The colors.xml are needed so dynamic colors can work (yet to be done)