summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authorarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 01:32:37 +0000
committerarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 01:32:37 +0000
commitec68b62ec102d43e2559da1e1c3a022cf191403a (patch)
treecd345067936c29b8983453c7c774800129add213 /chrome/browser/resources
parent03d36e3330a3e1ea60c37a6843293499acd38934 (diff)
downloadchromium_src-ec68b62ec102d43e2559da1e1c3a022cf191403a.zip
chromium_src-ec68b62ec102d43e2559da1e1c3a022cf191403a.tar.gz
chromium_src-ec68b62ec102d43e2559da1e1c3a022cf191403a.tar.bz2
Adds a theme promo in the lower right corner
BUG=None TEST=The theme promo should show up in the lower right corner and when clicked should navigate to the Chrome theme gallery. The promo should go away after 5 runs of chrome Review URL: http://codereview.chromium.org/217020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26894 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/new_new_tab.css16
-rw-r--r--chrome/browser/resources/new_new_tab.html6
-rw-r--r--chrome/browser/resources/new_tab_theme.css4
3 files changed, 26 insertions, 0 deletions
diff --git a/chrome/browser/resources/new_new_tab.css b/chrome/browser/resources/new_new_tab.css
index f1d71c2..1ad7d3b 100644
--- a/chrome/browser/resources/new_new_tab.css
+++ b/chrome/browser/resources/new_new_tab.css
@@ -701,6 +701,22 @@ html[dir='rtl'] #t4 {
text-align: center;
}
+#themes-promo {
+ position: absolute;
+ bottom: 0px;
+ right: 0px;
+}
+
+#themes-promo * {
+ display: block;
+}
+
+#themes-promo img {
+ width: 150px;
+ height: 180px;
+ border: 0;
+}
+
/* small */
@media (max-width: 920px) {
diff --git a/chrome/browser/resources/new_new_tab.html b/chrome/browser/resources/new_new_tab.html
index 24bfed0..f16df88 100644
--- a/chrome/browser/resources/new_new_tab.html
+++ b/chrome/browser/resources/new_new_tab.html
@@ -246,6 +246,12 @@ document.write('<link id="themecss" rel="stylesheet" ' +
</div> <!-- main -->
+<div id="themes-promo">
+ <a i18n-values="href:themelink">
+ <img src="chrome://theme/newtab_themes_promo">
+ </a>
+</div>
+
<div class="window-menu" id="window-tooltip"></div>
</body>
diff --git a/chrome/browser/resources/new_tab_theme.css b/chrome/browser/resources/new_tab_theme.css
index e5ba17d1..94f5526 100644
--- a/chrome/browser/resources/new_tab_theme.css
+++ b/chrome/browser/resources/new_tab_theme.css
@@ -100,3 +100,7 @@ body {
.list > .thumbnail-container {
color: $$6; /* COLOR_NTP_LINK_UNDERLINE */
}
+
+#themes-promo {
+ display: $$8;
+}