diff options
author | Janak Amarasena <janakamarasena@gmail.com> | 2018-06-23 13:05:42 +0530 |
---|---|---|
committer | Janak Amarasena <janakamarasena@gmail.com> | 2018-06-23 13:05:42 +0530 |
commit | ea4c5ca2b27aeabd4a1b000ac2066be6023b2e45 (patch) | |
tree | 021e30145e45726b276f1b7b4dbae3d95109bb28 /app | |
parent | e39762735faa8e66b6bb526c1775f13d0e91da4e (diff) |
Added customisability to main colors
Diffstat (limited to 'app')
-rw-r--r-- | app/src/custom/res/values/custom-theme.xml | 12 | ||||
-rw-r--r-- | app/src/main/res/layout/a_main.xml | 3 | ||||
-rw-r--r-- | app/src/main/res/values/colors.xml | 3 |
3 files changed, 17 insertions, 1 deletions
diff --git a/app/src/custom/res/values/custom-theme.xml b/app/src/custom/res/values/custom-theme.xml new file mode 100644 index 00000000..4421adb9 --- /dev/null +++ b/app/src/custom/res/values/custom-theme.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <!--Colors--> + <!--Color of the action bar--> + <color name="colorPrimary">#b39ddb</color> + <!--Color of the status bar--> + <color name="colorPrimaryDark">#ac97d2</color> + <!--Font color of the action bar title--> + <color name="colorActionBarTitleFont">#ffffff</color> + <!--Font color of the action bar subtitle--> + <color name="colorActionBarSubtitleFont">#000000</color> +</resources> diff --git a/app/src/main/res/layout/a_main.xml b/app/src/main/res/layout/a_main.xml index bed05d18..21fdaa66 100644 --- a/app/src/main/res/layout/a_main.xml +++ b/app/src/main/res/layout/a_main.xml @@ -20,7 +20,8 @@ android:minHeight="?attr/actionBarSize" android:layout_width="match_parent" android:layout_height="wrap_content" - app:titleTextColor="@android:color/white" + app:titleTextColor="@color/colorActionBarTitleFont" + app:subtitleTextColor="@color/colorActionBarSubtitleFont" android:background="?attr/colorPrimary"> </android.support.v7.widget.Toolbar> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 53ead009..40ab06c5 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -27,4 +27,7 @@ <color name="white">#ffffff</color> + <color name="colorActionBarTitleFont">@color/white</color> + <color name="colorActionBarSubtitleFont">@color/black800</color> + </resources> |