diff options
author | Doug McLain <doug@nostar.net> | 2006-01-06 15:06:33 +0000 |
---|---|---|
committer | Doug McLain <doug@nostar.net> | 2006-01-06 15:06:33 +0000 |
commit | 1186b1d881fac3d1d1b55954b84b958c988501c4 (patch) | |
tree | daebae62a81cd7f88a4c04335a47c569d94d17ed /gtk2_ardour/utils.h | |
parent | bd21c474e547d49338ea0efd452895de1e147cd5 (diff) |
modified rgba_from_style() so that it can be used to retrieve any attribute from any style, return rgb or rgba, then used to to remove hard coding of colors in transport buttons and whole_file region names. Theme changes too
git-svn-id: svn://localhost/trunk/ardour2@245 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/utils.h')
-rw-r--r-- | gtk2_ardour/utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/utils.h b/gtk2_ardour/utils.h index 2180e80fc4..221329727e 100644 --- a/gtk2_ardour/utils.h +++ b/gtk2_ardour/utils.h @@ -69,12 +69,12 @@ int channel_combo_get_channel_count (Gtk::ComboBoxText& combo); Pango::FontDescription get_font_for_style (std::string widgetname); gint pane_handler (GdkEventButton*, Gtk::Paned*); -uint32_t rgba_from_style (std::string style, uint32_t, uint32_t, uint32_t, uint32_t); +uint32_t rgba_from_style (std::string, uint32_t, uint32_t, uint32_t, uint32_t, std::string = "fg", int = Gtk::STATE_NORMAL, bool = true); void decorate (Gtk::Window& w, Gdk::WMDecoration d); bool canvas_item_visible (ArdourCanvas::Item* item); -void set_color (Gdk::Color&, gint, gint, gint); +void set_color (Gdk::Color&, int); #endif /* __ardour_gtk_utils_h__ */ |