Cleanup resources and code

This commit is contained in:
Koitharu
2022-03-08 18:58:15 +02:00
parent 148986b454
commit 57f3715128
65 changed files with 202 additions and 506 deletions

View File

@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="splash_color_background">#FFFFFF</color>
<color name="splash_color">#1976D2</color>
<color name="error">#BA1B1B</color>
<color name="errorContainer">#FFDAD4</color>
<color name="onError">#FFFFFF</color>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="empty" translatable="false" />
<string-array name="values_theme" translatable="false">
<item>-1</item>
<item>1</item>

View File

@@ -6,7 +6,6 @@
<dimen name="margin_small">8dp</dimen>
<!-- Navigation -->
<dimen name="nav_header_logo_size">36dp</dimen>
<dimen name="nav_item_horizontal_padding">24dp</dimen>
<dimen name="grid_spacing">8dp</dimen>
<dimen name="list_spacing">8dp</dimen>
@@ -16,15 +15,10 @@
<dimen name="chapter_list_item_height">56dp</dimen>
<dimen name="preferred_grid_width">120dp</dimen>
<dimen name="header_height">48dp</dimen>
<dimen name="elevation_large">16dp</dimen>
<dimen name="list_footer_height_inner">36dp</dimen>
<dimen name="list_footer_height_outer">48dp</dimen>
<dimen name="screen_padding">16dp</dimen>
<dimen name="feed_dividers_offset">72dp</dimen>
<dimen name="manga_badge_offset_horizontal">4dp</dimen>
<dimen name="manga_badge_offset_vertical">2dp</dimen>
<!--Text dimens-->
<dimen name="text_size_h1">22sp</dimen>
</resources>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="search_animation_duration">@android:integer/config_shortAnimTime</integer>
<integer name="manga_badge_max_character_count">3</integer>
</resources>

View File

@@ -24,8 +24,7 @@
<string name="nothing_found">Nothing found</string>
<string name="history_is_empty">No history yet</string>
<string name="read">Read</string>
<string name="add_bookmark">Add bookmark</string>
<string name="you_have_not_favourites_yet">No favourites yet</string>
<string name="you_have_not_favourites_yet">No favourites yet</string>
<string name="add_to_favourites">Favourite this</string>
<string name="add_new_category">New category</string>
<string name="add">Add</string>
@@ -45,10 +44,8 @@
<string name="updated">Updated</string>
<string name="newest">Newest</string>
<string name="by_rating">Rating</string>
<string name="all">All</string>
<string name="sort_order">Sorting order</string>
<string name="genre">Genre</string>
<string name="filter">Filter</string>
<string name="sort_order">Sorting order</string>
<string name="filter">Filter</string>
<string name="theme">Theme</string>
<string name="light">Light</string>
<string name="dark">Dark</string>
@@ -214,10 +211,8 @@
<string name="search_only_on_s">Search only on %s</string>
<string name="text_clear_search_history_prompt">Remove all recent search queries permanently?</string>
<string name="other">Other</string>
<string name="languages">Languages</string>
<string name="welcome">Welcome</string>
<string name="description">Description</string>
<string name="backup_saved">Backup saved</string>
<string name="welcome">Welcome</string>
<string name="backup_saved">Backup saved</string>
<string name="tracker_warning">Some devices have different system behavior, which may break background tasks.</string>
<string name="read_more">Read more</string>
<string name="queued">Queued</string>
@@ -226,8 +221,7 @@
<string name="chapter_is_missing">The chapter is missing</string>
<string name="about_app_translation_summary">Translate this app</string>
<string name="about_app_translation">Translation</string>
<string name="about_author">Author</string>
<string name="about_feedback">Feedback</string>
<string name="about_feedback">Feedback</string>
<string name="about_feedback_4pda">Topic on 4PDA</string>
<string name="about_support_developer">Support the developer</string>
<string name="about_support_developer_summary">If you like this app, you can send money through Yoomoney (ex. Yandex.Money)</string>
@@ -266,4 +260,5 @@
<string name="filter_load_error">Unable to load genres list</string>
<string name="reset_filter">Reset filter</string>
<string name="find_genre">Find genre</string>
<string name="onboard_text">Select languages which you want to read manga. You can change it later in settings.</string>
</resources>

