Closed tcqq closed 6 years ago
I will not be adding any further colors simply because I have chosen to adhere to the material color pallet
However, thanks to a helpful commit(#29) you can now define your own custom colors and mix them with Colorful's defaults. See the readme on how to accomplish this.
@garretyoder Thanks:), but I found a problem, I set colorPrimaryDark
to red, but it not work.
If this value is accentColor
, it also not work.
ThemeColorInterface themeColor = new CustomThemeColor(
getContext(),
R.style.dark_grey_primary_color,
R.style.dark_grey_primary_dark_color,
R.color.dark_gray,
R.color.red);
Colorful().edit()
.setPrimaryColor(themeColor)
.apply(getContext(), () -> {
recreate();
return null;
})).isDisposed();
<style name="dark_grey_primary_color">
<item name="colorPrimary">@color/dark_gray</item>
</style>
<style name="dark_grey_primary_dark_color">
<item name="colorPrimaryDark">@color/red</item>
</style>
I am using this method to set colorPrimaryDark
now.
ThemeColorInterface themeColor = new CustomThemeColor(
getContext(),
R.style.dark_grey_primary_color,
0,
R.color.dark_gray,
R.color.red);
<style name="dark_grey_primary_color">
<item name="colorPrimary">@color/dark_gray</item>
<item name="colorPrimaryDark">@color/red</item>
</style>
@garretyoder Request to add
![image](https://user-images.githubusercontent.com/10644057/39468529-045f2912-4d66-11e8-958c-e365452146f8.png)
DARK_GREY
, because use "DARK_GREY" color in dark theme is best choose, thanks.