13
0

make panner data popups more contrasty and appear in a better position

git-svn-id: svn://localhost/ardour2/branches/3.0@8740 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-02-07 16:48:05 +00:00
parent f86ffe84ec
commit d3300660a3
3 changed files with 22 additions and 3 deletions

View File

@ -292,6 +292,16 @@ style "default" = "medium_text"
}
}
style "contrasting_popup" = "medium_text"
{
bg[NORMAL] = @A_lightest
fg[NORMAL] = @A_darkest
base[NORMAL] = @A_lightest
text[NORMAL] = @A_darkest
text[ACTIVE] = @A_darkest
text[SELECTED] = @A_darkest
}
style "base_frame"
{
fg[NORMAL] = @A_bg
@ -1427,6 +1437,7 @@ style "padded_button" = "default_button"
xthickness = 8
}
#---------------------------------------------------------------
class "GtkWidget" style:highest "default"
@ -1812,6 +1823,8 @@ widget "*MidiTracerTextView" style:highest "midi_tracer_textview"
widget "*SoloIsolatedLED" style:highest "solo_isolate_led"
widget "*SoloSafeLED" style:highest "solo_safe_led"
widget "*SoloLEDLabel" style:highest "very_small_text"
widget "*ContrastingPopup" style:highest "contrasting_popup"
widget "*ContrastingPopup*" style:highest "contrasting_popup"
widget "*RouteNameEditorEntry" style:highest "text_cell_entry"
widget "*RegionNameEditorEntry" style:highest "text_cell_entry"

View File

@ -374,6 +374,7 @@ MonoPanner::on_motion_notify_event (GdkEventMotion* ev)
if (!drag_data_window) {
drag_data_window = new Window (WINDOW_POPUP);
drag_data_window->set_name (X_("ContrastingPopup"));
drag_data_window->set_position (WIN_POS_MOUSE);
drag_data_window->set_decorated (false);
@ -392,7 +393,9 @@ MonoPanner::on_motion_notify_event (GdkEventMotion* ev)
if (!drag_data_window->is_visible ()) {
/* move the window a little away from the mouse */
drag_data_window->move (ev->x_root+30, ev->y_root+30);
int rx, ry;
get_window()->get_origin (rx, ry);
drag_data_window->move (rx, ry+get_height());
drag_data_window->present ();
}

View File

@ -483,6 +483,7 @@ StereoPanner::on_motion_notify_event (GdkEventMotion* ev)
if (!drag_data_window) {
drag_data_window = new Window (WINDOW_POPUP);
drag_data_window->set_name (X_("ContrastingPopup"));
drag_data_window->set_position (WIN_POS_MOUSE);
drag_data_window->set_decorated (false);
@ -500,8 +501,10 @@ StereoPanner::on_motion_notify_event (GdkEventMotion* ev)
}
if (!drag_data_window->is_visible ()) {
/* move the window a little away from the mouse */
drag_data_window->move (ev->x_root+30, ev->y_root+30);
/* move the popup window vertically down from the panner display */
int rx, ry;
get_window()->get_origin (rx, ry);
drag_data_window->move (rx, ry+get_height());
drag_data_window->present ();
}