diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt index 294e85834..3e2a63aa6 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt @@ -50,8 +50,8 @@ class SettingsGeneralController : SettingsController() { intListPreference { key = Keys.theme titleRes = R.string.pref_theme - entriesRes = arrayOf(R.string.light_theme, R.string.dark_theme) - entryValues = arrayOf("1", "2") + entriesRes = arrayOf(R.string.light_theme, R.string.dark_theme, R.string.amoled_theme) + entryValues = arrayOf("1", "2", "3") defaultValue = "1" summary = "%s" diff --git a/app/src/main/res/layout/fragment_recently_read.xml b/app/src/main/res/layout/fragment_recently_read.xml index da0200c18..aa201e3ee 100644 --- a/app/src/main/res/layout/fragment_recently_read.xml +++ b/app/src/main/res/layout/fragment_recently_read.xml @@ -9,10 +9,8 @@ android:id="@+id/recycler" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingBottom="4dp" - android:paddingTop="4dp" - android:paddingStart="2dp" - android:paddingEnd="2dp" + android:layout_marginBottom="4dp" + android:layout_marginTop="4dp" tools:listitem="@layout/item_recently_read"> diff --git a/app/src/main/res/layout/fragment_track.xml b/app/src/main/res/layout/fragment_track.xml index 7a776a10d..29e0b84a4 100644 --- a/app/src/main/res/layout/fragment_track.xml +++ b/app/src/main/res/layout/fragment_track.xml @@ -1,6 +1,8 @@ + android:layout_height="match_parent" + tools:listitem="@layout/item_track"/> diff --git a/app/src/main/res/layout/item_recently_read.xml b/app/src/main/res/layout/item_recently_read.xml index ac0c1e0a2..25c2a45c9 100644 --- a/app/src/main/res/layout/item_recently_read.xml +++ b/app/src/main/res/layout/item_recently_read.xml @@ -1,9 +1,8 @@ - + style="@style/Theme.Widget.CardView.Item" + android:padding="0dp"> + android:scaleType="centerCrop" /> + android:padding="@dimen/material_component_cards_primary_title_top_padding"> + android:textAppearance="@style/TextAppearance.Medium.Title" /> + android:textAppearance="@style/TextAppearance.Medium.Body2" /> + android:textAppearance="@style/TextAppearance.Medium.Body2.Hint" /> + android:textAppearance="@style/TextAppearance.Medium.Button.Negative" /> + android:textAppearance="@style/TextAppearance.Medium.Button" /> \ No newline at end of file diff --git a/app/src/main/res/layout/item_track.xml b/app/src/main/res/layout/item_track.xml index d05955c75..49484a42e 100644 --- a/app/src/main/res/layout/item_track.xml +++ b/app/src/main/res/layout/item_track.xml @@ -1,10 +1,10 @@ - + style="@style/Theme.Widget.CardView.Item" + android:padding="0dp"> + tools:background="#2E51A2"> + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toTopOf="parent"> + android:text="@string/title" /> @@ -63,25 +63,25 @@ android:id="@+id/divider1" android:layout_width="0dp" android:layout_height="1dp" + android:layout_marginEnd="16dp" + android:layout_marginLeft="16dp" + android:layout_marginRight="16dp" + android:layout_marginStart="16dp" android:background="?android:attr/divider" - app:layout_constraintTop_toBottomOf="@+id/title_container" app:layout_constraintLeft_toRightOf="@+id/logo" app:layout_constraintRight_toRightOf="parent" - android:layout_marginStart="16dp" - android:layout_marginLeft="16dp" - android:layout_marginEnd="16dp" - android:layout_marginRight="16dp" /> + app:layout_constraintTop_toBottomOf="@+id/title_container" /> + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toBottomOf="@+id/divider1"> @@ -105,25 +105,25 @@ android:id="@+id/divider2" android:layout_width="0dp" android:layout_height="1dp" + android:layout_marginEnd="16dp" + android:layout_marginLeft="16dp" + android:layout_marginRight="16dp" + android:layout_marginStart="16dp" android:background="?android:attr/divider" - app:layout_constraintTop_toBottomOf="@+id/status_container" app:layout_constraintLeft_toRightOf="@+id/logo" app:layout_constraintRight_toRightOf="parent" - android:layout_marginStart="16dp" - android:layout_marginLeft="16dp" - android:layout_marginEnd="16dp" - android:layout_marginRight="16dp" /> + app:layout_constraintTop_toBottomOf="@+id/status_container" /> + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toBottomOf="@+id/divider2"> @@ -147,25 +147,25 @@ android:id="@+id/divider3" android:layout_width="0dp" android:layout_height="1dp" + android:layout_marginEnd="16dp" + android:layout_marginLeft="16dp" + android:layout_marginRight="16dp" + android:layout_marginStart="16dp" android:background="?android:attr/divider" - app:layout_constraintTop_toBottomOf="@+id/chapters_container" app:layout_constraintLeft_toRightOf="@+id/logo" app:layout_constraintRight_toRightOf="parent" - android:layout_marginStart="16dp" - android:layout_marginLeft="16dp" - android:layout_marginEnd="16dp" - android:layout_marginRight="16dp" /> + app:layout_constraintTop_toBottomOf="@+id/chapters_container" /> + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toBottomOf="@+id/divider3"> diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 28bfe2212..bf8d56155 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -7,7 +7,7 @@ 16dp 16dp 16dp - 16dp + 4dp 56dp 24dp diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index a77a7ce1a..66e4210d4 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -146,12 +146,18 @@ + +