Skip to content

Commit

Permalink
Merge pull request #2618 from IamOSource/issue2615
Browse files Browse the repository at this point in the history
Issue #2615
  • Loading branch information
ImprovedTube authored Oct 21, 2024
2 parents d4fff38 + 05e3708 commit c9652f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
16 changes: 10 additions & 6 deletions js&css/extension/www.youtube.com/appearance/player/player.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ html[it-always-show-progress-bar='true'] .DesktopShortsPlayerControlsHostHidePro
# COLOR
--------------------------------------------------------------*/

html[it-player-color='red'] {
--it-player-color: #f03;
}

html[it-player-color='pink'] {
--it-player-color: #e91e63;
}
Expand Down Expand Up @@ -108,14 +112,14 @@ html[it-player-color='white'] {
--it-player-color: #fff;
}

html[it-player-color]:not([it-player-color='red']):not([it-player-color='normal']) .ytp-play-progress,
html[it-player-color]:not([it-player-color='red']):not([it-player-color='normal']) .ytp-scrubber-button,
html[it-player-color]:not([it-player-color='red']):not([it-player-color='normal']) .ytp-menuitem[aria-checked='true'] .ytp-menuitem-toggle-checkbox,
html[it-player-color]:not([it-player-color='red']):not([it-player-color='normal']) .ytp-settings-button.ytp-hd-quality-badge:after {
background-color: var(--it-player-color) !important;
html[it-player-color]:not([it-player-color='default']):not([it-player-color='normal']) .ytp-play-progress,
html[it-player-color]:not([it-player-color='default']):not([it-player-color='normal']) .ytp-scrubber-button,
html[it-player-color]:not([it-player-color='default']):not([it-player-color='normal']) .ytp-menuitem[aria-checked='true'] .ytp-menuitem-toggle-checkbox,
html[it-player-color]:not([it-player-color='default']):not([it-player-color='normal']) .ytp-settings-button.ytp-hd-quality-badge:after {
background: var(--it-player-color) !important;
}

html[it-player-color]:not([it-player-color='red']):not([it-player-color='normal']) .ytp-swatch-color {
html[it-player-color]:not([it-player-color='default']):not([it-player-color='normal']) .ytp-swatch-color {
color: var(--it-player-color) !important;
}

Expand Down
3 changes: 3 additions & 0 deletions menu/skeleton-parts/appearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ extension.skeleton.main.layers.section.appearance.on.click.player = {
component: "select",
text: "playerColor",
options: [{
text: "default",
value: "default"
}, {
text: "red",
value: "red"
}, {
Expand Down

0 comments on commit c9652f1

Please sign in to comment.