From bf218decb4721f1f05ff49551b375db60cdb1683 Mon Sep 17 00:00:00 2001
From: Brayan Oliveira <69634269+brayandso@users.noreply.github.com>
Date: Wed, 13 Mar 2024 20:27:58 -0300
Subject: [PATCH] UI: add card design to the previewers
---
AnkiDroid/src/main/res/layout/previewer.xml | 22 +++++++++++----
.../main/res/layout/template_previewer.xml | 27 ++++++++++++++-----
AnkiDroid/src/main/res/values/attrs.xml | 1 +
AnkiDroid/src/main/res/values/styles.xml | 4 +++
AnkiDroid/src/main/res/values/theme_black.xml | 1 +
AnkiDroid/src/main/res/values/theme_dark.xml | 1 +
AnkiDroid/src/main/res/values/theme_light.xml | 1 +
7 files changed, 45 insertions(+), 12 deletions(-)
diff --git a/AnkiDroid/src/main/res/layout/previewer.xml b/AnkiDroid/src/main/res/layout/previewer.xml
index 300215183994..6d89b4529ec6 100644
--- a/AnkiDroid/src/main/res/layout/previewer.xml
+++ b/AnkiDroid/src/main/res/layout/previewer.xml
@@ -5,6 +5,8 @@
android:id="@+id/root_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:fitsSystemWindows="true"
+ android:background="?attr/alternativeBackgroundColor"
tools:context=".previewer.PreviewerFragment">
-
+ style="@style/CardView.PreviewerStyle"
+ >
+
+
+
+
+ android:layout_height="match_parent"
+ >
+ app:navigationIcon="?attr/homeAsUpIndicator"
+ android:background="?attr/alternativeBackgroundColor">
-
+ style="@style/CardView.PreviewerStyle"
+ >
+
+
+
+
diff --git a/AnkiDroid/src/main/res/values/attrs.xml b/AnkiDroid/src/main/res/values/attrs.xml
index be6edcb7c93c..965287cbab76 100644
--- a/AnkiDroid/src/main/res/values/attrs.xml
+++ b/AnkiDroid/src/main/res/values/attrs.xml
@@ -116,6 +116,7 @@
+
diff --git a/AnkiDroid/src/main/res/values/styles.xml b/AnkiDroid/src/main/res/values/styles.xml
index ae55d4c46eaa..80865a1c1f75 100644
--- a/AnkiDroid/src/main/res/values/styles.xml
+++ b/AnkiDroid/src/main/res/values/styles.xml
@@ -209,4 +209,8 @@
- @color/material_blue_500
+
+
diff --git a/AnkiDroid/src/main/res/values/theme_black.xml b/AnkiDroid/src/main/res/values/theme_black.xml
index 63da016c345d..aca9646571e4 100644
--- a/AnkiDroid/src/main/res/values/theme_black.xml
+++ b/AnkiDroid/src/main/res/values/theme_black.xml
@@ -47,6 +47,7 @@
- @color/white
- @color/material_green_400
- @color/material_blue_700
+ - #000
- @drawable/footer_button_all_black
- @drawable/footer_button_all_black
diff --git a/AnkiDroid/src/main/res/values/theme_dark.xml b/AnkiDroid/src/main/res/values/theme_dark.xml
index 72f06e3684e7..7c4414983185 100644
--- a/AnkiDroid/src/main/res/values/theme_dark.xml
+++ b/AnkiDroid/src/main/res/values/theme_dark.xml
@@ -69,6 +69,7 @@
- @color/white
- @color/white
- @color/white
+ - #2a2a2a
- @color/material_blue_grey_800
- @drawable/footer_button_again_dark
diff --git a/AnkiDroid/src/main/res/values/theme_light.xml b/AnkiDroid/src/main/res/values/theme_light.xml
index 94b7df2e5b73..df122f6b00f5 100644
--- a/AnkiDroid/src/main/res/values/theme_light.xml
+++ b/AnkiDroid/src/main/res/values/theme_light.xml
@@ -61,6 +61,7 @@
- @color/white
- @color/white
- @color/white
+ - #f4f5f9
- @color/material_blue_grey_700
- @drawable/footer_button_again