diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-13 19:04:00 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-13 19:04:00 +0000 |
commit | 033de111cd6e9ff09f1c785ee8f3d38b0e14bab5 (patch) | |
tree | 37a6a08719339af92e617d56f358321004050a38 /chrome/browser/gtk/meta_frames.h | |
parent | edc75aaccb3dbc06e27173212f8f1e9fa6649ee1 (diff) | |
download | chromium_src-033de111cd6e9ff09f1c785ee8f3d38b0e14bab5.zip chromium_src-033de111cd6e9ff09f1c785ee8f3d38b0e14bab5.tar.gz chromium_src-033de111cd6e9ff09f1c785ee8f3d38b0e14bab5.tar.bz2 |
GTK: Require gtk theme authors to specify their own frame colors.
1) Fix our heuristics to not be terribly wrong, while discouraging their use. If the theme author doesn't specify colors in the form of ChromeGtkFrame::frame-color, use the old MetaFrames/selection color fallback (tinting slightly darker).
2) Give the ChromeGtkFrame several optional widget style properties allowing theme authors to explicitly specify colors for the frame and scrollbars, and control the gradient on top of the chrome frame.
TODO: Do we want to let theme authors override the close/min/max button images?
BUG=62377, 35317
TEST=for now, compiles, as the needed data hasn't been added by theme authors.
Review URL: http://codereview.chromium.org/4715005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/meta_frames.h')
-rw-r--r-- | chrome/browser/gtk/meta_frames.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/chrome/browser/gtk/meta_frames.h b/chrome/browser/gtk/meta_frames.h deleted file mode 100644 index bc8a493..0000000 --- a/chrome/browser/gtk/meta_frames.h +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef CHROME_BROWSER_GTK_META_FRAMES_H_ -#define CHROME_BROWSER_GTK_META_FRAMES_H_ -#pragma once - -#include <gdk/gdk.h> -#include <gtk/gtkwindow.h> - -G_BEGIN_DECLS - -// For the sake of gtk+ theme integration, we define a class called -// "MetaFrames," which is the name of a gobject class in the metacity window -// manager. To actually get at those values, we need to have an object whose -// gobject class name string matches the definitions in the gtkrc -// file. MetaFrames derives from GtkWindow. -// -// TODO(erg): http://crbug.com/35317 for getting rid of this hack class, as we -// should be able to use gtk_rc_get_style_by_path() but can't? - -typedef struct _MetaFrames MetaFrames; -typedef struct _MetaFramesClass MetaFramesClass; - -struct _MetaFrames { - GtkWindow window; -}; - -struct _MetaFramesClass { - GtkWindowClass parent_class; -}; - -// Creates a GtkWindow object with the class name "MetaFrames". -GtkWidget* meta_frames_new(); - -G_END_DECLS - -#endif // CHROME_BROWSER_GTK_META_FRAMES_H_ |