diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 23:24:14 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 23:24:14 +0000 |
commit | 8bfb33faadbe94daae312fc6b9ed83135946d70c (patch) | |
tree | 90ab4cbd6dc5d03b361a8f7eb72461cf8fe9a688 /base | |
parent | f21a884408531b243047e62a7f000013abbd42f1 (diff) | |
download | chromium_src-8bfb33faadbe94daae312fc6b9ed83135946d70c.zip chromium_src-8bfb33faadbe94daae312fc6b9ed83135946d70c.tar.gz chromium_src-8bfb33faadbe94daae312fc6b9ed83135946d70c.tar.bz2 |
Linux UI theming:
- Improve appearance of menus by setting background to white (matching windows and fitting better with the overall appearance).
- Disable user theming of native widgets: since our widgets are a hodge-podge of native and custom-drawn, there's no way we can support user theming. Eventually users will be able to choose a theme for chromium; until then make everything look like chrome.
Review URL: http://codereview.chromium.org/49035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12516 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rwxr-xr-x | base/gfx/gtk_util.cc | 5 | ||||
-rwxr-xr-x | base/gfx/gtk_util.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/base/gfx/gtk_util.cc b/base/gfx/gtk_util.cc index 0808193..047d9f0 100755 --- a/base/gfx/gtk_util.cc +++ b/base/gfx/gtk_util.cc @@ -12,8 +12,11 @@ namespace gfx { +const GdkColor kGdkWhite = GDK_COLOR_RGB(0xff, 0xff, 0xff); +const GdkColor kGdkBlack = GDK_COLOR_RGB(0x00, 0x00, 0x00); + void SubtractRectanglesFromRegion(GdkRegion* region, - const std::vector<gfx::Rect>& cutouts) { + const std::vector<Rect>& cutouts) { for (size_t i = 0; i < cutouts.size(); ++i) { GdkRectangle rect = cutouts[i].ToGdkRectangle(); GdkRegion* rect_region = gdk_region_rectangle(&rect); diff --git a/base/gfx/gtk_util.h b/base/gfx/gtk_util.h index 02b1385..909dec3 100755 --- a/base/gfx/gtk_util.h +++ b/base/gfx/gtk_util.h @@ -22,9 +22,12 @@ namespace gfx { class Rect; +extern const GdkColor kGdkWhite; +extern const GdkColor kGdkBlack; + // Modify the given region by subtracting the given rectangles. void SubtractRectanglesFromRegion(GdkRegion* region, - const std::vector<gfx::Rect>& cutouts); + const std::vector<Rect>& cutouts); // Convert and copy a SkBitmap to a GdkPixbuf. NOTE: This is an expensive // operation, all of the pixels must be copied and their order swapped. |