Fbada006 / ArtMaker

ArtMaker is a flexible and customisable library that allows users to draw anything they want on screen and has been built fully with Jetpack Compose.
70 stars 3 forks source link

Caleb/task/add defaults config #48

Closed CalebKL closed 2 months ago

CalebKL commented 2 months ago

This PR fixes adds ArtMakerDefaults which creates a more flexible solution to customize ArtMaker Composable. You can fully control how the ArtMaker will be displayed by customizing the values of the ArtMakerDefaults object. An example of a customized ArtMakerDefaults configuration is this:

ArtMakerDefaults(
    sliderThumbColor = Color.Black,
    sliderActiveTrackColor = Color.Green,
    sliderInactiveTickColor = Color.Yellow,
    sliderTextColor = Color.Gray,
    color  =listOf(Color.Black, Color.Green, Color.Yellow),
    backgroundColor = Color.Green.toArgb(),
    controllerBackground = Color.Cyan,
    sliderBackground = Color.Blue,
)

For now, the values that are being saved to sharedPreferences have not been added to the the defaults config because we need to have more discussions about this. Fixes #35