Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4137)

Unified Diff: chrome/browser/gtk/download_shelf_gtk.h

Issue 155365: GTK Themes: Set bg/text colors for the download manager. (Closed)
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/download_item_gtk.cc ('k') | chrome/browser/gtk/download_shelf_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/download_shelf_gtk.h
diff --git a/chrome/browser/gtk/download_shelf_gtk.h b/chrome/browser/gtk/download_shelf_gtk.h
index afafd2725c5e04e51471c0019d4f15de51e5cafc..9c8e382473b2e735fd9299df69a7c3d42cd15285 100644
--- a/chrome/browser/gtk/download_shelf_gtk.h
+++ b/chrome/browser/gtk/download_shelf_gtk.h
@@ -18,6 +18,7 @@ class BaseDownloadItemModel;
class Browser;
class CustomDrawButton;
class DownloadItemGtk;
+class GtkThemeProperties;
class SlideAnimatorGtk;
class DownloadShelfGtk : public DownloadShelf {
@@ -36,6 +37,9 @@ class DownloadShelfGtk : public DownloadShelf {
// Returns the current height of the shelf.
int GetHeight() const;
+ // Changes the color of the background shelf.
+ void UserChangedTheme(GtkThemeProperties* properties);
+
private:
// Remove |download_item| from the download shelf and delete it.
void RemoveDownloadItem(DownloadItemGtk* download_item);
@@ -58,6 +62,9 @@ class DownloadShelfGtk : public DownloadShelf {
// for an explanation of the widget layout.
OwnedWidgetGtk shelf_;
+ // A GtkEventBox which we color.
+ GtkWidget* padding_bg_;
+
// This hbox holds the link text and download icon. It also holds the
// distinction of being the leftmost non-download item widget on the shelf.
GtkWidget* link_hbox_;
« no previous file with comments | « chrome/browser/gtk/download_item_gtk.cc ('k') | chrome/browser/gtk/download_shelf_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698