Feet(Settings): UI changes (#351)

* Account

* Theme

* Extension, common, notification and anime

* manga and about

* fix(Settings): icon colours
This commit is contained in:
Sadwhy 2024-04-12 13:15:53 +06:00 committed by GitHub
parent b961701189
commit c0e3243ee6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 394 additions and 137 deletions

View file

@ -11,23 +11,54 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="31dp"
android:paddingEnd="31dp">
android:paddingStart="32dp"
android:paddingEnd="32dp">
<TextView
android:id="@+id/settingsAboutTitle"
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-16dp"
android:layout_marginTop="32dp"
app:cardBackgroundColor="@color/nav_bg_inv"
app:cardCornerRadius="16dp"
app:cardElevation="0dp">
<ImageButton
android:id="@+id/aboutSettingsBack"
android:layout_width="64dp"
android:layout_height="64dp"
android:background="@color/nav_bg_inv"
android:paddingVertical="16dp"
app:srcCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_marginTop="16dp"
android:fontFamily="@font/poppins"
android:gravity="center"
android:paddingEnd="28dp"
android:text="@string/about"
android:textSize="20sp"
android:textStyle="bold"
app:drawableStartCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:drawableTint="?attr/colorOnBackground"
tools:ignore="RtlSymmetry" />
android:layout_height="match_parent"
android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginVertical="32dp"
android:layout_weight="1"
android:text="@string/about"
android:textSize="28sp" />
<ImageView
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_gravity="center"
android:padding="24dp"
app:srcCompat="@drawable/ic_round_info_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription" />
</LinearLayout>
<Button
android:id="@+id/settingsFAQ"

View file

@ -11,23 +11,53 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="31dp"
android:paddingEnd="31dp">
android:paddingStart="32dp"
android:paddingEnd="32dp">
<TextView
android:id="@+id/settingsaccountTitle"
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-16dp"
android:layout_marginTop="32dp"
app:cardBackgroundColor="@color/nav_bg_inv"
app:cardCornerRadius="16dp"
app:cardElevation="0dp">
<ImageButton
android:id="@+id/accountSettingsBack"
android:layout_width="64dp"
android:layout_height="64dp"
android:background="@color/nav_bg_inv"
android:padding="16dp"
app:srcCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_marginTop="16dp"
android:fontFamily="@font/poppins"
android:gravity="center"
android:paddingEnd="28dp"
android:text="@string/accounts"
android:textSize="20sp"
android:textStyle="bold"
app:drawableStartCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:drawableTint="?attr/colorOnBackground"
tools:ignore="RtlSymmetry" />
android:layout_height="match_parent"
android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginVertical="32dp"
android:layout_weight="1"
android:text="@string/accounts"
android:textSize="28sp" />
<ImageView
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_gravity="center"
android:padding="24dp"
app:srcCompat="@drawable/ic_round_person_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/settingsAnilistLoginContainer"

View file

@ -6,28 +6,60 @@
android:layout_height="match_parent"
tools:context=".settings.SettingsAnimeActivity">
<LinearLayout
android:id="@+id/settingsAnimeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="31dp"
android:paddingEnd="31dp">
<TextView
android:id="@+id/settingsAnimeTitle"
<LinearLayout
android:id="@+id/settingsAnimeLayout"
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_marginTop="16dp"
android:fontFamily="@font/poppins"
android:gravity="center"
android:paddingEnd="28dp"
android:text="@string/anime"
android:textSize="20sp"
android:textStyle="bold"
app:drawableStartCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:drawableTint="?attr/colorOnBackground"
tools:ignore="RtlSymmetry" />
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="32dp"
android:paddingEnd="32dp">
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-16dp"
android:layout_marginTop="32dp"
app:cardBackgroundColor="@color/nav_bg_inv"
app:cardCornerRadius="16dp"
app:cardElevation="0dp">
<ImageButton
android:id="@+id/animeSettingsBack"
android:layout_width="64dp"
android:layout_height="64dp"
android:background="@color/nav_bg_inv"
android:padding="16dp"
app:srcCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginVertical="32dp"
android:layout_weight="1"
android:text="@string/anime"
android:textSize="28sp" />
<ImageView
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_gravity="center"
android:padding="24dp"
app:srcCompat="@drawable/ic_round_movie_filter_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
@ -201,5 +233,5 @@
app:showText="false"
app:thumbTint="@color/button_switch_track" />
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>

View file

@ -11,23 +11,55 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="31dp"
android:paddingEnd="31dp">
android:paddingStart="32dp"
android:paddingEnd="32dp">
<TextView
android:id="@+id/settingsCommonTitle"
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-16dp"
android:layout_marginTop="32dp"
app:cardBackgroundColor="@color/nav_bg_inv"
app:cardCornerRadius="16dp"
app:cardElevation="0dp">
<ImageButton
android:id="@+id/commonSettingsBack"
android:layout_width="64dp"
android:layout_height="64dp"
android:background="@color/nav_bg_inv"
android:padding="16dp"
app:srcCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_marginTop="16dp"
android:fontFamily="@font/poppins"
android:gravity="center"
android:paddingEnd="28dp"
android:text="@string/common"
android:textSize="20sp"
android:textStyle="bold"
app:drawableStartCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:drawableTint="?attr/colorOnBackground"
tools:ignore="RtlSymmetry" />
android:layout_height="match_parent"
android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginVertical="32dp"
android:layout_weight="1"
android:text="@string/common"
android:textSize="28sp" />
<ImageView
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_gravity="center"
android:padding="24dp"
app:srcCompat="@drawable/ic_lightbulb_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"

View file

@ -11,23 +11,54 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="31dp"
android:paddingEnd="31dp">
android:paddingStart="32dp"
android:paddingEnd="32dp">
<TextView
android:id="@+id/settingsExtensionsTitle"
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-16dp"
android:layout_marginTop="32dp"
app:cardBackgroundColor="@color/nav_bg_inv"
app:cardCornerRadius="16dp"
app:cardElevation="0dp">
<ImageButton
android:id="@+id/extensionSettingsBack"
android:layout_width="64dp"
android:layout_height="64dp"
android:background="@color/nav_bg_inv"
android:padding="16dp"
app:srcCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_marginTop="16dp"
android:fontFamily="@font/poppins"
android:gravity="center"
android:paddingEnd="28dp"
android:text="@string/extensions"
android:textSize="20sp"
android:textStyle="bold"
app:drawableStartCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:drawableTint="?attr/colorOnBackground"
tools:ignore="RtlSymmetry" />
android:layout_height="match_parent"
android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginVertical="32dp"
android:layout_weight="1"
android:text="@string/extensions"
android:textSize="28sp" />
<ImageView
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_gravity="center"
android:padding="24dp"
app:srcCompat="@drawable/ic_extension"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription" />
</LinearLayout>
<Button

View file

@ -11,23 +11,53 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="31dp"
android:paddingEnd="31dp">
android:paddingStart="32dp"
android:paddingEnd="32dp">
<TextView
android:id="@+id/settingsMangaTitle"
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-16dp"
android:layout_marginTop="32dp"
app:cardBackgroundColor="@color/nav_bg_inv"
app:cardCornerRadius="16dp"
app:cardElevation="0dp">
<ImageButton
android:id="@+id/mangaSettingsBack"
android:layout_width="64dp"
android:layout_height="64dp"
android:background="@color/nav_bg_inv"
android:padding="16dp"
app:srcCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_marginTop="16dp"
android:fontFamily="@font/poppins"
android:gravity="center"
android:paddingEnd="28dp"
android:text="@string/manga"
android:textSize="20sp"
android:textStyle="bold"
app:drawableStartCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:drawableTint="?attr/colorOnBackground"
tools:ignore="RtlSymmetry" />
android:layout_height="match_parent"
android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginVertical="32dp"
android:layout_weight="1"
android:text="@string/manga"
android:textSize="28sp" />
<ImageView
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_gravity="center"
android:padding="24dp"
app:srcCompat="@drawable/ic_round_import_contacts_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout

View file

@ -11,23 +11,55 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="31dp"
android:paddingEnd="31dp">
android:paddingStart="32dp"
android:paddingEnd="32dp">
<TextView
android:id="@+id/settingsNotificationsTitle"
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-16dp"
android:layout_marginTop="32dp"
app:cardBackgroundColor="@color/nav_bg_inv"
app:cardCornerRadius="16dp"
app:cardElevation="0dp">
<ImageButton
android:id="@+id/notificationSettingsBack"
android:layout_width="64dp"
android:layout_height="64dp"
android:background="@color/nav_bg_inv"
android:padding="16dp"
app:srcCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_marginTop="16dp"
android:fontFamily="@font/poppins"
android:gravity="center"
android:paddingEnd="28dp"
android:text="@string/notifications"
android:textSize="20sp"
android:textStyle="bold"
app:drawableStartCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:drawableTint="?attr/colorOnBackground"
tools:ignore="RtlSymmetry" />
android:layout_height="match_parent"
android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginVertical="32dp"
android:layout_weight="1"
android:text="@string/notifications"
android:textSize="28sp" />
<ImageView
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_gravity="center"
android:padding="24dp"
app:srcCompat="@drawable/ic_round_notifications_none_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription" />
</LinearLayout>
<Button
android:id="@+id/settingsSubscriptionsTime"

View file

@ -11,23 +11,54 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="31dp"
android:paddingEnd="31dp">
android:paddingStart="32dp"
android:paddingEnd="32dp">
<TextView
android:id="@+id/settingsThemeTitle"
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-16dp"
android:layout_marginTop="32dp"
app:cardBackgroundColor="@color/nav_bg_inv"
app:cardCornerRadius="16dp"
app:cardElevation="0dp">
<ImageButton
android:id="@+id/themeSettingsBack"
android:layout_width="64dp"
android:layout_height="64dp"
android:background="@color/nav_bg_inv"
android:padding="16dp"
app:srcCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_marginTop="16dp"
android:fontFamily="@font/poppins"
android:gravity="center"
android:paddingEnd="28dp"
android:text="@string/theme"
android:textSize="20sp"
android:textStyle="bold"
app:drawableStartCompat="@drawable/ic_round_arrow_back_ios_new_24"
app:drawableTint="?attr/colorOnBackground"
tools:ignore="RtlSymmetry" />
android:layout_height="match_parent"
android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginVertical="32dp"
android:layout_weight="1"
android:text="@string/theme"
android:textSize="28sp" />
<ImageView
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_gravity="center"
android:padding="24dp"
app:srcCompat="@drawable/ic_palette"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout