bugfixes and themes

This commit is contained in:
Finnley Somdahl 2023-10-27 00:47:44 -05:00
parent 960c2b4113
commit 9c0ef7a788
57 changed files with 699 additions and 381 deletions

View file

@ -51,13 +51,9 @@
android:text="@string/extensions"
android:textSize="28sp" />
<ImageView
android:id="@+id/settingsLogo"
<Space
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_gravity="bottom"
app:srcCompat="@drawable/anim_splash"
tools:ignore="ContentDescription" />
android:layout_height="80dp" />
</LinearLayout>
@ -69,13 +65,38 @@
tools:ignore="UseCompoundDrawables">
</LinearLayout>
<SearchView
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/searchView"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginTop="0dp"
android:layoutDirection="ltr" />
android:layout_height="56dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:transitionName="@string/search"
app:boxBackgroundColor="@color/bg"
app:boxBackgroundMode="outline"
app:boxCornerRadiusBottomEnd="28dp"
app:boxCornerRadiusBottomStart="28dp"
app:boxCornerRadiusTopEnd="28dp"
app:boxCornerRadiusTopStart="28dp"
app:endIconDrawable="@drawable/ic_round_search_24"
app:hintAnimationEnabled="true">
<AutoCompleteTextView
android:id="@+id/searchViewText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="@font/poppins_bold"
android:imeOptions="actionSearch"
android:inputType="textPersonName"
android:selectAllOnFocus="true"
android:padding="8dp"
android:textSize="14sp"
app:boxStrokeColor="@color/text_input_layout_stroke_color"
tools:ignore="LabelFor,TextContrastCheck" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
@ -84,15 +105,26 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabMode="fixed"
app:tabTextColor="?attr/colorOnBackground"
selectedTabIndicatorColor="?attr/colorPrimary"
app:tabIndicatorColor="?attr/colorPrimary"
app:tabGravity="fill">
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Anime"/>
android:text="Installed Anime"/>
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Manga"/>
android:text="Available Anime"/>
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Installed Manga"/>
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Available Manga"/>
</com.google.android.material.tabs.TabLayout>
<androidx.viewpager2.widget.ViewPager2

View file

@ -41,13 +41,13 @@
app:abb_animationDuration="300"
app:abb_animationInterpolator="@anim/over_shoot"
app:abb_badgeBackgroundColor="#F44336"
app:abb_indicatorColor="?attr/colorSecondary"
app:abb_indicatorColor="?attr/colorOnPrimaryContainer"
app:abb_indicatorLocation="bottom"
app:abb_indicatorMargin="28dp"
app:abb_selectedTabType="text"
app:abb_tabColor="?attr/colorSecondary"
app:abb_tabColorDisabled="?attr/colorSecondaryContainer"
app:abb_tabColorSelected="?attr/colorPrimary"
app:abb_tabColor="?attr/colorOnPrimary"
app:abb_tabColorDisabled="?attr/colorOnSecondary"
app:abb_tabColorSelected="?attr/colorOnPrimaryContainer"
app:abb_tabs="@menu/bottom_navbar_menu"
app:abb_textAppearance="@style/NavBarText"
tools:visibility="visible" />

View file

@ -133,7 +133,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:cardBackgroundColor="#000000"
app:cardBackgroundColor="?attr/colorSurface"
app:cardCornerRadius="16dp"
app:contentPadding="8dp"
app:strokeColor="?attr/colorSecondary"
@ -148,7 +148,7 @@
android:layout_marginEnd="8dp"
android:fontFamily="@font/poppins_bold"
android:text="@string/app_name"
android:textColor="?android:colorBackground"
android:textColor="?attr/colorOnSurface"
android:textSize="16sp" />
</com.google.android.material.card.MaterialCardView>
@ -170,7 +170,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:cardBackgroundColor="#000000"
app:cardBackgroundColor="?attr/colorSurface"
app:cardCornerRadius="16dp"
app:contentPadding="8dp"
app:strokeColor="?attr/colorSecondary"
@ -185,7 +185,7 @@
android:layout_marginEnd="8dp"
android:fontFamily="@font/poppins_bold"
android:text="@string/app_name"
android:textColor="?android:colorBackground"
android:textColor="?attr/colorOnSurface"
android:textSize="16sp" />
</com.google.android.material.card.MaterialCardView>

