[KPhotoAlbum] splashscreen
Christoph Moseler
forums at moseler.net
Wed Aug 23 22:39:25 BST 2006
Hi Jesper,
another thing, that should be changed in the next version of KPhotoAlbum
is, in my opinion, the splashscreen. Don't be angry with me, please, but
I think, the current splashscreen doesn't have to do a lot with a
digital photoalbum. I'm not a graphic designer, but I spend some hours
to create a new one, the result can be viewed here:
http://www.moseler.net/kpa/splash-large.png
Maybe that can be an interim solution. If anyone reading this does have
more skills in creating a splashscreen, that represents this great piece
of software in a better way, don't hesitate to post it here.
Please leave some space for the version number an the status messages in
your image, these are added dynamically during the start of KPhotoAlbum.
I will adapt the code to display these messages at the right position,
size, color and whatever.
Jesper, if you what to use my picture, you should apply the following patch.
Cheers,
Christoph
--- MainWindow/Window.cpp (revision 576279)
+++ MainWindow/Window.cpp (working copy)
@@ -110,13 +110,13 @@
_deleteDialog( 0 ), _dirtyIndicator(0),
_htmlDialog(0), _tokenEditor( 0 )
{
- SplashScreen::instance()->message( i18n("Loading Database") );
+ SplashScreen::instance()->message( i18n("Loading Database"),
AlignRight );
_instance = this;
bool gotConfigFile = load();
if ( !gotConfigFile )
exit(0);
- SplashScreen::instance()->message( i18n("Loading Main Window") );
+ SplashScreen::instance()->message( i18n("Loading Main Window"),
AlignRight );
// To avoid a race conditions where both the image loader thread
creates an instance of
// Options, and where the main thread crates an instance, we
better get it created now.
@@ -223,7 +224,7 @@
setupPluginMenu();
if (
Settings::SettingsData::instance()->searchForImagesOnStartup() ) {
- splash->message( i18n("Searching for New Images") );
+ splash->message( i18n("Searching for New Images"), AlignRight );
qApp->processEvents();
DB::ImageDB::instance()->slotRescan();
}
Index: MainWindow/SplashScreen.cpp
===================================================================
--- MainWindow/SplashScreen.cpp (revision 576279)
+++ MainWindow/SplashScreen.cpp (working copy)
@@ -33,18 +33,18 @@
resize( pix->size() );
QPainter painter( pix );
QFont fnt = font();
- fnt.setPixelSize( 24 );
+ fnt.setPixelSize( 16 );
fnt.setItalic( true );
painter.setFont( fnt );
- QPen pen( white );
+ QPen pen( QColor::QColor ( 0, 4, 174 ) );
painter.setPen( pen );
QString txt;
QString version = KGlobal::instance()->aboutData()->version();
if ( QRegExp( QString::fromLatin1("[0-9.-]+") ).exactMatch(
version ) )
- txt = i18n( "KPhotoAlbum version %1" ).arg( version );
+ txt = i18n( "Version %1" ).arg( version );
else
- txt = i18n( "KPhotoAlbum %1" ).arg( version );
- painter.drawText( QRect( QPoint(10, 400), QPoint( 630, 470 )),
AlignRight | AlignBottom, txt );
+ txt = i18n( "Version: %1" ).arg( version );
+ painter.drawText( QRect( QPoint(120, 298), QPoint( 380, 314 )),
AlignRight | AlignBottom, txt );
}
MainWindow::SplashScreen* MainWindow::SplashScreen::instance()
More information about the Kphotoalbum
mailing list