From 8064dbe9a5c2fbd9073b694fa237d457039380b2 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Tue, 9 Feb 2021 20:48:18 +0100 Subject: Adding colours and "locking" in dark mode. --- app/src/main/res/layout/activity_main.xml | 6 ++++-- app/src/main/res/layout/fragment_first.xml | 4 ++-- app/src/main/res/values-night/themes.xml | 10 +++++----- app/src/main/res/values/colors.xml | 5 +++++ app/src/main/res/values/strings.xml | 1 + app/src/main/res/values/themes.xml | 10 +++++----- 6 files changed, 22 insertions(+), 14 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 616f503..aa7a1c1 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -4,7 +4,8 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".MainActivity"> + tools:context=".MainActivity" + android:background="@color/very_dark_purple"> + app:srcCompat="@android:drawable/ic_dialog_info" + android:contentDescription="@string/info"/> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_first.xml b/app/src/main/res/layout/fragment_first.xml index 3533ea3..81142cd 100644 --- a/app/src/main/res/layout/fragment_first.xml +++ b/app/src/main/res/layout/fragment_first.xml @@ -10,11 +10,11 @@ android:id="@+id/textview_first" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/purple_700" + android:background="@color/black" android:fontFamily="@font/bangers" android:text="@string/hello_first_fragment" android:textAlignment="center" - android:textColor="@color/teal_200" + android:textColor="@color/strong_pink" android:textSize="36sp" app:layout_constraintBottom_toTopOf="@id/button_first" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index e1dd5d0..e8d4e2d 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -2,12 +2,12 @@