View file

@ -123,6 +123,7 @@
android:text="@string/add"
android:textAllCaps="true"
android:textColor="?attr/colorPrimary"
app:strokeColor="?attr/colorPrimary"
android:textSize="14sp"
android:textStyle="bold"
app:cornerRadius="16dp"

View file

@ -161,16 +161,34 @@
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/settingsUseMaterialYou"
android:id="@+id/settingsUseMaterialYou"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="false"
android:drawableStart="@drawable/ic_round_new_releases_24"
android:drawablePadding="16dp"
android:elegantTextHeight="true"
android:fontFamily="@font/poppins_bold"
android:minHeight="64dp"
android:text="@string/use_material_you"
android:textAlignment="viewStart"
android:textColor="?attr/colorOnBackground"
app:cornerRadius="0dp"
app:drawableTint="?attr/colorPrimary"
app:showText="false"
app:thumbTint="@color/button_switch_track" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/settingsUseOLED"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="false"
android:drawableStart="@drawable/ic_round_new_releases_24"
android:drawableStart="@drawable/ic_round_brightness_4_24"
android:drawablePadding="16dp"
android:elegantTextHeight="true"
android:fontFamily="@font/poppins_bold"
android:minHeight="64dp"
android:text="@string/use_material_you"
android:text="Use OLED theme variant"
android:textAlignment="viewStart"
android:textColor="?attr/colorOnBackground"
app:cornerRadius="0dp"

View file

@ -248,7 +248,8 @@
android:valueTo="10"
app:labelBehavior="gone"
app:thumbElevation="0dp"
app:trackColorInactive="?attr/colorSecondary"
app:trackColorInactive="?attr/colorOnSecondary"
app:trackColorActive="?attr/colorSecondary"
app:trackHeight="24dp" />
<ImageView
@ -290,7 +291,8 @@
android:valueTo="10"
app:labelBehavior="gone"
app:thumbElevation="0dp"
app:trackColorInactive="?attr/colorSecondary"
app:trackColorInactive="?attr/colorOnSecondary"
app:trackColorActive="?attr/colorSecondary"
app:trackHeight="24dp" />
<ImageView

View file

@ -41,12 +41,13 @@
android:layout_height="64dp"
android:layout_gravity="bottom|center_horizontal"
android:layout_margin="32dp"
android:backgroundTint="?attr/colorPrimaryContainer"
android:fontFamily="@font/poppins_bold"
android:text="@string/login"
android:textColor="?attr/colorOnPrimary"
android:textColor="?attr/colorOnPrimaryContainer"
app:cornerRadius="16dp"
app:icon="@drawable/ic_anilist"
app:iconTint="@color/button_icon" />
app:iconTint="?attr/colorOnPrimaryContainer" />
<LinearLayout
android:layout_width="wrap_content"

View file

@ -65,6 +65,7 @@
android:layout_height="match_parent"
android:layout_marginTop="4dp"
android:backgroundTint="?attr/colorPrimaryContainer"
app:strokeColor="@color/text_input_layout_stroke_color"
app:cardCornerRadius="26dp">
<com.google.android.material.imageview.ShapeableImageView

View file

@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
app:cardBackgroundColor="?android:colorBackground"
android:background="@drawable/card_outline"
app:cardCornerRadius="12dp">
<LinearLayout

View file

@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_margin="8dp"
app:cardBackgroundColor="?android:colorBackground"
android:background="@drawable/card_outline"
app:cardCornerRadius="16dp">
<LinearLayout

View file

@ -8,7 +8,7 @@
android:layout_margin="8dp"
android:clipToPadding="false"
android:translationZ="8dp"
app:cardBackgroundColor="?android:colorBackground"
android:background="@drawable/card_outline"
app:cardCornerRadius="16dp"
app:cardElevation="4dp">

