From c714b77687c6c3751ef84ea864cafbae4c568080 Mon Sep 17 00:00:00 2001
From: Cloudburst <18114966+C10udburst@users.noreply.github.com>
Date: Fri, 23 Sep 2022 16:32:38 +0200
Subject: [PATCH 1/3] add "material you" theme
---
.../lagradost/cloudstream3/CommonActivity.kt | 2 ++
app/src/main/res/values-es/array.xml | 17 ++++------------
app/src/main/res/values-pl/array.xml | 4 ++++
app/src/main/res/values-tr/array.xml | 17 ++++------------
app/src/main/res/values-vi/array.xml | 16 ++++-----------
app/src/main/res/values/array.xml | 4 ++++
app/src/main/res/values/styles.xml | 20 +++++++++++++++++++
7 files changed, 42 insertions(+), 38 deletions(-)
diff --git a/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt b/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt
index 49143498..6bd41f39 100644
--- a/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt
+++ b/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt
@@ -166,12 +166,14 @@ object CommonActivity {
"Light" -> R.style.LightMode
"Amoled" -> R.style.AmoledMode
"AmoledLight" -> R.style.AmoledModeLight
+ "Monet" -> R.style.MonetMode
else -> R.style.AppTheme
}
val currentOverlayTheme =
when (settingsManager.getString(act.getString(R.string.primary_color_key), "Normal")) {
"Normal" -> R.style.OverlayPrimaryColorNormal
+ "Monet" -> R.style.OverlayPrimaryColorMonet
"CarnationPink" -> R.style.OverlayPrimaryColorCarnationPink
"DarkGreen" -> R.style.OverlayPrimaryColorDarkGreen
"Maroon" -> R.style.OverlayPrimaryColorMaroon
diff --git a/app/src/main/res/values-es/array.xml b/app/src/main/res/values-es/array.xml
index 658ba7ae..47e747fd 100644
--- a/app/src/main/res/values-es/array.xml
+++ b/app/src/main/res/values-es/array.xml
@@ -14,19 +14,6 @@
- @id/cast_button_type_forward_30_seconds
-
- - Todos
- - Películas y TV
- - Anime
- - Documental
-
-
- - 0
- - 1
- - 2
- - 3
-
-
- @string/resolution_and_title
- @string/title
@@ -207,6 +194,7 @@
- Normal
+ - Material You
- Rosa clavel
- Verde oscuro
- Vino
@@ -225,6 +213,7 @@
- Normal
+ - Monet
- CarnationPink
- DarkGreen
- Maroon
@@ -247,12 +236,14 @@
- Gris
- Amoled
- Destello
+ - Material You
- AmoledLight
- Black
- Amoled
- Light
+ - Monet
diff --git a/app/src/main/res/values-pl/array.xml b/app/src/main/res/values-pl/array.xml
index c40b7f87..abf5b582 100644
--- a/app/src/main/res/values-pl/array.xml
+++ b/app/src/main/res/values-pl/array.xml
@@ -203,6 +203,7 @@
- Normalny
+ - Material You
- Goździk różowy
- Ciemnozielony
- Kasztanowaty
@@ -221,6 +222,7 @@
- Normal
+ - Monet
- CarnationPink
- DarkGreen
- Maroon
@@ -243,12 +245,14 @@
- Szary
- Amoled
- Flashbang
+ - Material You
- AmoledLight
- Black
- Amoled
- Light
+ - Monet
diff --git a/app/src/main/res/values-tr/array.xml b/app/src/main/res/values-tr/array.xml
index ec9acd0e..e5bb2be2 100644
--- a/app/src/main/res/values-tr/array.xml
+++ b/app/src/main/res/values-tr/array.xml
@@ -14,19 +14,6 @@
- @id/cast_button_type_forward_30_seconds
-
- - Hepsi
- - Film ve Dizi
- - Anime
- - Belgesel
-
-
- - 0
- - 1
- - 2
- - 3
-
-
- @string/resolution_and_title
- @string/title
@@ -207,6 +194,7 @@
- Normal
+ - Material You
- Karanfil Pembesi
- Koyu Yeşil
- Kestane
@@ -225,6 +213,7 @@
- Normal
+ - Monet
- CarnationPink
- DarkGreen
- Maroon
@@ -247,12 +236,14 @@
- Gri
- Amoled
- Flaş Bombası
+ - Material You
- AmoledLight
- Black
- Amoled
- Light
+ - Monet
diff --git a/app/src/main/res/values-vi/array.xml b/app/src/main/res/values-vi/array.xml
index 5e70223b..dbdc7a0d 100644
--- a/app/src/main/res/values-vi/array.xml
+++ b/app/src/main/res/values-vi/array.xml
@@ -14,18 +14,6 @@
- @id/cast_button_type_forward_30_seconds
-
- - Tất cả
- - Phim lẻ và Phim bộ
- - Anime
- - Phim tài liệu
-
-
- - 0
- - 1
- - 2
- - 3
-
- @string/resolution_and_title
@@ -207,6 +195,7 @@
- Mặc định
+ - Material You
- Hồng nhạt
- Xanh lam đậm
- Nâu sẫm
@@ -225,6 +214,7 @@
- Normal
+ - Monet
- CarnationPink
- DarkGreen
- Maroon
@@ -247,12 +237,14 @@
- Xám
- Amoled
- Sáng
+ - Material You
- AmoledLight
- Black
- Amoled
- Light
+ - Monet
diff --git a/app/src/main/res/values/array.xml b/app/src/main/res/values/array.xml
index 13d4f2dc..df97a741 100644
--- a/app/src/main/res/values/array.xml
+++ b/app/src/main/res/values/array.xml
@@ -213,6 +213,7 @@
- Normal
+ - Material You
- Carnation Pink
- Dark Green
- Maroon
@@ -231,6 +232,7 @@
- Normal
+ - Monet
- CarnationPink
- DarkGreen
- Maroon
@@ -253,12 +255,14 @@
- Gray
- Amoled
- Flashbang
+ - Material You
- AmoledLight
- Black
- Amoled
- Light
+ - Monet
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 2fb9b5b4..26c6b36c 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -95,6 +95,16 @@
- #000
+
+
+
+
+
+