From f61bf5b1df928bc92173ab79ad88349d3af46dcd Mon Sep 17 00:00:00 2001
From: Matthieu <24-artectrex@users.noreply.shinice.net>
Date: Mon, 25 Dec 2023 20:35:28 +0100
Subject: [PATCH] Improve color
---
.../main/res/color/selector_story_post.xml | 19 ++++++++++++++++++
.../res/color/selector_story_post_text.xml | 20 +++++++++++++++++++
app/src/main/res/layout/activity_main.xml | 2 +-
.../res/layout/activity_post_creation.xml | 7 +++++--
.../res/layout/fragment_post_creation.xml | 7 +++++++
.../res/layout/fragment_post_submission.xml | 2 ++
6 files changed, 54 insertions(+), 3 deletions(-)
create mode 100644 app/src/main/res/color/selector_story_post.xml
create mode 100644 app/src/main/res/color/selector_story_post_text.xml
diff --git a/app/src/main/res/color/selector_story_post.xml b/app/src/main/res/color/selector_story_post.xml
new file mode 100644
index 00000000..68b10156
--- /dev/null
+++ b/app/src/main/res/color/selector_story_post.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/color/selector_story_post_text.xml b/app/src/main/res/color/selector_story_post_text.xml
new file mode 100644
index 00000000..f864921f
--- /dev/null
+++ b/app/src/main/res/color/selector_story_post_text.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 05b96c72..cace3d84 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -27,7 +27,7 @@
android:id="@+id/main_drawer_button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:background="?attr/colorSurface"
+ android:background="?attr/colorSurfaceContainer"
android:contentDescription="@string/open_drawer_menu"
android:padding="12dp"
android:src="@drawable/ic_baseline_menu_24" />
diff --git a/app/src/main/res/layout/activity_post_creation.xml b/app/src/main/res/layout/activity_post_creation.xml
index 98f621cc..0ece2d9c 100644
--- a/app/src/main/res/layout/activity_post_creation.xml
+++ b/app/src/main/res/layout/activity_post_creation.xml
@@ -1,9 +1,11 @@
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_post_creation.xml b/app/src/main/res/layout/fragment_post_creation.xml
index 13e11db2..4a0c0f37 100644
--- a/app/src/main/res/layout/fragment_post_creation.xml
+++ b/app/src/main/res/layout/fragment_post_creation.xml
@@ -21,6 +21,8 @@
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme"
+ android:background="?attr/colorSecondaryContainer"
+ app:titleTextColor="?attr/colorOnSecondaryContainer"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
@@ -30,6 +32,7 @@
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginStart="4dp"
+ android:tint="?attr/colorOnSecondaryContainer"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@android:string/cancel"
android:src="?attr/homeAsUpIndicator"
@@ -53,6 +56,8 @@
@@ -60,6 +65,8 @@
diff --git a/app/src/main/res/layout/fragment_post_submission.xml b/app/src/main/res/layout/fragment_post_submission.xml
index e9f94606..60b1201c 100644
--- a/app/src/main/res/layout/fragment_post_submission.xml
+++ b/app/src/main/res/layout/fragment_post_submission.xml
@@ -12,7 +12,9 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
+ android:background="?attr/colorSecondaryContainer"
android:theme="?attr/actionBarTheme"
+ app:titleTextColor="?attr/colorOnSecondaryContainer"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />