Commit 6ceb6342 authored by Gayane Petrosyan's avatar Gayane Petrosyan Committed by Commit Bot

[NTP cleanup] Remove 'default-theme' and 'dark' classes.

Bug: None
Change-Id: I8ad45d279b2e649c6f2a19400367605d6cbfe693
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1811964Reviewed-by: default avatarKristi Park <kristipark@chromium.org>
Commit-Queue: Gayane Petrosyan <gayane@chromium.org>
Cr-Commit-Position: refs/heads/master@{#697855}
parent f4bbeac1
...@@ -539,7 +539,7 @@ body.fakebox-focused #fakebox-cursor { ...@@ -539,7 +539,7 @@ body.fakebox-focused #fakebox-cursor {
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
body:not(.light-chip) .default-theme.dark #mv-msg { body:not(.light-chip) #mv-msg {
color: rgb(var(--GG200-rgb)); color: rgb(var(--GG200-rgb));
} }
} }
......
...@@ -72,8 +72,6 @@ const CLASSES = { ...@@ -72,8 +72,6 @@ const CLASSES = {
CLOCK_ICON: 'clock-icon', CLOCK_ICON: 'clock-icon',
// Applies styles to dialogs used in customization. // Applies styles to dialogs used in customization.
CUSTOMIZE_DIALOG: 'customize-dialog', CUSTOMIZE_DIALOG: 'customize-dialog',
DARK: 'dark',
DEFAULT_THEME: 'default-theme',
DELAYED_HIDE_NOTIFICATION: 'mv-notice-delayed-hide', DELAYED_HIDE_NOTIFICATION: 'mv-notice-delayed-hide',
// Extended and elevated style for customization entry point. // Extended and elevated style for customization entry point.
ENTRY_POINT_ENHANCED: 'ep-enhanced', ENTRY_POINT_ENHANCED: 'ep-enhanced',
...@@ -1390,8 +1388,6 @@ function renderTheme() { ...@@ -1390,8 +1388,6 @@ function renderTheme() {
return; return;
} }
$(IDS.NTP_CONTENTS).classList.toggle(CLASSES.DARK, info.isNtpBackgroundDark);
// Update dark mode styling. // Update dark mode styling.
isDarkModeEnabled = window.matchMedia('(prefers-color-scheme: dark)').matches; isDarkModeEnabled = window.matchMedia('(prefers-color-scheme: dark)').matches;
document.body.classList.toggle('light-chip', !getUseDarkChips(info)); document.body.classList.toggle('light-chip', !getUseDarkChips(info));
...@@ -1585,9 +1581,6 @@ function setCustomThemeStyle(themeInfo) { ...@@ -1585,9 +1581,6 @@ function setCustomThemeStyle(themeInfo) {
mvxFilter = 'drop-shadow(0 0 0 ' + textColor + ')'; mvxFilter = 'drop-shadow(0 0 0 ' + textColor + ')';
} }
$(IDS.NTP_CONTENTS)
.classList.toggle(CLASSES.DEFAULT_THEME, themeInfo.usingDefaultTheme);
document.body.style.setProperty('--text-color', textColor); document.body.style.setProperty('--text-color', textColor);
document.body.style.setProperty('--text-color-light', textColorLight); document.body.style.setProperty('--text-color-light', textColorLight);
} }
......
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