Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(YouTube): Update Overlay buttons, add Hide live chat messages and more Start page options #50

Merged
merged 15 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:yt="http://schemas.android.com/apk/res-auto" android:id="@+id/youtube_controls_bottom_ui_container" android:layout_width="match_parent" android:layout_height="wrap_content" android:layoutDirection="ltr">
<com.google.android.libraries.youtube.common.ui.TouchImageView android:id="@+id/speed_dialog_button" android:paddingLeft="0.0dip" android:paddingTop="22.0dip" android:paddingRight="0.0dip" android:paddingBottom="22.0dip" android:longClickable="false" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/revanced_speed_icon" android:scaleType="center" yt:layout_constraintBottom_toTopOf="@+id/quick_actions_container" yt:layout_constraintRight_toLeftOf="@+id/copy_video_url_button" style="@style/YouTubePlayerButton"/>
<com.google.android.libraries.youtube.common.ui.TouchImageView android:id="@+id/copy_video_url_button" android:paddingLeft="0.0dip" android:paddingTop="22.0dip" android:paddingRight="0.0dip" android:paddingBottom="22.0dip" android:longClickable="false" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/revanced_copy_icon" android:scaleType="center" yt:layout_constraintBottom_toTopOf="@+id/quick_actions_container" yt:layout_constraintRight_toLeftOf="@+id/copy_video_url_timestamp_button" style="@style/YouTubePlayerButton"/>
<com.google.android.libraries.youtube.common.ui.TouchImageView android:id="@+id/copy_video_url_timestamp_button" android:paddingLeft="0.0dip" android:paddingTop="22.0dip" android:paddingRight="0.0dip" android:paddingBottom="22.0dip" android:longClickable="false" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/revanced_copy_icon_with_time" android:scaleType="center" yt:layout_constraintBottom_toTopOf="@+id/quick_actions_container" yt:layout_constraintRight_toLeftOf="@+id/always_repeat_button" style="@style/YouTubePlayerButton"/>
<com.google.android.libraries.youtube.common.ui.TouchImageView android:id="@+id/copy_video_url_timestamp_button" android:paddingLeft="0.0dip" android:paddingTop="22.0dip" android:paddingRight="0.0dip" android:paddingBottom="22.0dip" android:longClickable="false" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/revanced_copy_icon_with_time" android:scaleType="center" yt:layout_constraintBottom_toTopOf="@+id/quick_actions_container" yt:layout_constraintRight_toLeftOf="@+id/time_ordered_playlist_button" style="@style/YouTubePlayerButton"/>
<com.google.android.libraries.youtube.common.ui.TouchImageView android:id="@+id/time_ordered_playlist_button" android:paddingLeft="0.0dip" android:paddingTop="22.0dip" android:paddingRight="0.0dip" android:paddingBottom="22.0dip" android:longClickable="false" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/revanced_time_ordered_playlist" android:scaleType="center" yt:layout_constraintBottom_toTopOf="@+id/quick_actions_container" yt:layout_constraintRight_toLeftOf="@+id/always_repeat_button" style="@style/YouTubePlayerButton"/>
<com.google.android.libraries.youtube.common.ui.TouchImageView android:id="@+id/always_repeat_button" android:paddingLeft="0.0dip" android:paddingTop="22.0dip" android:paddingRight="0.0dip" android:paddingBottom="22.0dip" android:longClickable="false" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/revanced_repeat_icon" android:scaleType="center" yt:layout_constraintBottom_toTopOf="@+id/quick_actions_container" yt:layout_constraintRight_toLeftOf="@+id/external_download_button" style="@style/YouTubePlayerButton"/>
<com.google.android.libraries.youtube.common.ui.TouchImageView android:id="@+id/external_download_button" android:paddingLeft="0.0dip" android:paddingTop="22.0dip" android:paddingRight="0.0dip" android:paddingBottom="22.0dip" android:longClickable="false" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/revanced_download_icon" android:scaleType="center" yt:layout_constraintBottom_toTopOf="@+id/quick_actions_container" yt:layout_constraintRight_toLeftOf="@+id/fullscreen_button" style="@style/YouTubePlayerButton"/>
</android.support.constraint.ConstraintLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<vector android:tint="?colorControlNormal" android:height="24.0dip" android:width="24.0dip" android:viewportWidth="24.0" android:viewportHeight="24.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M 4.74 19.2513 L 4.74 15.3136 L 5.615 15.3125 L 5.615 18.3775 L 8.6775 18.3775 L 8.6776 19.2513 L 4.74 19.2513 Z M 15.3224 19.2513 L 15.3225 18.3775 L 18.385 18.3775 L 18.385 15.3125 L 19.26 15.3136 L 19.26 19.2513 L 15.3224 19.2513 Z M 4.74 8.6863 L 4.74 4.7487 L 8.6776 4.7487 L 8.6775 5.6225 L 5.615 5.6225 L 5.615 8.6875 L 4.74 8.6863 Z M 18.3849 8.6863 L 18.385 5.6225 L 15.3225 5.6225 L 15.3224 4.7487 L 19.26 4.7487 L 19.26 8.6863 L 18.385 8.6875 L 18.3849 8.6863 Z" />
</vector>
14 changes: 14 additions & 0 deletions src/main/resources/youtube/settings/host/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,15 @@
<item>@string/revanced_change_start_page_entry_shorts</item>
<item>@string/revanced_change_start_page_entry_library</item>
<item>@string/revanced_change_start_page_entry_liked_videos</item>
<item>@string/revanced_change_start_page_entry_watch_later</item>
<item>@string/revanced_change_start_page_entry_history</item>
<item>@string/revanced_change_start_page_entry_trending</item>
<item>@string/revanced_change_start_page_entry_gaming</item>
<item>@string/revanced_change_start_page_entry_live</item>
<item>@string/revanced_change_start_page_entry_music</item>
<item>@string/revanced_change_start_page_entry_movies</item>
<item>@string/revanced_change_start_page_entry_sports</item>
<item>@string/revanced_change_start_page_entry_browse</item>
</string-array>
<string-array name="revanced_change_start_page_entry_values">
<item></item>
Expand All @@ -43,8 +50,15 @@
<!-- YouTube Widgets -->
<item>www.youtube.com/feed/library</item>
<item>www.youtube.com/playlist?list=LL</item>
<item>www.youtube.com/playlist?list=WL</item>
<item>www.youtube.com/feed/history</item>
<item>www.youtube.com/feed/trending</item>
<item>www.youtube.com/gaming</item>
<item>www.youtube.com/channel/UC4R8DWoMoI7CAwX8_LjQHig</item>
<item>www.youtube.com/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ</item>
<item>www.youtube.com/feed/storefront?bp=ogUCKAI%3D</item>
<item>www.youtube.com/channel/UCEgdi0XIXXZ-qJOFPf4JSKw</item>
<item>www.youtube.com/feed/guide_builder</item>
</string-array>
<string-array name="revanced_change_shorts_repeat_state_entries">
<item>@string/revanced_change_shorts_repeat_state_entry_default</item>
Expand Down
21 changes: 20 additions & 1 deletion src/main/resources/youtube/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,22 @@ Limitations:
<string name="revanced_preference_screen_general_title">General</string>

