From 870c046c4c7239a4f22a7020478a6a5df6eb1c0f Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 12 Feb 2018 16:16:09 -0600 Subject: [PATCH] Users struggle with Pane Dividers. Make them larger, and set a min-size on the mixer list pane. --- gtk2_ardour/mixer_ui.cc | 2 +- libs/widgets/pane.cc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 23bc8c52db..cbe20af807 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -268,7 +268,7 @@ Mixer_UI::Mixer_UI () list_hpane.set_check_divider_position (true); list_hpane.add (list_vpacker); list_hpane.add (global_hpacker); - list_hpane.set_child_minsize (list_vpacker, 1); + list_hpane.set_child_minsize (list_vpacker, 30); XMLNode const * settings = ARDOUR_UI::instance()->mixer_settings(); float fract; diff --git a/libs/widgets/pane.cc b/libs/widgets/pane.cc index 2968f7bfaa..1006a9cfa1 100644 --- a/libs/widgets/pane.cc +++ b/libs/widgets/pane.cc @@ -32,7 +32,7 @@ using namespace ArdourWidgets; Pane::Pane (bool h) : horizontal (h) , did_move (false) - , divider_width (2) + , divider_width (5) , check_fract (false) { using namespace Gdk; @@ -641,8 +641,8 @@ Pane::Divider::Divider () bool Pane::Divider::on_expose_event (GdkEventExpose* ev) { - Gdk::Color c = (dragging ? get_style()->get_fg (Gtk::STATE_ACTIVE) : - get_style()->get_fg (get_state())); + Gdk::Color c = (dragging ? get_style()->get_bg (Gtk::STATE_ACTIVE) : + get_style()->get_bg (get_state())); Cairo::RefPtr draw_context = get_window()->create_cairo_context (); draw_context->rectangle (ev->area.x, ev->area.y, ev->area.width, ev->area.height); @@ -657,7 +657,7 @@ bool Pane::handle_enter_event (GdkEventCrossing*, Divider* d) { d->get_window()->set_cursor (drag_cursor); - d->set_state (Gtk::STATE_SELECTED); + d->set_state (Gtk::STATE_ACTIVE); return true; }