New filter implementation

This commit is contained in:
Koitharu
2023-12-06 13:37:23 +02:00
parent 6c07abec56
commit 1908ce3e46
29 changed files with 626 additions and 545 deletions

View File

@@ -70,7 +70,7 @@
<attr name="progressStyle" format="reference" />
</declare-styleable>
<declare-styleable name="FastScroller">
<declare-styleable name="FastScrollRecyclerView">
<attr name="hideScrollbar" format="boolean" />
<attr name="showBubble" format="boolean" />
<attr name="showBubbleAlways" format="boolean" />
@@ -133,32 +133,36 @@
</declare-styleable>
<declare-styleable name="PieChart">
<attr name="pieChartColors" format="reference"/>
<attr name="pieChartColors" format="reference" />
<attr name="pieChartMarginTextFirst" format="dimension"/>
<attr name="pieChartMarginTextSecond" format="dimension"/>
<attr name="pieChartMarginTextThird" format="dimension"/>
<attr name="pieChartMarginSmallCircle" format="dimension"/>
<attr name="pieChartMarginTextFirst" format="dimension" />
<attr name="pieChartMarginTextSecond" format="dimension" />
<attr name="pieChartMarginTextThird" format="dimension" />
<attr name="pieChartMarginSmallCircle" format="dimension" />
<attr name="pieChartCircleStrokeWidth" format="dimension"/>
<attr name="pieChartCirclePadding" format="dimension"/>
<attr name="pieChartCirclePaintRoundSize" format="boolean"/>
<attr name="pieChartCircleSectionSpace" format="float"/>
<attr name="pieChartCircleStrokeWidth" format="dimension" />
<attr name="pieChartCirclePadding" format="dimension" />
<attr name="pieChartCirclePaintRoundSize" format="boolean" />
<attr name="pieChartCircleSectionSpace" format="float" />
<attr name="pieChartTextCircleRadius" format="dimension"/>
<attr name="pieChartTextAmountSize" format="dimension"/>
<attr name="pieChartTextNumberSize" format="dimension"/>
<attr name="pieChartTextDescriptionSize" format="dimension"/>
<attr name="pieChartTextCircleRadius" format="dimension" />
<attr name="pieChartTextAmountSize" format="dimension" />
<attr name="pieChartTextNumberSize" format="dimension" />
<attr name="pieChartTextDescriptionSize" format="dimension" />
<attr name="pieChartTextAmountColor" format="color"/>
<attr name="pieChartTextNumberColor" format="color"/>
<attr name="pieChartTextDescriptionColor" format="color"/>
<attr name="pieChartTextAmountColor" format="color" />
<attr name="pieChartTextNumberColor" format="color" />
<attr name="pieChartTextDescriptionColor" format="color" />
<attr name="pieChartTextAmount" format="string"/>
<attr name="pieChartTextAmount" format="string" />
</declare-styleable>
<declare-styleable name="NestedRecyclerView">
<attr name="maxHeight" />
</declare-styleable>
<declare-styleable name="ChipsView">
<attr name="chipStyle" />
</declare-styleable>
</resources>

View File

@@ -542,4 +542,5 @@
<string name="apply">Apply</string>
<string name="error_filter_locale_genre_not_supported">Filtering by both genres and locale is not supported by this source</string>
<string name="error_filter_states_genre_not_supported">Filtering by both genres and states is not supported by this source</string>
<string name="genres_search_hint">Start typing the genre name</string>
</resources>

View File

@@ -108,21 +108,11 @@
</style>
<style name="Widget.Kotatsu.Chip" parent="Widget.Material3.Chip.Suggestion">
<item name="chipBackgroundColor">?attr/m3ColorBackground</item>
<item name="android:textColor">?attr/colorOnSurfaceVariant</item>
<item name="chipStrokeColor">?attr/colorOutline</item>
<item name="chipIconTint">?attr/colorControlNormal</item>
<item name="rippleColor">?attr/colorControlHighlight</item>
<!-- Custom chip states -->
<item name="android:clickable">true</item>
<item name="android:focusable">true</item>
</style>
<!-- Smaller text/height -->
<item name="chipMinHeight">28dp</item>
<style name="Widget.Kotatsu.Chip.Filter" parent="Widget.Material3.Chip.Filter">
<!-- Collapse horizontal margin -->
<item name="chipMinTouchTargetSize">28dp</item>
</style>
<style name="Widget.Kotatsu.Button.More" parent="Widget.Material3.Button.TextButton">