summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorkathyw@google.com <kathyw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 21:53:06 +0000
committerkathyw@google.com <kathyw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 21:53:06 +0000
commit4cfdd73343aaef2f695407f39824da5a6884553e (patch)
tree7bd31b9786f68c0088051c66dbc5ff141a6f945f /chrome
parente053810ac57311250b548e517740aab991fc9b31 (diff)
downloadchromium_src-4cfdd73343aaef2f695407f39824da5a6884553e.zip
chromium_src-4cfdd73343aaef2f695407f39824da5a6884553e.tar.gz
chromium_src-4cfdd73343aaef2f695407f39824da5a6884553e.tar.bz2
A bit of clarification for the themes doc.
This doc could use a lot more work, though. TBR=glen Review URL: http://codereview.chromium.org/200079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25931 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rwxr-xr-xchrome/common/extensions/docs/static/themes.html24
1 files changed, 18 insertions, 6 deletions
diff --git a/chrome/common/extensions/docs/static/themes.html b/chrome/common/extensions/docs/static/themes.html
index 37cc9dd..1958c02 100755
--- a/chrome/common/extensions/docs/static/themes.html
+++ b/chrome/common/extensions/docs/static/themes.html
@@ -7,6 +7,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>
+
<h2> Manifest </h2>
<p>
Here is an example <code>manifest.json</code> file for a theme:
@@ -46,7 +51,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>
@@ -54,19 +60,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>
@@ -80,7 +91,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>