aboutsummaryrefslogtreecommitdiff
path: root/colorpicker/README.md
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-06-07 12:41:13 -0400
committerGitHub <noreply@github.com>2019-06-07 12:41:13 -0400
commit1e3cb74579a3297460cd4085c57942138c5805a2 (patch)
treeba1ab2f42d3d4407c50c215ba85674700c047db7 /colorpicker/README.md
parentb9feba20d45505a22162c386e18dfc1a4f117d3f (diff)
parent879ac366074697dd0a7fbb2c3d99a48d7aeeb22d (diff)
downloadkau-1e3cb74579a3297460cd4085c57942138c5805a2.tar.gz
kau-1e3cb74579a3297460cd4085c57942138c5805a2.tar.bz2
kau-1e3cb74579a3297460cd4085c57942138c5805a2.zip
Merge pull request #200 from AllanWang/material-dialogs-3
Material Dialogs 3
Diffstat (limited to 'colorpicker/README.md')
-rw-r--r--colorpicker/README.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/colorpicker/README.md b/colorpicker/README.md
index c90809e..16977a9 100644
--- a/colorpicker/README.md
+++ b/colorpicker/README.md
@@ -1,10 +1,9 @@
# KAU :colorpicker
-Material Dialogs by default contains a color picker, but it requires an activity that also implements the color callback.
-KAU's colorpicker decouples the two, so it only needs a context and a separate callback.
-The color picker also animates the selection, and uses Kotlin's DSL to provide easy calling.
+As of Material Dialog 2.x, `:colorpicker` is effectively a very thin wrapper around [Material Dialog's color picker](https://github.com/afollestad/material-dialogs/blob/master/documentation/COLOR.md).
+The main difference is that it exposes an interface internal to KAU, which allows a greater level of consistency within other submodules.
+It also contains an extra palette for accent colors.
-To use it, call `Context.colorPickerDialog` and specify and configs as required through the builder.
+To use it, call `MaterialDialog.kauColorChooser` and specify the configs.
![Color Picker Gif](https://raw.githubusercontent.com/AllanWang/Storage-Hub/master/kau/kau_color_picker.gif)
-![Color Picker Custom Gif](https://raw.githubusercontent.com/AllanWang/Storage-Hub/master/kau/kau_color_picker_custom.gif) \ No newline at end of file