LibreTube/app/src/main/res/xml/sponsorblock_settings.xml

154 lines
5.7 KiB
XML
Raw Normal View History

2022-05-16 15:41:22 +05:30
<?xml version="1.0" encoding="utf-8"?>
2022-06-07 17:12:07 +05:30
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
2022-05-16 15:41:22 +05:30
xmlns:app="http://schemas.android.com/apk/res-auto">
<SwitchPreferenceCompat
2022-05-24 01:10:24 +05:30
android:summaryOff="@string/disabled"
2022-06-19 13:32:08 +05:30
android:summaryOn="@string/enabled"
2022-06-27 22:47:52 +05:30
app:defaultValue="true"
app:key="sb_enabled_key"
app:title="@string/sponsorblock" />
2022-05-16 15:41:22 +05:30
2022-06-03 22:19:48 +05:30
<SwitchPreferenceCompat
android:dependency="sb_enabled_key"
2022-06-03 22:19:48 +05:30
android:summaryOff="@string/disabled"
2022-06-19 13:32:08 +05:30
android:summaryOn="@string/enabled"
2022-06-27 22:47:52 +05:30
app:defaultValue="true"
app:key="sb_notifications_key"
app:title="@string/sponsorblock_notifications" />
2022-05-16 15:41:22 +05:30
<SwitchPreferenceCompat
android:summaryOff="@string/disabled"
android:summaryOn="@string/enabled"
app:defaultValue="false"
app:key="sb_contribute_key"
app:title="@string/contribute_to_sponsorblock" />
<EditTextPreference
android:dependency="sb_contribute_key"
app:key="sb_user_id"
app:title="@string/sponsorblock_user_id" />
2023-07-20 18:31:21 +05:30
<SwitchPreferenceCompat
app:defaultValue="false"
app:key="dearrow"
app:summary="@string/dearrow_summary"
app:title="@string/dearrow" />
<SwitchPreferenceCompat
app:defaultValue="true"
app:key="sb_highlights"
app:summary="@string/category_highlight_description"
app:title="@string/category_highlight" />
<SwitchPreferenceCompat
android:dependency="sb_enabled_key"
android:summary="@string/sb_color_enable"
app:defaultValue="false"
app:key="sb_enable_custom_colors"
app:title="@string/sb_custom_colors" />
2022-05-16 15:41:22 +05:30
<PreferenceCategory app:title="@string/category_segments">
<!-- When changing default values, they must also be changed in the PlayerHelper.kt file! -->
<com.github.libretube.ui.views.SbSpinnerPreference
app:defaultValue="automatic"
app:key="sponsor_category"
2022-06-19 13:32:08 +05:30
app:summary="@string/category_sponsor_description"
app:title="@string/category_sponsor" />
<com.github.libretube.ui.views.ColorPreference
android:dependency="sb_enable_custom_colors"
app:defaultValue="#00d400"
app:key="sponsor_color"
app:title="@string/color" />
2022-05-16 15:41:22 +05:30
<com.github.libretube.ui.views.SbSpinnerPreference
app:defaultValue="automatic"
app:key="selfpromo_category"
2022-06-27 22:47:52 +05:30
app:summary="@string/category_selfpromo_description"
app:title="@string/category_selfpromo" />
2022-05-16 15:41:22 +05:30
<com.github.libretube.ui.views.ColorPreference
android:dependency="sb_enable_custom_colors"
app:defaultValue="#ffff00"
app:key="selfpromo_color"
app:title="@string/color" />
<com.github.libretube.ui.views.SbSpinnerPreference
app:defaultValue="off"
app:key="interaction_category"
2022-06-27 22:47:52 +05:30
app:summary="@string/category_interaction_description"
app:title="@string/category_interaction" />
2022-05-16 15:41:22 +05:30
<com.github.libretube.ui.views.ColorPreference
android:dependency="sb_enable_custom_colors"
app:defaultValue="#cc00ff"
app:key="interaction_color"
app:title="@string/color" />
<com.github.libretube.ui.views.SbSpinnerPreference
app:defaultValue="off"
app:key="intro_category"
2022-06-27 22:47:52 +05:30
app:summary="@string/category_intro_description"
app:title="@string/category_intro" />
2022-05-16 15:41:22 +05:30
<com.github.libretube.ui.views.ColorPreference
android:dependency="sb_enable_custom_colors"
app:defaultValue="#00ffff"
app:key="intro_color"
app:title="@string/color" />
<com.github.libretube.ui.views.SbSpinnerPreference
app:defaultValue="off"
app:key="outro_category"
2022-06-27 22:47:52 +05:30
app:summary="@string/category_outro_description"
app:title="@string/category_outro" />
2022-05-16 15:41:22 +05:30
<com.github.libretube.ui.views.ColorPreference
android:dependency="sb_enable_custom_colors"
app:defaultValue="#0202ED"
app:key="outro_color"
app:title="@string/color" />
<com.github.libretube.ui.views.SbSpinnerPreference
app:defaultValue="off"
app:key="filler_category"
2022-06-27 22:47:52 +05:30
app:summary="@string/category_filler_description"
app:title="@string/category_filler" />
<com.github.libretube.ui.views.ColorPreference
android:dependency="sb_enable_custom_colors"
app:defaultValue="#7300ff"
app:key="filler_color"
app:title="@string/color" />
<com.github.libretube.ui.views.SbSpinnerPreference
app:defaultValue="off"
app:key="music_offtopic_category"
2022-06-27 22:47:52 +05:30
app:summary="@string/category_music_offtopic_description"
app:title="@string/category_music_offtopic" />
<com.github.libretube.ui.views.ColorPreference
android:dependency="sb_enable_custom_colors"
app:defaultValue="#ff9900"
app:key="music_offtopic_color"
app:title="@string/color" />
<com.github.libretube.ui.views.SbSpinnerPreference
app:defaultValue="off"
app:key="preview_category"
2022-06-27 22:47:52 +05:30
app:summary="@string/category_preview_description"
app:title="@string/category_preview" />
<com.github.libretube.ui.views.ColorPreference
android:dependency="sb_enable_custom_colors"
app:defaultValue="#008fd6"
app:key="preview_color"
app:title="@string/color" />
2022-05-16 15:41:22 +05:30
</PreferenceCategory>
2022-05-23 00:07:09 +05:30
2022-06-07 17:12:07 +05:30
</PreferenceScreen>