From 6f3e4628c293d4def31c0271985c91527f4ec8b7 Mon Sep 17 00:00:00 2001
From: SlaVcE <102253539+SlaVcE14@users.noreply.github.com>
Date: Sun, 29 May 2022 03:15:08 +0200
Subject: [PATCH] App Material 3 Colors
---
SJDialog/build.gradle | 2 +-
.../main/res/drawable/dialog_background.xml | 2 +-
.../src/main/res/drawable/ripple_button.xml | 4 +-
.../src/main/res/layout/message_dialog.xml | 3 +-
SJDialog/src/main/res/layout/popup_panel.xml | 1 +
SJDialog/src/main/res/values-night/colors.xml | 11 ---
SJDialog/src/main/res/values-night/themes.xml | 45 ++++++++++--
SJDialog/src/main/res/values/colors.xml | 70 +++++++++++++++++--
SJDialog/src/main/res/values/themes.xml | 48 +++++++++++--
.../src/main/res/values/themes_overlay.xml | 9 +++
10 files changed, 164 insertions(+), 31 deletions(-)
delete mode 100644 SJDialog/src/main/res/values-night/colors.xml
create mode 100644 SJDialog/src/main/res/values/themes_overlay.xml
diff --git a/SJDialog/build.gradle b/SJDialog/build.gradle
index af4aa05..8423c5b 100644
--- a/SJDialog/build.gradle
+++ b/SJDialog/build.gradle
@@ -29,7 +29,7 @@ android {
dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
- implementation 'com.google.android.material:material:1.5.0'
+ implementation 'com.google.android.material:material:1.6.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
diff --git a/SJDialog/src/main/res/drawable/dialog_background.xml b/SJDialog/src/main/res/drawable/dialog_background.xml
index 9eebe7d..e2f30af 100644
--- a/SJDialog/src/main/res/drawable/dialog_background.xml
+++ b/SJDialog/src/main/res/drawable/dialog_background.xml
@@ -1,7 +1,7 @@
-
+
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/ripple_button.xml b/SJDialog/src/main/res/drawable/ripple_button.xml
index 68a7f56..8d49b2e 100644
--- a/SJDialog/src/main/res/drawable/ripple_button.xml
+++ b/SJDialog/src/main/res/drawable/ripple_button.xml
@@ -1,10 +1,10 @@
+ android:color="#ffffff">
-
-
+
diff --git a/SJDialog/src/main/res/layout/message_dialog.xml b/SJDialog/src/main/res/layout/message_dialog.xml
index bac124f..b0e4382 100644
--- a/SJDialog/src/main/res/layout/message_dialog.xml
+++ b/SJDialog/src/main/res/layout/message_dialog.xml
@@ -21,10 +21,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
+ android:layout_marginHorizontal="10dp"
android:layout_marginTop="20dp"
android:layout_weight="1"
- android:layout_marginHorizontal="10dp"
android:text="Title"
+ android:textColor="?colorOnSurface"
android:textAlignment="center"
android:textSize="25dp" />
-
- #0060f4
- #FF000000
- #FFFFFFFF
-
- #333333
- #4a4a4a
-
- #BDBDBD
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/values-night/themes.xml b/SJDialog/src/main/res/values-night/themes.xml
index 2dcd10e..00659d7 100644
--- a/SJDialog/src/main/res/values-night/themes.xml
+++ b/SJDialog/src/main/res/values-night/themes.xml
@@ -1,6 +1,35 @@
-
-
-
@@ -14,7 +43,15 @@
- true
- true
- ?android:attr/textAppearanceSmallInverse
- - @android:color/primary_text_dark
+ - @color/md_theme_dark_onPrimaryContainer
- center_vertical|center_horizontal
+
+
+
\ No newline at end of file
diff --git a/SJDialog/src/main/res/values/colors.xml b/SJDialog/src/main/res/values/colors.xml
index 71ab3f0..1ae3c96 100644
--- a/SJDialog/src/main/res/values/colors.xml
+++ b/SJDialog/src/main/res/values/colors.xml
@@ -1,11 +1,67 @@
-
- #0060f4
- #FF000000
- #FFFFFFFF
+ #0053DC
+ #FFFFFF
+ #DAE2FF
+ #00174D
+ #585E71
+ #FFFFFF
+ #DCE1F9
+ #151B2C
+ #433EF7
+ #FFFFFF
+ #E1E0FF
+ #07006D
+ #BA1B1B
+ #FFDAD4
+ #FFFFFF
+ #410001
+ #FEFBFF
+ #1B1B1F
+ #FEFBFF
+ #1B1B1F
+ #E2E2EC
+ #44464E
+ #75767F
+ #F2F0F5
+ #303033
+ #B2C5FF
+ #000000
+ #B2C5FF
+ #B2C5FF
+ #002A79
+ #003EA9
+ #DAE2FF
+ #C1C6DD
+ #2A3042
+ #414659
+ #DCE1F9
+ #C0C1FF
+ #1200AA
+ #2510E1
+ #E1E0FF
+ #FFB4A9
+ #930006
+ #680003
+ #FFDAD4
+ #1B1B1F
+ #E3E1E6
+ #1B1B1F
+ #E3E1E6
+ #44464E
+ #C6C6D0
+ #8F909A
+ #1B1B1F
+ #E3E1E6
+ #0053DC
+ #000000
+ #0053DC
+ #0060F4
+ #BA1B1B
+ #625FCD
- #E5E5E5
- #D5D5D5
- #BDBDBD
+ #9C4146
+ #FFFFFF
+ #FFDADB
+ #400008
\ No newline at end of file
diff --git a/SJDialog/src/main/res/values/themes.xml b/SJDialog/src/main/res/values/themes.xml
index 2dcd10e..7b6985d 100644
--- a/SJDialog/src/main/res/values/themes.xml
+++ b/SJDialog/src/main/res/values/themes.xml
@@ -1,6 +1,35 @@
-
-
-
@@ -14,7 +43,18 @@
- true
- true
- ?android:attr/textAppearanceSmallInverse
- - @android:color/primary_text_dark
+ - @color/md_theme_light_onPrimaryContainer
- center_vertical|center_horizontal
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SJDialog/src/main/res/values/themes_overlay.xml b/SJDialog/src/main/res/values/themes_overlay.xml
new file mode 100644
index 0000000..a4dae0f
--- /dev/null
+++ b/SJDialog/src/main/res/values/themes_overlay.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file