View File

@@ -29,8 +29,6 @@
<item name="tabRippleColor">@color/ripple_toolbar</item>
</style>
<style name="Widget.Kotatsu.NavigationView" parent="@style/Widget.Material3.NavigationView" />
<style name="Widget.Kotatsu.SearchView" parent="@style/Widget.AppCompat.SearchView">
<item name="iconifiedByDefault">false</item>
<item name="searchIcon">@null</item>
@@ -62,28 +60,10 @@
<item name="iconPadding">16dp</item>
</style>
<style name="Widget.Kotatsu.ActionMode" parent="Widget.Material3.ActionMode">
<item name="titleTextStyle">?attr/textAppearanceHeadline6</item>
<item name="subtitleTextStyle">?attr/textAppearanceSubtitle1</item>
</style>
<style name="Widget.Kotatsu.Switch" parent="Widget.Material3.CompoundButton.Switch">
<item name="materialThemeOverlay">@style/ThemeOverlay.Kotatsu.Switch</item>
</style>
<style name="Widget.Kotatsu.Button.InlineButton" parent="Widget.Material3.Button.TextButton">
<item name="android:minHeight">0dp</item>
<item name="android:minWidth">0dp</item>
<item name="android:paddingTop">0dp</item>
<item name="android:paddingBottom">0dp</item>
<item name="android:insetTop">0dp</item>
<item name="android:insetBottom">0dp</item>
<item name="android:background">?android:attr/colorBackground</item>
<item name="backgroundTint">@null</item>
<item name="rippleColor">@null</item>
</style>
<style name="Widget.Kotatsu.RecyclerView" parent="">
<item name="fastScrollHorizontalThumbDrawable">@drawable/list_thumb</item>
<item name="fastScrollVerticalThumbDrawable">@drawable/list_thumb</item>
@@ -102,35 +82,12 @@
<item name="android:textColor">?attr/colorOnBackground</item>
</style>
<style name="TextAppearance.Kotatsu.ToolbarTitle" parent="@style/TextAppearance.Widget.AppCompat.Toolbar.Title">
<item name="android:textSize">20sp</item>
</style>
<style name="TextAppearance.Kotatsu.PersistentToolbarTitle" parent="@style/TextAppearance.AppCompat">
<item name="android:textSize">16sp</item>
</style>
<style name="TextAppearance.Kotatsu.Tab" parent="@style/TextAppearance.Design.Tab">
<item name="textAllCaps">false</item>
<item name="android:textAllCaps">false</item>
</style>
<style name="TextAppearance.Kotatsu.Button" parent="TextAppearance.Material3.TitleSmall"/>
<style name="TextAppearance.Kotatsu.ListPrimary" parent="TextAppearance.MaterialComponents.Body1">
<item name="android:letterSpacing">0</item>
</style>
<style name="TextAppearance.Kotatsu.Body2" parent="TextAppearance.MaterialComponents.Body2" />
<style name="TextAppearance.Kotatsu.H1" parent="@style/TextAppearance.Material3.HeadlineLarge">
<item name="android:textSize">@dimen/text_size_h1</item>
</style>
<style name="TextAppearance.Kotatsu.FloatingTitle" parent="TextAppearance.Material3.TitleLarge">
<item name="android:textSize">16sp</item>
</style>
<style name="TextAppearance.Kotatsu.Preference.Secondary" parent="TextAppearance.Material3.BodySmall" />
<style name="TextAppearance.Kotatsu.SectionHeader" parent="TextAppearance.Material3.LabelLarge">