<string name="revanced_change_start_page_title">Change start page</string>
<string name="revanced_change_start_page_entry_browse">Browse channels</string>
<string name="revanced_change_start_page_entry_default">Default</string>
<string name="revanced_change_start_page_entry_explore">Explore</string>
<string name="revanced_change_start_page_entry_gaming">Gaming</string>
<string name="revanced_change_start_page_entry_history">History</string>
<string name="revanced_change_start_page_entry_library">Library</string>
<string name="revanced_change_start_page_entry_liked_videos">Liked videos</string>
<string name="revanced_change_start_page_entry_live">Live</string>
<string name="revanced_change_start_page_entry_movies">Movies</string>
<string name="revanced_change_start_page_entry_music">Music</string>
<string name="revanced_change_start_page_entry_search">Search</string>
<string name="revanced_change_start_page_entry_shorts">Shorts</string>
<string name="revanced_change_start_page_entry_sports">Sports</string>
<string name="revanced_change_start_page_entry_subscriptions">Subscriptions</string>
<string name="revanced_change_start_page_entry_trending">Trending</string>
<string name="revanced_change_start_page_entry_watch_later">Watch later</string>
<string name="revanced_change_start_page_warning">Invalid start page, resetting to default.</string>
<string name="revanced_disable_auto_audio_tracks_title">Disable forced auto audio tracks</string>
<string name="revanced_disable_auto_audio_tracks_summary_on">Forced auto audio tracks are disabled.</string>
Expand Down Expand Up @@ -489,6 +496,9 @@ Note:
<string name="revanced_hide_info_panel_title">Hide info panels</string>
<string name="revanced_hide_info_panel_summary_on">Info panels are hidden.</string>
<string name="revanced_hide_info_panel_summary_off">Info panels are shown.</string>
<string name="revanced_hide_live_chat_messages_title">Hide live chat messages</string>
<string name="revanced_hide_live_chat_messages_summary_on">Live chat messages are hidden.\n\nThis setting applies to Shorts live videos too.</string>
<string name="revanced_hide_live_chat_messages_summary_off">Live chat messages are shown.\n\nThis setting applies to Shorts live videos too.</string>
<string name="revanced_hide_medical_panel_title">Hide medical panels</string>
<string name="revanced_hide_medical_panel_summary_on">Medical panels are hidden.</string>
<string name="revanced_hide_medical_panel_summary_off">Medical panels are shown.</string>
Expand Down Expand Up @@ -723,6 +733,9 @@ Limitation: Video title disappears when clicked."</string>
<string name="revanced_quick_actions_top_margin_title">Quick actions top margin</string>
<string name="revanced_quick_actions_top_margin_summary">Configure the spacing from the seekbar to the quick action container, between 0-32.</string>
<string name="revanced_quick_actions_top_margin_warning">Quick actions top margin must be between 0-32. Reset to default values.</string>
<string name="revanced_hide_fullscreen_live_chat_replay_title">Hide live chat replay button</string>
<string name="revanced_hide_fullscreen_live_chat_replay_summary_on">Live chat replay button in fullscreen bottom right corner is hidden.\n\nIt appears in fullscreen when closing live chat.</string>
<string name="revanced_hide_fullscreen_live_chat_replay_summary_off">Live chat replay button in fullscreen bottom right corner is shown.\n\nIt appears in fullscreen when closing live chat.</string>
inotia00 marked this conversation as resolved.
Show resolved Hide resolved

