Closed tcqq closed 6 years ago
Is this your first day coding for Android?
@cojoc07 These methods exist in the previous version, Do you have any other solution to the above problem?
Colorful().getPrimaryColor().getColorPack().light().asInt()
I recommend you use the power of your IDE's code completion to poke around Colorful and Android's platform APIs.
@garretyoder Thanks, now I know should be how to get primary and accent color:-), But I didn't find white or black in ThemeColor
, How should I set PrimaryColor to white or black?
White or black is something I didn't add in v2 because I didn't see a point. If it's something you really require, I can add it this weekend for v2.1 because it'll only take me a few moments.
Yes, white and black are useful, see the picture below.
Primary Color: BLUE
Accent Color: PINK
Theme: DARK
Primary Color: WHIT
Accent Color: BLUE
Theme: LIGHT
White/Black are now added courtesy of a PR, which will be included in the 2.1 release that I'll probably push later today.
Thanks:)
ThemeColor.WHITE
, how to set primary or accent color to white or black color?