diff options
author | 2010-04-09 21:33:45 +0200 | |
---|---|---|
committer | 2010-04-09 21:33:45 +0200 | |
commit | 133b2f31913b25ff222bd9ba9aa716a990e0d94a (patch) | |
tree | b542d3d0b4dfc57013b280cde9a459debb9e05f2 /plugins/gtkui/ddbequalizer.vala | |
parent | f20673387d5a4df6126002601ead256911d4957f (diff) |
few drawing fixes in EQ, seekbar and volumebar
Diffstat (limited to 'plugins/gtkui/ddbequalizer.vala')
-rw-r--r-- | plugins/gtkui/ddbequalizer.vala | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/plugins/gtkui/ddbequalizer.vala b/plugins/gtkui/ddbequalizer.vala index 9f18279a..317dcca0 100644 --- a/plugins/gtkui/ddbequalizer.vala +++ b/plugins/gtkui/ddbequalizer.vala @@ -33,8 +33,6 @@ namespace Ddb { private int mouse_y; - private bool aa_mode = false; - private bool curve_hook = false; private bool preamp_hook = false; @@ -57,14 +55,7 @@ namespace Ddb { margin_bottom = (int)(Pango.units_to_double (get_style ().font_desc.get_size ()) * Gdk.Screen.get_default ().get_resolution () / 72 + 4); margin_left = margin_bottom * 4; - modify_bg (Gtk.StateType.NORMAL, Gtkui.get_bar_background_color ()); - } - - public void - aa_mode_changed (Gtk.CheckMenuItem item) - { - aa_mode = item.active; - queue_draw (); + color_changed (); } public override bool @@ -354,5 +345,11 @@ namespace Ddb { get_preamp () { return ((1 - preamp) * 40.0) - 20.0; } + + public void + color_changed () { + Gtkui.init_theme_colors (); + modify_bg (Gtk.StateType.NORMAL, Gtkui.get_bar_background_color ()); + } } } |