refactor(YouTube/Overlay buttons): rename class, method, and resource files to be more appropriaten

This commit is contained in:
inotia00
2024-07-11 16:30:03 +09:00
parent 35eed2e2eb
commit d88df4b750
96 changed files with 58 additions and 63 deletions

View File

@ -91,7 +91,7 @@ object OverlayButtonsPatch : BaseResourcePatch(
"TimeOrderedPlaylist;",
"Whitelists;"
).forEach { className ->
PlayerControlsPatch.hookOverlayButtons("$OVERLAY_BUTTONS_PATH/$className")
PlayerControlsPatch.hookBottomControlButton("$OVERLAY_BUTTONS_PATH/$className")
}
// Copy necessary resources for the overlay buttons.
@ -101,7 +101,7 @@ object OverlayButtonsPatch : BaseResourcePatch(
"drawable",
"playlist_repeat_button.xml",
"playlist_shuffle_button.xml",
"revanced_repeat_icon.xml"
"revanced_repeat_button.xml"
)
)
@ -122,12 +122,12 @@ object OverlayButtonsPatch : BaseResourcePatch(
"quantum_ic_fullscreen_exit_white_24.png",
"quantum_ic_fullscreen_grey600_24.png",
"quantum_ic_fullscreen_white_24.png",
"revanced_time_ordered_playlist_icon.png",
"revanced_copy_icon.png",
"revanced_copy_icon_with_time.png",
"revanced_download_icon.png",
"revanced_speed_icon.png",
"revanced_whitelist_icon.png",
"revanced_time_ordered_playlist_button.png",
"revanced_copy_button.png",
"revanced_copy_timestamp_button.png",
"revanced_download_button.png",
"revanced_speed_button.png",
"revanced_whitelist_button.png",
"yt_fill_arrow_repeat_white_24.png",
"yt_outline_arrow_repeat_1_white_24.png",
"yt_outline_arrow_shuffle_1_white_24.png",