From 9fafabc94bdf367d167722ffe4ac44bcd39eafa3 Mon Sep 17 00:00:00 2001 From: Rikka Date: Thu, 3 Mar 2016 22:52:59 +0800 Subject: [PATCH] Res for night theme --- app/build.gradle | 2 +- .../rikka/searchbyimage/ui/EditSiteInfoActivity.java | 5 +++-- app/src/main/res/color-night/primary_text.xml | 9 +++++++++ app/src/main/res/color/primary_text.xml | 9 +++++++++ app/src/main/res/values-night/colors.xml | 2 ++ app/src/main/res/values/styles.xml | 5 +++-- 6 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/color-night/primary_text.xml create mode 100644 app/src/main/res/color/primary_text.xml diff --git a/app/build.gradle b/app/build.gradle index 6552168..c5bfc0a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,7 +11,7 @@ android { defaultConfig { minSdkVersion 15 targetSdkVersion 23 - versionCode 14400 + versionCode 14500 } buildTypes { release { diff --git a/app/src/main/java/rikka/searchbyimage/ui/EditSiteInfoActivity.java b/app/src/main/java/rikka/searchbyimage/ui/EditSiteInfoActivity.java index 57e7c93..a9002ef 100644 --- a/app/src/main/java/rikka/searchbyimage/ui/EditSiteInfoActivity.java +++ b/app/src/main/java/rikka/searchbyimage/ui/EditSiteInfoActivity.java @@ -233,9 +233,10 @@ public boolean onCreateOptionsMenu(Menu menu) { */ private void setFormTitleColor(boolean hasFocus) { if (hasFocus) { - mFormTitle.setTextColor(ContextCompat.getColor(mActivity, R.color.colorPrimary)); + //mFormTitle.setTextColor(ContextCompat.getColor(mActivity, R.color.colorPrimary)); + mFormTitle.setTextColor(ContextCompat.getColor(mActivity, R.color.colorAccent)); } else { - mFormTitle.setTextColor(ContextCompat.getColor(mActivity, android.R.color.primary_text_light)); + mFormTitle.setTextColor(ContextCompat.getColor(mActivity, R.color.primary_text)); } } diff --git a/app/src/main/res/color-night/primary_text.xml b/app/src/main/res/color-night/primary_text.xml new file mode 100644 index 0000000..0505967 --- /dev/null +++ b/app/src/main/res/color-night/primary_text.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/app/src/main/res/color/primary_text.xml b/app/src/main/res/color/primary_text.xml new file mode 100644 index 0000000..80cbc0d --- /dev/null +++ b/app/src/main/res/color/primary_text.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 34b735d..33b3a60 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -4,5 +4,7 @@ @color/material_grey_850 #20ffffff #FFF + #FF80AB + \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 2863d73..89db30f 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -11,7 +11,8 @@