mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-30 13:57:57 +01:00
Add Rapid decoder for better image support. Reorganize readers.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/grey_text"
|
||||
style="@style/reader_menu_settings_item"
|
||||
android:text="@string/pref_custom_brightness"
|
||||
android:id="@+id/custom_brightness" />
|
||||
|
||||
|
||||
@@ -8,32 +8,36 @@
|
||||
android:paddingTop="5dp"
|
||||
android:paddingBottom="5dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reader_theme"
|
||||
android:paddingLeft="32dp"
|
||||
style="@style/reader_menu_settings_item"
|
||||
android:text="@string/pref_reader_theme"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/image_decoder"
|
||||
android:paddingLeft="32dp"
|
||||
style="@style/reader_menu_settings_item"
|
||||
android:text="@string/pref_image_decoder"/>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/enable_transitions"
|
||||
style="@style/grey_text"
|
||||
style="@style/reader_menu_settings_item"
|
||||
android:text="@string/pref_enable_transitions"/>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/show_page_number"
|
||||
style="@style/grey_text"
|
||||
style="@style/reader_menu_settings_item"
|
||||
android:text="@string/pref_show_page_number"/>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/hide_status_bar"
|
||||
style="@style/grey_text"
|
||||
style="@style/reader_menu_settings_item"
|
||||
android:text="@string/pref_hide_status_bar"/>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/keep_screen_on"
|
||||
style="@style/grey_text"
|
||||
style="@style/reader_menu_settings_item"
|
||||
android:text="@string/pref_keep_screen_on"/>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -38,4 +38,14 @@
|
||||
<item>1</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="image_decoders">
|
||||
<item>@string/rapid_decoder</item>
|
||||
<item>@string/skia_decoder</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="image_decoders_values">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
@@ -20,6 +20,7 @@
|
||||
<string name="pref_custom_brightness_key">pref_custom_brightness_key</string>
|
||||
<string name="pref_custom_brightness_value_key">pref_custom_brightness_value_key</string>
|
||||
<string name="pref_reader_theme_key">pref_reader_theme_key</string>
|
||||
<string name="pref_image_decoder_key">pref_image_decoder_key</string>
|
||||
|
||||
<string name="pref_download_directory_key">pref_download_directory_key</string>
|
||||
<string name="pref_download_slots_key">pref_download_slots_key</string>
|
||||
|
||||
@@ -80,6 +80,9 @@
|
||||
<string name="right_to_left_viewer">Right to left</string>
|
||||
<string name="vertical_viewer">Vertical</string>
|
||||
<string name="webtoon_viewer">Webtoon (experimental)</string>
|
||||
<string name="pref_image_decoder">Image decoder</string>
|
||||
<string name="rapid_decoder">Rapid</string>
|
||||
<string name="skia_decoder">Skia</string>
|
||||
|
||||
<!-- Downloads section -->
|
||||
<string name="pref_download_directory">Downloads directory</string>
|
||||
|
||||
@@ -109,7 +109,10 @@
|
||||
<item name="android:windowExitAnimation">@anim/exit_to_left</item>
|
||||
</style>
|
||||
|
||||
<style name="grey_text">
|
||||
<style name="reader_menu_settings_item">
|
||||
<item name="android:textColor">@color/md_grey_300</item>
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
<item name="android:layout_height">36dp</item>
|
||||
<item name="android:gravity">center</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
@@ -36,4 +36,12 @@
|
||||
android:defaultValue="0"
|
||||
android:summary="%s"/>
|
||||
|
||||
<eu.kanade.mangafeed.ui.setting.preference.IntListPreference
|
||||
android:title="@string/pref_image_decoder"
|
||||
android:key="@string/pref_image_decoder_key"
|
||||
android:entries="@array/image_decoders"
|
||||
android:entryValues="@array/image_decoders_values"
|
||||
android:defaultValue="0"
|
||||
android:summary="%s" />
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user