diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-11 21:32:17 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-11 21:32:17 +0000 |
commit | 2ab48cac83473ac4024678c36afa2b05c449bd24 (patch) | |
tree | 5c86cab84a0e443ea8ff259b914709f08b52f8a0 /chrome/browser/browser_theme_provider.h | |
parent | 008b85036666ad1b49c0525682904950df3777cb (diff) | |
download | chromium_src-2ab48cac83473ac4024678c36afa2b05c449bd24.zip chromium_src-2ab48cac83473ac4024678c36afa2b05c449bd24.tar.gz chromium_src-2ab48cac83473ac4024678c36afa2b05c449bd24.tar.bz2 |
With the recent NNTP changes, we change the way themes work - they're now closer to NTP1 theming - ntp_section_* is used to control the display of the light blue sections, and we've added ntp_header that controls the dark blue hover color, ntp_header falls back to ntp_section if provided.
Also fix a minor bug where the default theme was saving theme data - we were generating colors before saving the provided colors.
BUG=18720,18722
TEST=Install a theme and verify that the recently closed section is themed correctly.
Review URL: http://codereview.chromium.org/165192
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23081 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider.h')
-rw-r--r-- | chrome/browser/browser_theme_provider.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/browser_theme_provider.h b/chrome/browser/browser_theme_provider.h index a1db2ff..0b4eecb 100644 --- a/chrome/browser/browser_theme_provider.h +++ b/chrome/browser/browser_theme_provider.h @@ -38,6 +38,7 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>, static const char* kColorNTPBackground; static const char* kColorNTPText; static const char* kColorNTPLink; + static const char* kColorNTPHeader; static const char* kColorNTPSection; static const char* kColorNTPSectionText; static const char* kColorNTPSectionLink; @@ -83,6 +84,7 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>, static const SkColor kDefaultColorNTPBackground; static const SkColor kDefaultColorNTPText; static const SkColor kDefaultColorNTPLink; + static const SkColor kDefaultColorNTPHeader; static const SkColor kDefaultColorNTPSection; static const SkColor kDefaultColorNTPSectionText; static const SkColor kDefaultColorNTPSectionLink; @@ -114,6 +116,7 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>, COLOR_NTP_BACKGROUND, COLOR_NTP_TEXT, COLOR_NTP_LINK, + COLOR_NTP_HEADER, COLOR_NTP_SECTION, COLOR_NTP_SECTION_TEXT, COLOR_NTP_SECTION_LINK, |