fix(YouTube): Show video chapter titles without clipping when overlay buttons are enabled (#3674)

This commit is contained in:
LisoUseInAIKyrios 2024-09-23 18:50:16 -04:00 committed by GitHub
parent 464e6a3673
commit 317e9a80eb
41 changed files with 537 additions and 273 deletions

View file

@ -1,6 +1,6 @@
<!--
https://github.com/google/material-design-icons/blob/9beae745bb758f3ad56654fb377ea5cf62be4915/symbols/android/adjust/materialsymbolsoutlined/adjust_wght200gradN25_24px.xml
The icon has been resized
Changes made: Icon has been resized.
Copyright 2022 Google

View file

@ -1,6 +1,6 @@
<!--
https://github.com/google/material-design-icons/blob/9beae745bb758f3ad56654fb377ea5cf62be4915/symbols/android/fast_forward/materialsymbolsoutlined/fast_forward_wght200gradN25_24px.xml
The icon has been mirrored and resized
Changes made: The icon has been mirrored and resized
Copyright 2022 Google

View file

@ -1,6 +1,6 @@
<!--
https://github.com/google/material-design-icons/blob/9beae745bb758f3ad56654fb377ea5cf62be4915/symbols/android/compare/materialsymbolsoutlined/compare_wght200gradN25_24px.xml
The icon has been resized
Changes made: Icon has been resized.
Copyright 2022 Google

View file

@ -1,6 +1,6 @@
<!--
https://github.com/google/material-design-icons/blob/9beae745bb758f3ad56654fb377ea5cf62be4915/symbols/android/edit/materialsymbolsoutlined/edit_wght200gradN25_24px.xml
The icon has been resized
Changes made: Icon has been resized.
Copyright 2022 Google

View file

@ -1,6 +1,6 @@
<!--
https://github.com/google/material-design-icons/blob/9beae745bb758f3ad56654fb377ea5cf62be4915/symbols/android/fast_forward/materialsymbolsoutlined/fast_forward_wght200gradN25_24px.xml
The icon has been resized
Changes made: Icon has been resized.
Copyright 2022 Google

View file

@ -1,6 +1,6 @@
<!--
https://github.com/ajayyy/SponsorBlock/blob/e1d656f43f8b3cfb40e1c521e4103d61db756872/public/icons/PlayerStartIconSponsorBlocker.svg
The SponsorBlock logo was inverted
Changes made: The SponsorBlock logo was inverted.
Copyright 2021 Ajay Ramachandran <dev@ajay.app>

View file

@ -1,6 +1,6 @@
<!--
https://github.com/google/material-design-icons/blob/9beae745bb758f3ad56654fb377ea5cf62be4915/symbols/android/publish/materialsymbolsoutlined/publish_wght200gradN25_24px.xml
The icon has been resized
Changes made: Icon has been resized.
Copyright 2022 Google

View file

@ -1,6 +1,6 @@
<!--
https://github.com/google/material-design-icons/blob/9beae745bb758f3ad56654fb377ea5cf62be4915/symbols/android/thumbs_up_down/materialsymbolsoutlined/thumbs_up_down_wght300gradN25_24px.xml
The icon has been resized
Changes made: Icon has been resized.
Copyright 2022 Google

View file

@ -1,18 +1,5 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android">
<com.google.android.libraries.youtube.common.ui.TouchImageView
android:id="@+id/revanced_sb_create_segment_button"
style="@style/YouTubePlayerButton"
android:layout_width="@dimen/controls_overlay_action_button_size"
android:layout_height="@dimen/controls_overlay_action_button_size"
android:layout_alignWithParentIfMissing="true"
android:layout_alignParentTop="true"
android:layout_marginTop="2dp"
android:layout_marginEnd="4dp"
android:layout_toStartOf="@+id/player_additional_view_container"
android:padding="@dimen/controls_overlay_action_button_padding"
android:src="@drawable/revanced_sb_logo" />
<com.google.android.libraries.youtube.common.ui.TouchImageView
android:id="@+id/revanced_sb_voting_button"
style="@style/YouTubePlayerButton"
@ -25,4 +12,17 @@
android:layout_toStartOf="@+id/revanced_sb_create_segment_button"
android:padding="@dimen/controls_overlay_action_button_padding"
android:src="@drawable/revanced_sb_voting" />
<com.google.android.libraries.youtube.common.ui.TouchImageView
android:id="@+id/revanced_sb_create_segment_button"
style="@style/YouTubePlayerButton"
android:layout_width="@dimen/controls_overlay_action_button_size"
android:layout_height="@dimen/controls_overlay_action_button_size"
android:layout_alignWithParentIfMissing="true"
android:layout_alignParentTop="true"
android:layout_marginTop="2dp"
android:layout_marginEnd="4dp"
android:layout_toStartOf="@+id/player_additional_view_container"
android:padding="@dimen/controls_overlay_action_button_padding"
android:src="@drawable/revanced_sb_logo" />
</RelativeLayout>