feat(YouTube/Shorts components): add Height percentage of empty space setting

This commit is contained in:
inotia00 2024-09-25 22:26:29 +09:00
parent 2cdc05ac27
commit 4c824b458a
2 changed files with 4 additions and 0 deletions

View File

@ -1222,6 +1222,9 @@ Limitations:
<string name="revanced_hide_shorts_navigation_bar_title">Hide navigation bar</string> <string name="revanced_hide_shorts_navigation_bar_title">Hide navigation bar</string>
<string name="revanced_hide_shorts_navigation_bar_summary_on">Navigation bar is hidden.</string> <string name="revanced_hide_shorts_navigation_bar_summary_on">Navigation bar is hidden.</string>
<string name="revanced_hide_shorts_navigation_bar_summary_off">Navigation bar is shown.</string> <string name="revanced_hide_shorts_navigation_bar_summary_off">Navigation bar is shown.</string>
<string name="revanced_shorts_navigation_bar_height_percentage_title">Height percentage of empty space</string>
<string name="revanced_shorts_navigation_bar_height_percentage_summary">Configures the height percentage of the empty space left when the navigation bar is hidden, between 0 and 100 (%).</string>
<string name="revanced_shorts_navigation_bar_height_percentage_invalid_toast">Height percentage must be between 0-100 (%).</string>
<string name="revanced_replace_channel_handle_title">Replace channel handle</string> <string name="revanced_replace_channel_handle_title">Replace channel handle</string>
<string name="revanced_replace_channel_handle_summary_on">Channel name is used.</string> <string name="revanced_replace_channel_handle_summary_on">Channel name is used.</string>
<string name="revanced_replace_channel_handle_summary_off">Channel handle is used.</string> <string name="revanced_replace_channel_handle_summary_off">Channel handle is used.</string>

View File

@ -535,6 +535,7 @@
<!-- SETTINGS: SHORTS_COMPONENTS <!-- SETTINGS: SHORTS_COMPONENTS
<SwitchPreference android:title="@string/revanced_hide_shorts_toolbar_title" android:key="revanced_hide_shorts_toolbar" android:summaryOn="@string/revanced_hide_shorts_toolbar_summary_on" android:summaryOff="@string/revanced_hide_shorts_toolbar_summary_off" /> <SwitchPreference android:title="@string/revanced_hide_shorts_toolbar_title" android:key="revanced_hide_shorts_toolbar" android:summaryOn="@string/revanced_hide_shorts_toolbar_summary_on" android:summaryOff="@string/revanced_hide_shorts_toolbar_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_navigation_bar_title" android:key="revanced_hide_shorts_navigation_bar" android:summaryOn="@string/revanced_hide_shorts_navigation_bar_summary_on" android:summaryOff="@string/revanced_hide_shorts_navigation_bar_summary_off" /> <SwitchPreference android:title="@string/revanced_hide_shorts_navigation_bar_title" android:key="revanced_hide_shorts_navigation_bar" android:summaryOn="@string/revanced_hide_shorts_navigation_bar_summary_on" android:summaryOff="@string/revanced_hide_shorts_navigation_bar_summary_off" />
<app.revanced.integrations.shared.settings.preference.ResettableEditTextPreference android:hint="45" android:title="@string/revanced_shorts_navigation_bar_height_percentage_title" android:key="revanced_shorts_navigation_bar_height_percentage" android:summary="@string/revanced_shorts_navigation_bar_height_percentage_summary" android:inputType="number" />
<SwitchPreference android:title="@string/revanced_replace_channel_handle_title" android:key="revanced_replace_channel_handle" android:summaryOn="@string/revanced_replace_channel_handle_summary_on" android:summaryOff="@string/revanced_replace_channel_handle_summary_off" /> <SwitchPreference android:title="@string/revanced_replace_channel_handle_title" android:key="revanced_replace_channel_handle" android:summaryOn="@string/revanced_replace_channel_handle_summary_on" android:summaryOff="@string/revanced_replace_channel_handle_summary_off" />
</PreferenceScreen>SETTINGS: SHORTS_COMPONENTS --> </PreferenceScreen>SETTINGS: SHORTS_COMPONENTS -->