diff --git a/app/build.gradle b/app/build.gradle
index 2e0a0248..5683d8e9 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -69,10 +69,10 @@ dependencies {
implementation "com.google.android.material:material:1.4.0"
- implementation "androidx.activity:activity-ktx:1.3.1"
+ implementation "androidx.activity:activity-ktx:1.4.0"
implementation "androidx.appcompat:appcompat:1.3.1"
implementation "androidx.constraintlayout:constraintlayout:2.1.1"
- implementation "androidx.core:core-ktx:1.6.0"
+ implementation "androidx.core:core-ktx:1.7.0"
implementation "androidx.palette:palette-ktx:1.0.0"
implementation "androidx.preference:preference-ktx:1.1.1"
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
@@ -88,7 +88,7 @@ dependencies {
implementation "com.google.android.exoplayer:exoplayer:$exoplayerVersion"
implementation "com.google.android.exoplayer:extension-mediasession:$exoplayerVersion"
- implementation "com.google.code.gson:gson:2.8.8"
+ implementation "com.google.code.gson:gson:2.8.9"
implementation 'com.android.volley:volley:1.2.1'
}
diff --git a/app/src/main/java/org/y20k/transistor/helpers/UiHelper.kt b/app/src/main/java/org/y20k/transistor/helpers/UiHelper.kt
index d6d6b2e4..0667d1cf 100644
--- a/app/src/main/java/org/y20k/transistor/helpers/UiHelper.kt
+++ b/app/src/main/java/org/y20k/transistor/helpers/UiHelper.kt
@@ -156,7 +156,7 @@ object UiHelper {
*/
abstract class SwipeToMarkStarredCallback(context: Context): ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.RIGHT) {
- private val starIcon = ContextCompat.getDrawable(context, R.drawable.ic_star_24dp)
+ private val starIcon = ContextCompat.getDrawable(context, R.drawable.ic_marked_starred_star_24dp)
private val intrinsicWidth: Int = starIcon?.intrinsicWidth ?: 0
private val intrinsicHeight: Int = starIcon?.intrinsicHeight ?: 0
private val background: ColorDrawable = ColorDrawable()
diff --git a/app/src/main/res/drawable/circular_progressbar.xml b/app/src/main/res/drawable/circular_progressbar.xml
deleted file mode 100644
index d5bb78ac..00000000
--- a/app/src/main/res/drawable/circular_progressbar.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/circular_progressbar_background.xml b/app/src/main/res/drawable/circular_progressbar_background.xml
deleted file mode 100644
index 0a799bd5..00000000
--- a/app/src/main/res/drawable/circular_progressbar_background.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_star_24dp.xml b/app/src/main/res/drawable/ic_marked_starred_star_24dp.xml
similarity index 100%
rename from app/src/main/res/drawable/ic_star_24dp.xml
rename to app/src/main/res/drawable/ic_marked_starred_star_24dp.xml
diff --git a/app/src/main/res/drawable/ic_star_default_24dp.xml b/app/src/main/res/drawable/ic_star_default_24dp.xml
new file mode 100644
index 00000000..b8750ed3
--- /dev/null
+++ b/app/src/main/res/drawable/ic_star_default_24dp.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/layout/card_add_new_station.xml b/app/src/main/res/layout/card_add_new_station.xml
index 148e29d0..f9662d71 100644
--- a/app/src/main/res/layout/card_add_new_station.xml
+++ b/app/src/main/res/layout/card_add_new_station.xml
@@ -10,7 +10,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
- android:layout_marginTop="8dp"
+ android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="16dp"
app:cardBackgroundColor="@color/list_card_background"
@@ -36,7 +36,7 @@
android:id="@+id/card_settings"
android:layout_width="wrap_content"
android:layout_height="0dp"
- android:layout_marginTop="8dp"
+ android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="16dp"
app:cardBackgroundColor="@color/list_card_background"
diff --git a/app/src/main/res/layout/card_station.xml b/app/src/main/res/layout/card_station.xml
index e33cc1aa..340b2480 100644
--- a/app/src/main/res/layout/card_station.xml
+++ b/app/src/main/res/layout/card_station.xml
@@ -5,7 +5,10 @@
android:id="@+id/station_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="16dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginBottom="0dp"
app:cardBackgroundColor="@color/list_card_background"
app:cardCornerRadius="4dp">
@@ -55,7 +58,7 @@
app:layout_constraintStart_toEndOf="@+id/station_icon"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.535"
- app:srcCompat="@drawable/ic_star_24dp"
+ app:srcCompat="@drawable/ic_star_default_24dp"
tools:visibility="visible" />
+ app:layout_constraintTop_toBottomOf="@+id/no_results_text_view"
+ app:layout_constraintVertical_bias="0" />
\ No newline at end of file
diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml
index 10e5e1a8..49c5c3d5 100644
--- a/app/src/main/res/values-night/colors.xml
+++ b/app/src/main/res/values-night/colors.xml
@@ -3,36 +3,32 @@
@color/transistor_neutral_black
- @color/transistor_neutral_black
+ @color/transistor_neutral_darker
@color/transistor_neutral_white
- @color/transistor_neutral_black
-
+ @color/transistor_neutral_darker
- @color/transistor_neutral_white
+ @color/transistor_neutral_lighter
@color/transistor_neutral_light
@color/transistor_accent_intense
- @color/transistor_neutral_white
- @color/transistor_neutral_very_light
- @color/transistor_neutral_light
+ @color/transistor_neutral_lighter
+ @color/transistor_neutral_light
@color/transistor_neutral_very_light
@color/transistor_accent_intense
@color/transistor_accent_light
- @color/transistor_neutral_white
@color/transistor_neutral_very_dark
@color/transistor_neutral_darker
- @color/transistor_neutral_very_light
- @color/transistor_neutral_white
- @color/transistor_neutral_white
+ @color/transistor_neutral_lighter
+ @color/transistor_neutral_lighter
+ @color/transistor_neutral_lighter
@color/transistor_neutral_very_dark
- @color/transistor_accent_dimmed
@color/transistor_neutral_very_dark
- @color/escapepod_red
- @color/transistor_accent_dimmed
- @color/transistor_neutral_medium_light
+ @color/transistor_red
+ @color/transistor_neutral_medium_light
+ @color/transistor_neutral_very_light
@color/transistor_neutral_darker
@color/transistor_neutral_dark
diff --git a/app/src/main/res/values-night/styles.xml b/app/src/main/res/values-night/styles.xml
index 49e1e186..f352faf4 100644
--- a/app/src/main/res/values-night/styles.xml
+++ b/app/src/main/res/values-night/styles.xml
@@ -9,7 +9,7 @@
- @color/transistor_neutral_white
- @color/transistor_accent_intense
-
+
- false
- @color/status_bar_background
diff --git a/app/src/main/res/values-v31/colors.xml b/app/src/main/res/values-v31/colors.xml
index 8ac09422..e3ddd9b5 100644
--- a/app/src/main/res/values-v31/colors.xml
+++ b/app/src/main/res/values-v31/colors.xml
@@ -9,40 +9,19 @@
- #FF595959
@android:color/system_neutral1_600
-
- #FF414141
@android:color/system_neutral1_800
-
- #FF2D2D2D
@android:color/system_neutral1_900
-
- #FF7D7D7D
@android:color/system_neutral1_300
-
- #FFDADADA
@android:color/system_neutral1_100
-
- #FFDADADA
@android:color/system_neutral1_50
-
- #FFF2F2F2
@android:color/system_neutral1_10
- #FFDC3D33
@android:color/system_accent1_100
-
- #FFE17E77
@android:color/system_accent1_50
-
- #FFAD261E
@android:color/system_accent1_600
- #FF121212
@android:color/system_neutral1_1000
-
- #FFFFFFFF
@android:color/system_neutral1_0
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index e9b9c242..3eb62325 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -3,12 +3,10 @@
@color/transistor_neutral_lighter
- @color/transistor_neutral_white
- @color/transistor_neutral_very_light
+ @color/transistor_neutral_light
@color/transistor_neutral_darker
- @color/transistor_neutral_white
-
+ @color/transistor_neutral_light
@color/transistor_neutral_darker
@color/transistor_neutral_dark
@@ -16,27 +14,24 @@
@color/transistor_neutral_dark
@color/transistor_neutral_medium_light
- @color/transistor_neutral_light
@color/transistor_neutral_very_light
@color/transistor_accent_intense
@color/transistor_accent_light
- @color/transistor_neutral_white
@color/transistor_neutral_darker
@color/transistor_neutral_dark
+ @color/transistor_neutral_white
@color/transistor_neutral_white
@color/transistor_neutral_white
- @color/transistor_neutral_white
- @color/transistor_accent_intense
- @color/transistor_neutral_very_light
- @color/escapepod_red
+ @color/transistor_neutral_very_light
+ @color/transistor_neutral_lighter
+ @color/transistor_red
@color/transistor_neutral_medium_light
@color/transistor_neutral_very_light
- @color/transistor_neutral_light
@color/transistor_neutral_very_light
- @color/transistor_neutral_light
+ @color/transistor_neutral_lighter
#FF595959
@@ -55,7 +50,7 @@
#FFFFFFFF
#00ffffff
- #FFDC3D33
+ #FFDC3D33
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 20b6b985..12c9a1f3 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -9,7 +9,7 @@
- @color/transistor_neutral_very_dark
- @color/transistor_accent_dimmed
-
+
- true
- @color/status_bar_background
diff --git a/metadata/en-US/changelogs/88.txt b/metadata/en-US/changelogs/88.txt
new file mode 100644
index 00000000..9d4c350a
--- /dev/null
+++ b/metadata/en-US/changelogs/88.txt
@@ -0,0 +1,7 @@
+# v4.0.17 - Andy Warhol
+
+**2021-11-05**
+
+- app theme now uses "dynamic colors" (Material You) on Android 12
+- small bug fixes
+- updated translations