<!-- PreferenceScreen: Player, PreferenceCategory: Player, PreferenceScreen: Fullscreen, PreferenceCategory: Experimental Flags -->
<string name="revanced_disable_landscape_mode_title">Disable landscape mode</string>
Expand Down Expand Up @@ -803,7 +816,10 @@ Tap and hold to copy video timestamp."</string>
<string name="revanced_overlay_button_speed_dialog_title">Show speed dialog button</string>
<string name="revanced_overlay_button_speed_dialog_summary">"Tap to open speed dialog.
Tap and hold to set playback speed to 1.0x."</string>
<string name="revanced_overlay_button_speed_dialog_reset">Playback speed reseted (1.0x).</string>
<string name="revanced_overlay_button_speed_dialog_reset">Playback speed reset: %sx</string>
<string name="revanced_overlay_button_time_ordered_playlist_title">Show time-ordered playlist button</string>
<string name="revanced_overlay_button_time_ordered_playlist_summary">"Tap to generate a playlist of all videos from channel from oldest to newest.
Tap and hold to undo."</string>
<string name="revanced_overlay_button_not_allowed_warning">Tap and hold to change button state.</string>

<string name="revanced_external_downloader_package_name_title">External downloader package name</string>
Expand Down Expand Up @@ -1037,6 +1053,9 @@ Limitation: Official headers in search results will be hidden."</string>
<string name="revanced_swipe_magnitude_threshold_summary">The amount of threshold for swipe to occur.</string>
<string name="revanced_swipe_overlay_text_size_title">Swipe overlay text size</string>
<string name="revanced_swipe_overlay_text_size_summary">The text size for swipe overlay.</string>
<string name="revanced_swipe_overlay_rect_size_title">Swipe overlay screen size</string>
<string name="revanced_swipe_overlay_rect_size_summary">Percentage of swipeable screen area.\n\nNote: This will also change the size of the screen area for the double-tap-to-seek gesture.</string>
<string name="revanced_swipe_overlay_rect_size_warning">Swipeable area size cannot be more than %s%%. Reset to default value.</string>
<string name="revanced_swipe_overlay_timeout_title">Swipe overlay timeout</string>
<string name="revanced_swipe_overlay_timeout_summary">The amount of milliseconds the overlay is visible.</string>
<string name="revanced_disable_hdr_auto_brightness_title">Disable auto HDR brightness</string>
Expand Down
Loading