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/gfx/gtk_util.cc | |
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/gfx/gtk_util.cc')
-rwxr-xr-x | base/gfx/gtk_util.cc | 5 |
1 files changed, 4 insertions, 1 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); |