Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2349)

Unified Diff: chrome/browser/resources/ntp4/new_tab_theme.css

Issue 16610002: High DPI support for themes: Raw images for NTP attribution and background (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/ntp4/new_tab_theme.css
diff --git a/chrome/browser/resources/ntp4/new_tab_theme.css b/chrome/browser/resources/ntp4/new_tab_theme.css
index 75163838582d658a2bccbd9feea28cad5c0102ae..ce61953cc392e92f33438e342347c922cf017950 100644
--- a/chrome/browser/resources/ntp4/new_tab_theme.css
+++ b/chrome/browser/resources/ntp4/new_tab_theme.css
@@ -6,11 +6,18 @@ html {
background-attachment: fixed;
background-color: $2; /* COLOR_NTP_BACKGROUND */
background-image: -webkit-image-set(
- url(chrome://theme/IDR_THEME_NTP_BACKGROUND?$1) 1x);
+ url(chrome://theme/IDR_THEME_NTP_BACKGROUND@1x?$1) 1x,
+ url(chrome://theme/IDR_THEME_NTP_BACKGROUND@2x?$1) 2x);
background-position: $3;
background-repeat: $5;
}
+#attribution-img {
+ content: -webkit-image-set(
+ url(chrome://theme/IDR_THEME_NTP_ATTRIBUTION@1x?$1) 1x,
+ url(chrome://theme/IDR_THEME_NTP_ATTRIBUTION@2x?$1) 2x);
+}
+
html[bookmarkbarattached='true'] {
background-position: $4;
}

Powered by Google App Engine
This is Rietveld 408576698