Users struggle with Pane Dividers. Make them larger, and set a min-size on the mixer...
authorBen Loftis <ben@harrisonconsoles.com>
Mon, 12 Feb 2018 22:16:09 +0000 (16:16 -0600)
committerBen Loftis <ben@harrisonconsoles.com>
Mon, 12 Feb 2018 22:16:09 +0000 (16:16 -0600)
gtk2_ardour/mixer_ui.cc
libs/widgets/pane.cc

index 23bc8c52db523f073344e8669ca1f8320abb51db..cbe20af807738e0eeecb231a0ec539d396dcf943 100644 (file)
@@ -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;
index 2968f7bfaaf69336c0ba313e298be4b8bb76d3c7..1006a9cfa1b7f9ef000e05fb8641f317cf9626e7 100644 (file)
@@ -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<Cairo::Context> 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;
 }