From 24f03e4444a1e52e16223a02de7deff5d3905688 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 5 Jan 2011 02:06:29 +0000 Subject: Light mono button up when it is active, and make it bindable. Fixes #3665. git-svn-id: svn://localhost/ardour2/branches/3.0@8442 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/ardour3_ui_dark.rc.in | 11 +++++++---- gtk2_ardour/mixer_strip.h | 9 +++++---- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/ardour3_ui_dark.rc.in b/gtk2_ardour/ardour3_ui_dark.rc.in index 373dec58f8..a50968b91a 100644 --- a/gtk2_ardour/ardour3_ui_dark.rc.in +++ b/gtk2_ardour/ardour3_ui_dark.rc.in @@ -418,8 +418,11 @@ style "solo_button_active" = "small_button" fg[PRELIGHT] = { 0, 0, 0 } } -style "mixer_invert_button" = "small_button" +style "mixer_toggle_button" = "small_button" { + font_name = "@FONT_SMALLER@" + ythickness = 0 + xthickness = 0 bg[ACTIVE] = { 1.0, 0.749, 0.247 } fg[ACTIVE] = { 0, 0, 0 } } @@ -1550,8 +1553,8 @@ widget "*MixerSoloButton-active" style:highest "mixer_solo_button_active" widget "*TrackLoopButton*" style:highest "track_loop_button" widget "*PanAutomationLineSelector*" style:highest "multiline_combo" widget "*EditorTimeButton*" style:highest "time_button" -widget "*MixerInvertButton*" style:highest "mixer_invert_button" -widget "*MixerInvertButton.*" style:highest "mixer_invert_button" +widget "*MixerInvertButton*" style:highest "mixer_toggle_button" +widget "*MixerInvertButton.*" style:highest "mixer_toggle_button" widget "*MixerAutomationRecordingButton*" style:highest "very_small_button" widget "*MixerAutomationRecordingButton.*" style:highest "very_small_button" widget "*MixerAutomationModeButton*" style:highest "very_small_button" @@ -1564,7 +1567,7 @@ widget "*MixerGroupButton" style:highest "very_small_button" widget "*MixerGroupButtonLabel" style:highest "very_small_button" widget "*MixerCommentButton" style:highest "very_small_button" widget "*MixerCommentButton*" style:highest "very_small_button" -widget "*MixerMonoButton*" style:highest "very_small_button" +widget "*MixerMonoButton*" style:highest "mixer_toggle_button" widget "*EditGroupButton" style:highest "very_small_button" widget "*EditGroupButtonLabel" style:highest "very_small_button" widget "*TransportButton" style:highest "transport_button" diff --git a/gtk2_ardour/mixer_strip.h b/gtk2_ardour/mixer_strip.h index 651c9eace9..55d6541ef8 100644 --- a/gtk2_ardour/mixer_strip.h +++ b/gtk2_ardour/mixer_strip.h @@ -34,9 +34,10 @@ #include #include -#include -#include -#include +#include "gtkmm2ext/auto_spin.h" +#include "gtkmm2ext/click_box.h" +#include "gtkmm2ext/slider_controller.h" +#include "gtkmm2ext/bindable_button.h" #include "pbd/stateful.h" @@ -160,7 +161,7 @@ class MixerStrip : public RouteUI, public Gtk::EventBox ProcessorBox processor_box; GainMeter gpm; PannerUI panners; - Gtk::ToggleButton _mono_button; + BindableToggleButton _mono_button; Gtk::Table button_table; Gtk::Table solo_led_table; -- cgit v1.2.3