Some UI changes
This commit is contained in:
@@ -3,15 +3,14 @@ package org.koitharu.kotatsu.base.ui.widgets
|
|||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
import androidx.appcompat.widget.AppCompatImageView
|
|
||||||
import androidx.core.content.withStyledAttributes
|
import androidx.core.content.withStyledAttributes
|
||||||
|
import com.google.android.material.imageview.ShapeableImageView
|
||||||
import org.koitharu.kotatsu.R
|
import org.koitharu.kotatsu.R
|
||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
|
|
||||||
class CoverImageView @JvmOverloads constructor(
|
class CoverImageView @JvmOverloads constructor(
|
||||||
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0,
|
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0,
|
||||||
) : AppCompatImageView(context, attrs, defStyleAttr) {
|
) : ShapeableImageView(context, attrs, defStyleAttr) {
|
||||||
|
|
||||||
private var orientation: Int = HORIZONTAL
|
private var orientation: Int = HORIZONTAL
|
||||||
|
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ class CategoriesActivity : BaseActivity<ActivityCategoriesBinding>(),
|
|||||||
override fun onMove(
|
override fun onMove(
|
||||||
recyclerView: RecyclerView,
|
recyclerView: RecyclerView,
|
||||||
viewHolder: RecyclerView.ViewHolder,
|
viewHolder: RecyclerView.ViewHolder,
|
||||||
target: RecyclerView.ViewHolder
|
target: RecyclerView.ViewHolder,
|
||||||
): Boolean = true
|
): Boolean = true
|
||||||
|
|
||||||
override fun onSwiped(viewHolder: RecyclerView.ViewHolder, direction: Int) = Unit
|
override fun onSwiped(viewHolder: RecyclerView.ViewHolder, direction: Int) = Unit
|
||||||
@@ -160,7 +160,7 @@ class CategoriesActivity : BaseActivity<ActivityCategoriesBinding>(),
|
|||||||
target: RecyclerView.ViewHolder,
|
target: RecyclerView.ViewHolder,
|
||||||
toPos: Int,
|
toPos: Int,
|
||||||
x: Int,
|
x: Int,
|
||||||
y: Int
|
y: Int,
|
||||||
) {
|
) {
|
||||||
super.onMoved(recyclerView, viewHolder, fromPos, target, toPos, x, y)
|
super.onMoved(recyclerView, viewHolder, fromPos, target, toPos, x, y)
|
||||||
viewModel.reorderCategories(fromPos, toPos)
|
viewModel.reorderCategories(fromPos, toPos)
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ abstract class MangaListFragment : BaseFragment<FragmentListBinding>(),
|
|||||||
}
|
}
|
||||||
ListMode.DETAILED_LIST -> {
|
ListMode.DETAILED_LIST -> {
|
||||||
layoutManager = LinearLayoutManager(context)
|
layoutManager = LinearLayoutManager(context)
|
||||||
val spacing = resources.getDimensionPixelOffset(R.dimen.grid_spacing)
|
val spacing = resources.getDimensionPixelOffset(R.dimen.list_spacing)
|
||||||
updatePadding(left = spacing, right = spacing)
|
updatePadding(left = spacing, right = spacing)
|
||||||
addItemDecoration(SpacingItemDecoration(spacing))
|
addItemDecoration(SpacingItemDecoration(spacing))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import android.content.Context
|
|||||||
import android.net.ConnectivityManager
|
import android.net.ConnectivityManager
|
||||||
import android.net.Network
|
import android.net.Network
|
||||||
import android.net.NetworkRequest
|
import android.net.NetworkRequest
|
||||||
import android.os.Build
|
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import kotlinx.coroutines.suspendCancellableCoroutine
|
import kotlinx.coroutines.suspendCancellableCoroutine
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
package org.koitharu.kotatsu.utils.ext
|
|
||||||
|
|
||||||
import android.content.Context
|
|
||||||
import android.graphics.drawable.Drawable
|
|
||||||
import androidx.appcompat.content.res.AppCompatResources
|
|
||||||
import androidx.core.graphics.drawable.DrawableCompat
|
|
||||||
import org.koitharu.kotatsu.R
|
|
||||||
|
|
||||||
fun navigationItemBackground(context: Context): Drawable? {
|
|
||||||
// Need to inflate the drawable and CSL via AppCompatResources to work on Lollipop
|
|
||||||
// From Google I/O repo (https://github.com/google/iosched)
|
|
||||||
var background = AppCompatResources.getDrawable(context, R.drawable.navigation_item_background)
|
|
||||||
if (background != null) {
|
|
||||||
val tint = AppCompatResources.getColorStateList(
|
|
||||||
context, R.color.navigation_item_background_tint
|
|
||||||
)
|
|
||||||
background = DrawableCompat.wrap(background.mutate())
|
|
||||||
background.setTintList(tint)
|
|
||||||
}
|
|
||||||
return background
|
|
||||||
}
|
|
||||||
4
app/src/main/res/color/navigation_bar_scrim.xml
Normal file
4
app/src/main/res/color/navigation_bar_scrim.xml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:alpha="0.7" android:color="?attr/colorSurface" />
|
||||||
|
</selector>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
android:bottom="2dp"
|
android:bottom="2dp"
|
||||||
android:left="2dp">
|
android:left="2dp">
|
||||||
<shape android:shape="rectangle">
|
<shape android:shape="rectangle">
|
||||||
<corners android:radius="4dp" />
|
<corners android:radius="12dp" />
|
||||||
<solid android:color="@color/selector_overlay" />
|
<solid android:color="@color/selector_overlay" />
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
android:bottom="2dp"
|
android:bottom="2dp"
|
||||||
android:left="2dp">
|
android:left="2dp">
|
||||||
<shape android:shape="rectangle">
|
<shape android:shape="rectangle">
|
||||||
<corners android:radius="4dp" />
|
<corners android:radius="12dp" />
|
||||||
<solid android:color="@color/selector_overlay" />
|
<solid android:color="@color/selector_overlay" />
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
android:bottom="2dp"
|
android:bottom="2dp"
|
||||||
android:left="2dp">
|
android:left="2dp">
|
||||||
<shape android:shape="rectangle">
|
<shape android:shape="rectangle">
|
||||||
<corners android:radius="4dp" />
|
<corners android:radius="12dp" />
|
||||||
<solid android:color="?android:attr/windowBackground" />
|
<solid android:color="?android:attr/windowBackground" />
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:state_checked="true">
|
|
||||||
<inset
|
|
||||||
android:insetLeft="@dimen/nav_item_background_inset_left"
|
|
||||||
android:insetRight="@dimen/nav_item_background_inset_right">
|
|
||||||
<shape>
|
|
||||||
<corners
|
|
||||||
android:bottomLeftRadius="@dimen/nav_item_background_corner_radius_left"
|
|
||||||
android:bottomRightRadius="@dimen/nav_item_background_corner_radius_right"
|
|
||||||
android:topLeftRadius="@dimen/nav_item_background_corner_radius_left"
|
|
||||||
android:topRightRadius="@dimen/nav_item_background_corner_radius_right" />
|
|
||||||
</shape>
|
|
||||||
</inset>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<color android:color="@android:color/transparent" />
|
|
||||||
</item>
|
|
||||||
</selector>
|
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
android:id="@+id/toolbar"
|
android:id="@+id/toolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="?attr/actionBarSize"
|
||||||
android:theme="?attr/actionBarTheme"/>
|
android:theme="?attr/actionBarTheme" />
|
||||||
|
|
||||||
</com.google.android.material.appbar.AppBarLayout>
|
</com.google.android.material.appbar.AppBarLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -27,21 +27,21 @@
|
|||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/toolbar_card"
|
android:id="@+id/toolbar_card"
|
||||||
android:background="@drawable/toolbar_background"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="48dp"
|
android:layout_height="48dp"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:layout_marginEnd="16dp"
|
android:layout_marginEnd="16dp"
|
||||||
android:layout_marginBottom="8dp">
|
android:layout_marginBottom="8dp"
|
||||||
|
android:background="@drawable/toolbar_background">
|
||||||
|
|
||||||
<com.google.android.material.appbar.MaterialToolbar
|
<com.google.android.material.appbar.MaterialToolbar
|
||||||
android:id="@id/toolbar"
|
android:id="@id/toolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@android:color/transparent"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:focusableInTouchMode="true"
|
android:focusableInTouchMode="true"
|
||||||
android:background="@android:color/transparent"
|
|
||||||
app:contentInsetStartWithNavigation="0dp"
|
app:contentInsetStartWithNavigation="0dp"
|
||||||
app:titleTextAppearance="@style/TextAppearance.Kotatsu.PersistentToolbarTitle"
|
app:titleTextAppearance="@style/TextAppearance.Kotatsu.PersistentToolbarTitle"
|
||||||
app:titleTextColor="?android:colorControlNormal"
|
app:titleTextColor="?android:colorControlNormal"
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:paddingStart="8dp"
|
|
||||||
android:paddingEnd="8dp">
|
|
||||||
|
|
||||||
<org.koitharu.kotatsu.base.ui.widgets.ChipsView
|
<org.koitharu.kotatsu.base.ui.widgets.ChipsView
|
||||||
android:id="@+id/chips_tags"
|
android:id="@+id/chips_tags"
|
||||||
|
|||||||
@@ -5,8 +5,6 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical|start"
|
android:gravity="center_vertical|start"
|
||||||
android:paddingStart="8dp"
|
|
||||||
android:paddingEnd="8dp"
|
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textAppearance="@style/TextAppearance.Kotatsu.SectionHeader"
|
android:textAppearance="@style/TextAppearance.Kotatsu.SectionHeader"
|
||||||
tools:text="@tools:sample/lorem[2]" />
|
tools:text="@tools:sample/lorem[2]" />
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:background="@drawable/list_selector"
|
android:background="@drawable/list_selector"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
@@ -11,9 +12,7 @@
|
|||||||
android:id="@+id/card"
|
android:id="@+id/card"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginHorizontal="8dp"
|
app:cardCornerRadius="12dp">
|
||||||
android:layout_marginTop="8dp"
|
|
||||||
android:layout_marginBottom="4dp">
|
|
||||||
|
|
||||||
<org.koitharu.kotatsu.base.ui.widgets.CoverImageView
|
<org.koitharu.kotatsu.base.ui.widgets.CoverImageView
|
||||||
android:id="@+id/imageView_cover"
|
android:id="@+id/imageView_cover"
|
||||||
@@ -28,15 +27,15 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView_title"
|
android:id="@+id/textView_title"
|
||||||
style="?attr/textAppearanceBodyMedium"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:elegantTextHeight="false"
|
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:lineSpacingExtra="-2dp"
|
|
||||||
android:maxLines="2"
|
android:maxLines="2"
|
||||||
android:paddingHorizontal="8dp"
|
android:padding="4dp"
|
||||||
android:paddingBottom="4dp"
|
android:textAppearance="?attr/textAppearanceTitleSmall"
|
||||||
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/thumbnail"
|
||||||
tools:text="Sample name" />
|
tools:text="Sample name" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -1,17 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout
|
<com.google.android.material.card.MaterialCardView
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/manga_list_item_height"
|
android:layout_height="@dimen/manga_list_item_height"
|
||||||
android:background="@drawable/list_selector"
|
app:cardCornerRadius="12dp">
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<com.google.android.material.card.MaterialCardView
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_margin="8dp">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<org.koitharu.kotatsu.base.ui.widgets.CoverImageView
|
<org.koitharu.kotatsu.base.ui.widgets.CoverImageView
|
||||||
android:id="@+id/imageView_cover"
|
android:id="@+id/imageView_cover"
|
||||||
@@ -19,10 +18,9 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Kotatsu.Cover"
|
||||||
tools:src="@tools:sample/backgrounds/scenic" />
|
tools:src="@tools:sample/backgrounds/scenic" />
|
||||||
|
|
||||||
</com.google.android.material.card.MaterialCardView>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -52,4 +50,6 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
|||||||
@@ -1,17 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout
|
<com.google.android.material.card.MaterialCardView
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/manga_list_details_item_height"
|
android:layout_height="@dimen/manga_list_details_item_height"
|
||||||
android:background="@drawable/list_selector"
|
app:cardCornerRadius="12dp">
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<com.google.android.material.card.MaterialCardView
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_margin="8dp">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<org.koitharu.kotatsu.base.ui.widgets.CoverImageView
|
<org.koitharu.kotatsu.base.ui.widgets.CoverImageView
|
||||||
android:id="@+id/imageView_cover"
|
android:id="@+id/imageView_cover"
|
||||||
@@ -19,15 +18,14 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
tools:src="@tools:sample/backgrounds/scenic"/>
|
tools:src="@tools:sample/backgrounds/scenic"
|
||||||
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Kotatsu.Cover"/>
|
||||||
</com.google.android.material.card.MaterialCardView>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_margin="8dp"
|
android:layout_margin="16dp"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@@ -85,4 +83,6 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?android:listPreferredItemHeightSmall"
|
android:layout_height="?android:listPreferredItemHeightSmall"
|
||||||
android:background="?android:windowBackground"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
|||||||
10
app/src/main/res/values-v23/themes.xml
Normal file
10
app/src/main/res/values-v23/themes.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<style name="Base.V23.Kotatsu" parent="Base.Theme.Kotatsu">
|
||||||
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="Theme.Kotatsu" parent="Base.V23.Kotatsu" />
|
||||||
|
|
||||||
|
</resources>
|
||||||
@@ -2,7 +2,8 @@
|
|||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="Base.V27.Kotatsu" parent="Base.Theme.Kotatsu">
|
<style name="Base.V27.Kotatsu" parent="Base.Theme.Kotatsu">
|
||||||
<item name="android:navigationBarColor">@android:color/transparent</item>
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||||
|
<item name="android:navigationBarColor">@color/navigation_bar_scrim</item>
|
||||||
<item name="android:windowLightNavigationBar">@bool/light_navigation_bar</item>
|
<item name="android:windowLightNavigationBar">@bool/light_navigation_bar</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -7,14 +7,9 @@
|
|||||||
<!-- Navigation -->
|
<!-- Navigation -->
|
||||||
<dimen name="nav_header_logo_size">36dp</dimen>
|
<dimen name="nav_header_logo_size">36dp</dimen>
|
||||||
<dimen name="nav_item_horizontal_padding">24dp</dimen>
|
<dimen name="nav_item_horizontal_padding">24dp</dimen>
|
||||||
<!-- Intrinsic height may vary. Use a large radius to ensure a semicircle. -->
|
|
||||||
<dimen name="nav_item_background_corner_radius_left">0dp</dimen>
|
|
||||||
<dimen name="nav_item_background_corner_radius_right">100dp</dimen>
|
|
||||||
<dimen name="nav_item_background_inset_left">0dp</dimen>
|
|
||||||
<dimen name="nav_item_background_inset_right">8dp</dimen>>
|
|
||||||
|
|
||||||
<dimen name="grid_spacing">4dp</dimen>
|
<dimen name="grid_spacing">8dp</dimen>
|
||||||
<dimen name="list_spacing">4dp</dimen>
|
<dimen name="list_spacing">8dp</dimen>
|
||||||
<dimen name="grid_spacing_outer">2dp</dimen>
|
<dimen name="grid_spacing_outer">2dp</dimen>
|
||||||
<dimen name="manga_list_item_height">86dp</dimen>
|
<dimen name="manga_list_item_height">86dp</dimen>
|
||||||
<dimen name="manga_list_details_item_height">120dp</dimen>
|
<dimen name="manga_list_details_item_height">120dp</dimen>
|
||||||
|
|||||||
@@ -137,6 +137,12 @@
|
|||||||
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<!-- Shapes -->
|
||||||
|
|
||||||
|
<style name="ShapeAppearanceOverlay.Kotatsu.Cover" parent="">
|
||||||
|
<item name="cornerSize">12dp</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<!--Preferences-->
|
<!--Preferences-->
|
||||||
|
|
||||||
<style name="PreferenceThemeOverlay.Kotatsu">
|
<style name="PreferenceThemeOverlay.Kotatsu">
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
<!-- Themes -->
|
<!-- Themes -->
|
||||||
<item name="android:windowLightStatusBar" tools:targetApi="M">@bool/light_status_bar</item>
|
<item name="android:windowLightStatusBar" tools:targetApi="M">@bool/light_status_bar</item>
|
||||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
<item name="android:statusBarColor">@color/surface_amoled</item>
|
||||||
<item name="android:navigationBarColor">@color/surface_amoled</item>
|
<item name="android:navigationBarColor">@color/surface_amoled</item>
|
||||||
<item name="android:navigationBarDividerColor" tools:targetApi="o_mr1">@null</item>
|
<item name="android:navigationBarDividerColor" tools:targetApi="o_mr1">@null</item>
|
||||||
<item name="android:enforceNavigationBarContrast" tools:targetApi="Q">false</item>
|
<item name="android:enforceNavigationBarContrast" tools:targetApi="Q">false</item>
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
<item name="appBarLayoutStyle">@style/Widget.Material3.AppBarLayout</item>
|
<item name="appBarLayoutStyle">@style/Widget.Material3.AppBarLayout</item>
|
||||||
<item name="tabStyle">@style/Widget.Kotatsu.Tabs</item>
|
<item name="tabStyle">@style/Widget.Kotatsu.Tabs</item>
|
||||||
<item name="switchStyle">@style/Widget.Kotatsu.Switch</item>
|
<item name="switchStyle">@style/Widget.Kotatsu.Switch</item>
|
||||||
<item name="materialCardViewStyle">@style/Widget.Material3.CardView.Elevated</item>
|
<item name="materialCardViewStyle">@style/Widget.Material3.CardView.Filled</item>
|
||||||
<item name="recyclerViewStyle">@style/Widget.Kotatsu.RecyclerView</item>
|
<item name="recyclerViewStyle">@style/Widget.Kotatsu.RecyclerView</item>
|
||||||
|
|
||||||
<!-- Preference text appearance -->
|
<!-- Preference text appearance -->
|
||||||
|
|||||||
Reference in New Issue
Block a user