diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-11 19:10:05 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-11 19:10:05 -0700 |
commit | aa747a2b154cebfdcdde93b68b674d776d964558 (patch) | |
tree | 749c39b002bdc4be080bad2032220b3cfe7cc68c /sample/src/main/kotlin | |
parent | ced1a5b5acb763e914f62ad1ad338c9877e606e6 (diff) | |
download | kau-aa747a2b154cebfdcdde93b68b674d776d964558.tar.gz kau-aa747a2b154cebfdcdde93b68b674d776d964558.tar.bz2 kau-aa747a2b154cebfdcdde93b68b674d776d964558.zip |
finalize Pref layout
Diffstat (limited to 'sample/src/main/kotlin')
-rw-r--r-- | sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt index 98285d8..ac80fc6 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt @@ -9,6 +9,7 @@ import ca.allanwang.kau.utils.darken import ca.allanwang.kau.utils.navigationBarColor import ca.allanwang.kau.utils.showChangelog import ca.allanwang.kau.views.RippleCanvas +import com.mikepenz.google_material_typeface_library.GoogleMaterial class MainActivity : KPrefActivity() { @@ -39,7 +40,8 @@ class MainActivity : KPrefActivity() { configs = { allowCustom = false }) - colorPicker(title = R.string.background_color, description = R.string.color_custom_alpha, + colorPicker(iicon = GoogleMaterial.Icon.gmd_colorize, + title = R.string.background_color, description = R.string.color_custom_alpha, getter = { KPrefSample.bgColor }, setter = { KPrefSample.bgColor = it; bgCanvas.ripple(it, duration = 500L) }, configs = { allowCustomAlpha = true |