Skip to content

Commit

Permalink
feat(YouTube/Shorts components): add `Height percentage of empty spac…
Browse files Browse the repository at this point in the history
…e` setting
  • Loading branch information
inotia00 committed Sep 25, 2024
1 parent 2cdc05a commit 4c824b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/resources/youtube/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,9 @@ Limitations:
<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_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_summary_on">Channel name is used.</string>
<string name="revanced_replace_channel_handle_summary_off">Channel handle is used.</string>
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/youtube/settings/xml/revanced_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@
<!-- 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_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" />
</PreferenceScreen>SETTINGS: SHORTS_COMPONENTS -->

Expand Down

0 comments on commit 4c824b4

Please sign in to comment.