mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-30 13:57:57 +01:00
Bind the margin ratio as a float preference and rename variables
- Fixed the floatListPreference that was used in the SettingsReaderController - Created new extension for binding float preferences in the ReaderSettingsSheet - Renamed the ratio variables to include the `webtoon` naming
This commit is contained in:
@@ -254,7 +254,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:entries="@array/margin_ratio"
|
||||
android:entries="@array/webtoon_margin_ratio"
|
||||
app:layout_constraintLeft_toRightOf="@id/verticalcenter"
|
||||
app:layout_constraintRight_toRightOf="@id/spinner_end"
|
||||
app:layout_constraintTop_toBottomOf="@id/crop_borders_webtoon"/>
|
||||
|
||||
@@ -53,12 +53,22 @@
|
||||
<item>@string/scale_type_smart_fit</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="margin_ratio">
|
||||
<string-array name="webtoon_margin_ratio">
|
||||
<item>@string/webtoon_margin_ratio_0</item>
|
||||
<item>@string/webtoon_margin_ratio_10</item>
|
||||
<item>@string/webtoon_margin_ratio_15</item>
|
||||
<item>@string/webtoon_margin_ratio_20</item>
|
||||
<item>@string/webtoon_margin_ratio_25</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="webtoon_margin_ratio_values">
|
||||
<item>0.0</item>
|
||||
<item>0.1</item>
|
||||
<item>0.15</item>
|
||||
<item>0.2</item>
|
||||
<item>0.25</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="image_scale_type_values">
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
|
||||
@@ -233,6 +233,8 @@
|
||||
<string name="color_filter_a_value">A</string>
|
||||
<string name="webtoon_margin_ratio_0">No margin</string>
|
||||
<string name="webtoon_margin_ratio_10">10%</string>
|
||||
<string name="webtoon_margin_ratio_15">15%</string>
|
||||
<string name="webtoon_margin_ratio_20">20%</string>
|
||||
<string name="webtoon_margin_ratio_25">25%</string>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user