mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
remove additional "mid" color from ArdourButton; replace Active/Mid widget state with ExplicitActive/ImplicitActive; represent implicit-active state with colored border around ArdourButton; tune button colors; new rounded_foo() functions, some in use, some not in use right now
git-svn-id: svn://localhost/ardour2/branches/3.0@11466 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
86a9d45ad0
commit
b08d13706f
23 changed files with 310 additions and 409 deletions
|
|
@ -481,13 +481,7 @@ PlugUIBase::PlugUIBase (boost::shared_ptr<PluginInsert> pi)
|
|||
|
||||
bypass_button.set_name ("plugin bypass button");
|
||||
bypass_button.set_text (_("Bypass"));
|
||||
|
||||
if (!pi->active()) {
|
||||
bypass_button.set_active_state (Gtkmm2ext::Active);
|
||||
} else {
|
||||
bypass_button.unset_active_state ();
|
||||
}
|
||||
|
||||
bypass_button.set_active (!pi->active());
|
||||
bypass_button.signal_button_release_event().connect (sigc::mem_fun(*this, &PlugUIBase::bypass_button_release));
|
||||
focus_button.add_events (Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK);
|
||||
|
||||
|
|
@ -567,11 +561,7 @@ PlugUIBase::processor_active_changed (boost::weak_ptr<Processor> weak_p)
|
|||
boost::shared_ptr<Processor> p (weak_p.lock());
|
||||
|
||||
if (p) {
|
||||
if (!p->active()) {
|
||||
bypass_button.set_active_state (Gtkmm2ext::Active);
|
||||
} else {
|
||||
bypass_button.unset_active_state ();
|
||||
}
|
||||
bypass_button.set_active (!p->active());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue