aboutsummaryrefslogtreecommitdiff
path: root/sample/src
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-06-07 14:25:41 -0400
committerGitHub <noreply@github.com>2019-06-07 14:25:41 -0400
commiteb9317015c6535bfa36166d254ec954f81d8df97 (patch)
tree6f4194519eda3612ab78c10ab77a6049b345a166 /sample/src
parent646d1f2385bd5b39a4d544125855533a6096bca3 (diff)
parent41beee9022ecf85e4b6379acd03d2109efb61026 (diff)
downloadkau-eb9317015c6535bfa36166d254ec954f81d8df97.tar.gz
kau-eb9317015c6535bfa36166d254ec954f81d8df97.tar.bz2
kau-eb9317015c6535bfa36166d254ec954f81d8df97.zip
Merge pull request #203 from AllanWang/feature/progressanimator
Feature/progressanimator
Diffstat (limited to 'sample/src')
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt14
-rw-r--r--sample/src/main/res/values/colors.xml6
2 files changed, 5 insertions, 15 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 d9586c4..9ce3f42 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
@@ -260,12 +260,7 @@ class MainActivity : KPrefActivity() {
if (KPrefSample.version < BuildConfig.VERSION_CODE) {
KPrefSample.version = BuildConfig.VERSION_CODE
if (!BuildConfig.DEBUG)
- showChangelog(R.xml.kau_changelog, KPrefSample.textColor) {
- // TODO MD Color
-// titleColor(KPrefSample.textColor)
-// backgroundColor(KPrefSample.bgColor)
-// positiveColor(KPrefSample.accentColor)
- }
+ showChangelog(R.xml.kau_changelog)
}
supportActionBar?.apply {
setDisplayHomeAsUpEnabled(false)
@@ -298,12 +293,7 @@ class MainActivity : KPrefActivity() {
override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
- R.id.action_changelog -> showChangelog(R.xml.kau_changelog, KPrefSample.textColor) {
- // TODO MD Color
-// titleColor(KPrefSample.textColor)
-// backgroundColor(KPrefSample.bgColor)
-// positiveColor(KPrefSample.accentColor)
- }
+ R.id.action_changelog -> showChangelog(R.xml.kau_changelog)
R.id.action_settings -> startActivity<AnimActivity>()
R.id.action_email -> sendEmail(R.string.your_email, R.string.your_subject)
else -> return super.onOptionsItemSelected(item)
diff --git a/sample/src/main/res/values/colors.xml b/sample/src/main/res/values/colors.xml
index 3ab3e9c..12363c4 100644
--- a/sample/src/main/res/values/colors.xml
+++ b/sample/src/main/res/values/colors.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <color name="colorPrimary">#3F51B5</color>
- <color name="colorPrimaryDark">#303F9F</color>
- <color name="colorAccent">#FF4081</color>
+ <color name="colorPrimary">#2196F3</color>
+ <color name="colorPrimaryDark">#1976D2</color>
+ <color name="colorAccent">#FF5722</color>
</resources>