Skip to content

Commit

Permalink
feat(YouTube - Shorts overlay buttons): Add TikTok buttons for older …
Browse files Browse the repository at this point in the history
…versions

Co-Authored-By: odkate <[email protected]>
  • Loading branch information
anddea and odkate committed Apr 1, 2024
1 parent e7a8e30 commit fd296f3
Show file tree
Hide file tree
Showing 31 changed files with 9,585 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,30 +87,33 @@ object ShortsOverlayButtonsPatch : ResourcePatch() {
"youtube/shorts/$selectedIconType",
ResourceGroup(
"drawable-$dpi",
"ic_remix_filled_white_24.webp", // for older versions only
"ic_remix_filled_white_shadowed.webp",
"ic_right_comment_shadowed.webp",
"ic_right_dislike_off_shadowed.webp",
"ic_right_dislike_on_shadowed.webp",
"ic_right_like_off_shadowed.webp",
"ic_right_like_on_shadowed.webp",
"ic_right_share_shadowed.webp"
)
)
"ic_right_share_shadowed.webp",

context.copyResources(
"youtube/shorts/outline",
ResourceGroup(
"drawable-$dpi",
// for older versions only
"ic_remix_filled_white_24.webp",
"ic_right_dislike_on_32c.webp",
"ic_right_like_on_32c.webp"
),

ResourceGroup(
"drawable",
"ic_right_comment_32c.xml",
"ic_right_dislike_off_32c.xml",
"ic_right_like_off_32c.xml",
"ic_right_share_32c.xml",
"ic_right_share_32c.xml"
)
)

context.copyResources(
"youtube/shorts/outline",
ResourceGroup(
"drawable",
"reel_camera_bold_24dp.xml",
"reel_more_vertical_bold_24dp.xml",
"reel_search_bold_24dp.xml"
Expand Down
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.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/yt_white1"
android:pathData="M 6.5 12.2055 L 13.4212 12.2055 L 13.4212 11.4362 L 6.5 11.4362 L 6.5 12.2055 Z M 6.5 8.9169 L 17.5 8.9169 L 17.5 8.1477 L 6.5 8.1477 L 6.5 8.9169 Z M 3 20.0769 L 3 4.3846 C 3 4.0003 3.1347 3.6735 3.4041 3.4041 C 3.6735 3.1347 4.0003 3 4.3846 3 L 19.6154 3 C 19.9997 3 20.3265 3.1347 20.5959 3.4041 C 20.8653 3.6735 21 4.0003 21 4.3846 L 21 15.6154 C 21 15.9997 20.8653 16.3265 20.5959 16.5959 C 20.3265 16.8653 19.9997 17 19.6154 17 L 6.0769 17 L 3 20.0769 Z M 5.7346 16.2308 L 19.6154 16.2308 C 19.7692 16.2308 19.9103 16.1667 20.0385 16.0385 C 20.1667 15.9102 20.2308 15.7692 20.2308 15.6154 L 20.2308 4.3846 C 20.2308 4.2308 20.1667 4.0897 20.0385 3.9615 C 19.9103 3.8333 19.7692 3.7692 19.6154 3.7692 L 4.3846 3.7692 C 4.2308 3.7692 4.0898 3.8333 3.9615 3.9615 C 3.8333 4.0897 3.7692 4.2308 3.7692 4.3846 L 3.7692 18.2692 L 5.7346 16.2308 Z M 3.7692 16.2308 L 3.7692 3.7692 L 3.7692 16.2308 Z" />
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="32.0dip" android:width="32.0dip" android:viewportWidth="32.0" android:viewportHeight="32.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M 8.38 3.89 h 13.65 v 14.56 L 13.56 26.78 l -0.28 -0.28 q -0.175 -0.175 -0.2975 -0.4375 T 12.86 25.59 v -0.14 l 1.4 -7 H 4.32 q -0.805 0 -1.4525 -0.6475 T 2.22 16.35 v -1.4 q 0 -0.175 0.035 -0.385 t 0.105 -0.385 l 3.71 -8.82 q 0.28 -0.63 0.945 -1.05 t 1.365 -0.42 Z m 12.67 0.98 H 8.38 q -0.385 0 -0.7875 0.21 T 6.98 5.78 L 3.2 14.67 v 1.68 q 0 0.49 0.315 0.805 t 0.805 0.315 h 11.13 l -1.54 7.63 l 7.14 -7.07 v -13.16 Z m 0 13.16 v -13.16 v 13.16 Z m 0.98 0.42 v -0.98 h 4.97 v -12.6 H 22.03 v -0.98 h 5.95 v 14.56 H 22.03 Z" android:fillAlpha="0.95" android:fillType="evenOdd" />
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="32.0dip" android:width="32.0dip" android:viewportWidth="32.0" android:viewportHeight="32.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M 22.72 25.98 H 9.07 v -14.56 l 8.47 -8.33 l 0.28 0.28 q 0.175 0.175 0.2975 0.4375 T 18.24 4.28 v 0.14 l -1.4 7 h 9.94 q 0.805 0 1.4525 0.6475 T 28.88 13.52 v 1.4 q 0 0.175 -0.035 0.385 t -0.105 0.385 L 25.03 24.51 q -0.28 0.63 -0.945 1.05 t -1.365 0.42 Z m -12.67 -0.98 h 12.67 q 0.385 0 0.7875 -0.21 t 0.6125 -0.7 l 3.78 -8.89 v -1.68 q 0 -0.49 -0.315 -0.805 t -0.805 -0.315 H 15.65 l 1.54 -7.63 l -7.14 7.07 v 13.16 Z m 0 -13.16 v 13.16 v -13.16 Z m -0.98 -0.42 v 0.98 H 4.1 v 12.6 h 4.97 v 0.98 H 3.12 v -14.56 h 5.95 Z" android:fillAlpha="0.95" android:fillType="evenOdd" />
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/yt_white1"
android:pathData="M 4.7692 18 L 4.7692 15.0423 C 4.7692 14.0038 5.1263 13.1276 5.8404 12.4135 C 6.5545 11.6993 7.4308 11.3423 8.4692 11.3423 L 18.5038 11.3423 L 14.1789 15.6481 L 14.7346 16.2231 L 20 10.9577 L 14.7346 5.6923 L 14.1789 6.2481 L 18.5038 10.5731 L 8.4692 10.5731 C 7.2192 10.5731 6.1619 11.0023 5.2971 11.8606 C 4.4324 12.7189 4 13.7795 4 15.0423 L 4 18 L 4.7692 18 Z" />
</vector>
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit fd296f3

Please sign in to comment.