From 122601463cd41e85f73ca6a940e84e28c6734ab9 Mon Sep 17 00:00:00 2001
From: tehcneko <88844448+tehcneko@users.noreply.github.com>
Date: Sun, 3 Oct 2021 21:56:56 +0800
Subject: [PATCH] [app] Update home cards style
---
app/src/main/res/layout/fragment_home.xml | 124 +++++++++++++---------
app/src/main/res/values-night/colors.xml | 3 +
app/src/main/res/values/colors.xml | 3 +
app/src/main/res/values/themes.xml | 16 ++-
4 files changed, 87 insertions(+), 59 deletions(-)
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 3142ba1f..8b48b29a 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -74,7 +74,7 @@
android:id="@+id/status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- style="@style/HomeItem.Primary">
+ style="@style/HomeCard.Primary">
+ app:tint="@color/primary_card_primary_text" />
+ android:textColor="@color/primary_card_primary_text" />
+ android:textColor="@color/primary_card_secondary_text" />
@@ -116,7 +116,7 @@
android:id="@+id/modules"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- style="@style/HomeItem.Secondary">
+ style="@style/HomeCard.Secondary">
+ style="@style/HomeCard.Secondary">
-
+ style="@style/HomeCard.Tertiary">
-
-
-
-
+ android:padding="16dp"
+ android:orientation="horizontal"
+ android:layout_gravity="center_vertical">
-
+
+
+
+
+
+
+ style="@style/HomeCard.Tertiary">
-
-
-
-
+ android:padding="16dp"
+ android:orientation="horizontal"
+ android:layout_gravity="center_vertical">
-
+
+
+
+
+
+
+ style="@style/HomeCard.Tertiary">
-
-
-
-
+ android:padding="16dp"
+ android:orientation="horizontal"
+ android:layout_gravity="center_vertical">
+
+
+
+
+
+
diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml
index 7d7e984d..4a74743b 100644
--- a/app/src/main/res/values-night/colors.xml
+++ b/app/src/main/res/values-night/colors.xml
@@ -25,4 +25,7 @@
@color/material_grey_700
@color/material_grey_600
+
+ @color/abc_primary_text_material_light
+ @color/abc_secondary_text_material_light
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 8f03d347..1260a242 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -28,4 +28,7 @@
@color/material_grey_500
@color/material_grey_300
+
+ @color/abc_primary_text_material_dark
+ @color/abc_secondary_text_material_dark
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index f42edc9a..86d55f92 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -77,21 +77,20 @@
- 24dp
-
-
-
-