Improve the appearance of message dialogs.

This commit is contained in:
Jonathan Moore Liles 2008-05-17 13:42:50 -05:00
parent f920867579
commit 9261c3fea6
2 changed files with 8 additions and 3 deletions

View File

@ -110,6 +110,10 @@ system_colors[ 2 ] = (Fl_Color)Fl::get_color( FL_BACKGROUND2_COLOR );
Fl::add_timeout( STATUS_UPDATE_FREQ, update_cb, this ); Fl::add_timeout( STATUS_UPDATE_FREQ, update_cb, this );
fl_message_icon()->box( FL_RSHADOW_BOX );
fl_message_icon()->labelcolor( FL_BLACK );
fl_message_icon()->color( FL_RED );
fl_message_font( FL_HELVETICA, 18 );
std::list <const char *> formats; std::list <const char *> formats;
@ -174,14 +178,14 @@ if ( ! name )
if ( ! Project::validate( name ) ) if ( ! Project::validate( name ) )
{ {
fl_alert( "\\"%s\\" does not appear to be a valid Non-DAW project!", name ); fl_alert( "The path \\"%s\\"\\ndoes not refer to a valid Non-DAW project!", name );
} }
else if ( ! Project::open( name ) ) else if ( ! Project::open( name ) )
{ {
fl_alert( "Could not open \\"%s\\" as a Non-DAW project!", name ); fl_alert( "Could not open \\"%s\\" as a Non-DAW project!", name );
// we are in a somewhar ambiguous state now with no project open. // we are in a somewhar ambiguous state now with no project open.
}} }} selected
xywh {10 10 40 25} xywh {10 10 40 25}
} }
MenuItem {} { MenuItem {} {
@ -776,7 +780,7 @@ while ( _window->shown() )
fl_alert( "Error creating project!" ); fl_alert( "Error creating project!" );
_window->hide(); _window->hide();
}} selected }}
xywh {455 140 80 35} xywh {455 140 80 35}
} }
Fl_File_Input _directory { Fl_File_Input _directory {

View File

@ -87,6 +87,7 @@ ensure_dirs ( void )
#include <FL/Fl_Shared_Image.H> #include <FL/Fl_Shared_Image.H>
int int
main ( int argc, char **argv ) main ( int argc, char **argv )
{ {