You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On usage of the kv-android-color-pallet, from your application class, Initiate it using following code.
40
-
While initiating, you have to parse a color (androidx.compose.ui.graphics.Color) that you prefer to use as your primary color in your application.
38
+
After you integrated the `KvColorPallet-Android` library, you can consume it as follows.
39
+
40
+
### Basic Usage
41
+
If you wants to consume basic features in `KvColorPallet` then use singleton instance as follows. This singleton instance allows consumers to access following basic functionalities.
If you wants to use `KvColorPallet-Android` to generate your theme color pallet when your application start-up, then you have to initiate the library in Application level.
55
+
To initiate you have to pass one base color that you think your application will use. Use following code to initiate the library package.
41
56
````
42
57
override fun onCreate() {
43
58
super.onCreate()
44
59
// Initialize the kv-android-color-pallet
45
-
KvColorPallet.init(MatPackage.MatDGreen.color)
60
+
KvColorPallet.initialize(MatPackage.MatDGreen)
46
61
}
47
62
````
48
-
This initiation create a color set for a theme using the given color at the initiation.
49
-
This generated color set available for light and dark theme variants.
63
+
This initiation create a color set for a theme using the given color at the initiation. This generated color set available for light and dark theme variants.
64
+
65
+
In this `KvColorPallet.appThemePallet` you will have following color attributes.
0 commit comments