View file

@ -8,7 +8,7 @@
android:layout_margin="8dp"
android:backgroundTintMode="src_atop"
android:longClickable="true"
app:cardBackgroundColor="?attr/colorSurface"
android:background="@drawable/card_outline"
app:cardCornerRadius="16dp">
<View

View file

@ -67,6 +67,7 @@
android:layout_height="match_parent"
android:layout_marginTop="4dp"
android:backgroundTint="?attr/colorPrimaryContainer"
app:strokeColor="@color/text_input_layout_stroke_color"
app:cardCornerRadius="26dp">
<com.google.android.material.imageview.ShapeableImageView

View file

@ -55,7 +55,7 @@
android:layout_marginStart="2dp"
android:fontFamily="@font/poppins_bold"
android:paddingTop="2dp"
android:textColor="@color/bg_white"
android:textColor="?attr/colorOnPrimary"
android:textSize="12sp"
tools:ignore="TextContrastCheck"
tools:text="0.0" />
@ -65,6 +65,7 @@
android:layout_width="12dp"
android:layout_height="match_parent"
app:srcCompat="@drawable/ic_round_star_24"
app:tint="?attr/colorOnPrimary"
tools:ignore="ContentDescription" />
</LinearLayout>

View file

@ -74,7 +74,7 @@
android:layout_marginStart="2dp"
android:fontFamily="@font/poppins_bold"
android:paddingTop="2dp"
android:textColor="@color/bg_white"
android:textColor="?attr/colorOnPrimary"
android:textSize="12sp"
tools:ignore="TextContrastCheck"
tools:text="0.0" />
@ -84,6 +84,7 @@
android:layout_width="12dp"
android:layout_height="match_parent"
app:srcCompat="@drawable/ic_round_star_24"
app:tint="?attr/colorOnPrimary"
tools:ignore="ContentDescription" />
</LinearLayout>

View file

@ -72,7 +72,7 @@
android:layout_marginStart="2dp"
android:fontFamily="@font/poppins_bold"
android:paddingTop="2dp"
android:textColor="@color/bg_white"
android:textColor="?attr/colorOnPrimary"
android:textSize="12sp"
tools:ignore="TextContrastCheck"
tools:text="0.0" />
@ -82,6 +82,7 @@
android:layout_width="12dp"
android:layout_height="match_parent"
app:srcCompat="@drawable/ic_round_star_24"
app:tint="?attr/colorOnPrimary"
tools:ignore="ContentDescription" />
</LinearLayout>

View file

@ -92,7 +92,7 @@
android:layout_marginStart="2dp"
android:fontFamily="@font/poppins_bold"
android:paddingTop="2dp"
android:textColor="@color/bg_white"
android:textColor="?attr/colorOnPrimary"
android:textSize="12sp"
tools:ignore="TextContrastCheck"
tools:text="0.0" />
@ -102,6 +102,7 @@
android:layout_width="12dp"
android:layout_height="match_parent"
app:srcCompat="@drawable/ic_round_star_24"
app:tint="?attr/colorOnPrimary"
tools:ignore="ContentDescription" />
</LinearLayout>

View file

@ -60,6 +60,8 @@
android:layout_weight="1"
android:layoutDirection="inherit"
android:text="@string/list_only"
android:textColor="?attr/colorOnBackground"
app:buttonTint="?attr/colorPrimary"
android:visibility="visible"
app:checkedState="indeterminate"
tools:ignore="TextContrastCheck,TouchTargetSizeCheck" />
@ -75,7 +77,8 @@
android:text="@string/adult"
android:textAlignment="textEnd"
android:visibility="visible"
app:buttonTint="?attr/colorPrimaryContainer"
android:textColor="?attr/colorOnBackground"
app:buttonTint="?attr/colorPrimary"
tools:ignore="TextContrastCheck,TouchTargetSizeCheck" />
</LinearLayout>

View file

@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:colorBackground">
android:background="@color/bg_black">
<ImageView
android:id="@+id/splashImage"