Commit 0b26cb3c authored by Kyle Milka's avatar Kyle Milka Committed by Commit Bot

[NTP] Update darkmode selected state in the RP

Change the background color in the selected state for
RP tiles.

backgrounds screenshot: http://screen/nM89uUTB1eA
shortcuts screenshot: http://screen/26wy2mn4R3n

Bug: 937570
Change-Id: I7466d265da0081c9d4489f159ac8b604332e319f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1652742Reviewed-by: default avatarKristi Park <kristipark@chromium.org>
Commit-Queue: Kyle Milka <kmilka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#668590}
parent dcf13273
...@@ -645,8 +645,8 @@ customize.richerPicker_selectTile = function(tile) { ...@@ -645,8 +645,8 @@ customize.richerPicker_selectTile = function(tile) {
const selectedCheck = document.createElement('div'); const selectedCheck = document.createElement('div');
selectedCircle.classList.add(customize.CLASSES.SELECTED_CIRCLE); selectedCircle.classList.add(customize.CLASSES.SELECTED_CIRCLE);
selectedCheck.classList.add(customize.CLASSES.SELECTED_CHECK); selectedCheck.classList.add(customize.CLASSES.SELECTED_CHECK);
selectedCircle.appendChild(selectedCheck);
tile.appendChild(selectedCircle); tile.appendChild(selectedCircle);
tile.appendChild(selectedCheck);
}; };
/** /**
...@@ -1579,4 +1579,4 @@ customize.loadColorTiles = function() { ...@@ -1579,4 +1579,4 @@ customize.loadColorTiles = function() {
$(customize.IDS.COLORS_MENU).appendChild(tile); $(customize.IDS.COLORS_MENU).appendChild(tile);
} }
customize.colorMenuLoaded = true; customize.colorMenuLoaded = true;
}; };
\ No newline at end of file
...@@ -1071,6 +1071,11 @@ html[darkmode=true] #colors-menu .bg-sel-tile-title { ...@@ -1071,6 +1071,11 @@ html[darkmode=true] #colors-menu .bg-sel-tile-title {
background-color: rgba(var(--GB900-rgb), .08); background-color: rgba(var(--GB900-rgb), .08);
} }
html[darkmode=true] #backgrounds-default.selected,
html[darkmode=true] #backgrounds-image-menu .bg-sel-tile-bg.selected {
background-color: rgba(var(--GB200-rgb), .5);
}
#backgrounds-upload.bg-sel-tile-bg { #backgrounds-upload.bg-sel-tile-bg {
background-color: white; background-color: white;
border: 1px solid rgb(var(--GG300-rgb)); border: 1px solid rgb(var(--GG300-rgb));
...@@ -1171,13 +1176,13 @@ html[dir=rtl] #customization-menu .bg-sel-tile .selected-circle { ...@@ -1171,13 +1176,13 @@ html[dir=rtl] #customization-menu .bg-sel-tile .selected-circle {
#customization-menu .bg-sel-tile .selected-check { #customization-menu .bg-sel-tile .selected-check {
height: 24px; height: 24px;
left: initial; left: initial;
right: 0; right: 9px;
top: 0; top: 7px;
width: 24px; width: 24px;
} }
html[dir=rtl] #customization-menu .bg-sel-tile .selected-check { html[dir=rtl] #customization-menu .bg-sel-tile .selected-check {
left: 0; left: 9px;
right: initial; right: initial;
} }
...@@ -1331,13 +1336,14 @@ html[dir=rtl] .sh-option-image .selected-circle { ...@@ -1331,13 +1336,14 @@ html[dir=rtl] .sh-option-image .selected-circle {
} }
.sh-option-image .selected-check { .sh-option-image .selected-check {
left: -2px; left: initial;
top: -2px; right: 32px;
top: 6px;
} }
html[dir=rtl] .sh-option-image .selected-check { html[dir=rtl] .sh-option-image .selected-check {
left: 0; left: 32px;
right: -2px; right: initial;
} }
.sh-option-title { .sh-option-title {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment