fix TAV text-entry size.
authorRobin Gareus <robin@gareus.org>
Mon, 8 Sep 2014 22:05:14 +0000 (00:05 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 8 Sep 2014 22:05:14 +0000 (00:05 +0200)
for now: no round corners, gtk-entry + its frame
packing messes things up

gtk2_ardour/styles.rc.in
gtk2_ardour/time_axis_view.cc

index 9aef8703705a748d738d3706954f5806efee0d65..a4daf7b4dcf99ff80b268193bce90213ee47f231 100644 (file)
@@ -803,6 +803,8 @@ style "audio_bus_metrics_inactive" = "track_controls_inactive"
 
 style "track_name_display" = "medium_text"
 {
+       xthickness = 0
+       ythickness = 0
        fg[NORMAL] = @@COLPREFIX@_fg
        fg[ACTIVE] = @@COLPREFIX@_fg
        fg[SELECTED] = @@COLPREFIX@_fg
@@ -813,7 +815,7 @@ style "track_name_display" = "medium_text"
 
        base[NORMAL] = @@COLPREFIX@_base
        base[ACTIVE] = lighter(@@COLPREFIX@_base)
-        base[SELECTED] = @@COLPREFIX@_bg_selected
+       base[SELECTED] = @@COLPREFIX@_bg_selected
 
        bg[NORMAL] = lighter(@@COLPREFIX@_base)
        bg[ACTIVE] = lighter(@@COLPREFIX@_base)
index 3e132e5eb1d052fdd7c42a33f561963171c30b16..9b3a9178d4ca4498273c7d900a0932838f721ff9 100644 (file)
@@ -137,7 +137,8 @@ TimeAxisView::TimeAxisView (ARDOUR::Session* sess, PublicEditor& ed, TimeAxisVie
        name_label.set_width_chars (12);
        ARDOUR_UI::instance()->set_tip (name_label, _("Track/Bus name (double click to edit)"));
 
-       Gtk::Entry* an_entry = new Gtk::Entry;
+       Gtk::Entry* an_entry = new Gtkmm2ext::FocusEntry;
+       an_entry->set_name ("EditorTrackNameDisplay");
        Gtk::Requisition req;
        an_entry->size_request (req);
        name_label.set_size_request (-1, req.height);
@@ -205,7 +206,7 @@ TimeAxisView::TimeAxisView (ARDOUR::Session* sess, PublicEditor& ed, TimeAxisVie
        time_axis_vbox.show();
        time_axis_hbox.pack_start (time_axis_vbox, true, true);
        time_axis_hbox.show();
-       top_hbox.pack_start (scroomer_placeholder, false, false);
+       top_hbox.pack_start (scroomer_placeholder, false, false); // OR pack_end to move after meters ?
 
        ColorsChanged.connect (sigc::mem_fun (*this, &TimeAxisView::color_handler));