summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/themes.html
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/docs/themes.html')
-rwxr-xr-xchrome/common/extensions/docs/themes.html24
1 files changed, 18 insertions, 6 deletions
diff --git a/chrome/common/extensions/docs/themes.html b/chrome/common/extensions/docs/themes.html
index 3890e0d..581e9e0 100755
--- a/chrome/common/extensions/docs/themes.html
+++ b/chrome/common/extensions/docs/themes.html
@@ -208,6 +208,11 @@ Themes are <a href="packaging.html">packaged</a> like regular extensions,
but they don't contain JavaScript or HTML code.
</p>
+<p>
+You can find and try a bunch of themes at the
+<a href="https://tools.google.com/chrome/intl/en/themes/">themes gallery</a>.
+</p>
+
<a name="H2-0"></a><h2> Manifest </h2>
<p>
Here is an example <code>manifest.json</code> file for a theme:
@@ -246,7 +251,8 @@ Here is an example <code>manifest.json</code> file for a theme:
<p>
Colors are in RGB format.
-To find the full range of colors that you can specify, see
+To find the strings you can use within the "colors" field,
+look for kColor* strings in
<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/browser_theme_provider.cc"><code>browser_theme_provider.cc</code></a>.
</p>
@@ -254,19 +260,24 @@ To find the full range of colors that you can specify, see
<p>
Image resources use paths relative to the root of the extension.
-You can override any IDR_THEME_* image specified in
-<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/theme_resources.grd"><code>theme_resources.grd</code></a>.
+You can override any of the images that are specified by
+<code>kThemeableImages</code> in
+<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/browser_theme_provider.cc"><code>browser_theme_provider.cc</code></a>.
+Just remove the "IDR_"
+and convert the remaining characters to lowercase.
+For example, <code>IDR_THEME_NTP_BACKGROUND</code>
+(which <code>kThemeableImages</code> uses
+to specify the background of the new tab pane)
+corresponds to "theme_ntp_background".
</p>
<h3 id="properties">properties</h3>
-
<p>
This field lets you specify
properties such as background alignment,
background repeat,
and an alternate logo.
-<span class="comment"> [PENDING: check] </span>
To see the properties and the values they can have, see
<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/browser_theme_provider.cc"><code>browser_theme_provider.cc</code></a>.
<span class="comment"> [PENDING: We should flesh this out.] </span>
@@ -280,7 +291,8 @@ such as buttons, the frame, and the background tab.
Google Chrome supports tints, not images,
because images don't work across platforms
and are brittle in the case of adding new buttons.
-To find the full range of tints that you can specify, see
+To find the strings you can use within the "tints" field,
+look for kTint* strings in
<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/browser_theme_provider.cc"><code>browser_theme_provider.cc</code></a>.
</p>