diff --git a/ui-cpp/res/Logo_Ghost.png b/ui-cpp/res/Logo_Ghost.png new file mode 100644 index 000000000..3a81f433b Binary files /dev/null and b/ui-cpp/res/Logo_Ghost.png differ diff --git a/ui-cpp/resources.qrc b/ui-cpp/resources.qrc index 1b772f625..9497bad88 100644 --- a/ui-cpp/resources.qrc +++ b/ui-cpp/resources.qrc @@ -1,6 +1,7 @@ - - res/AppIcon32.png - res/AppIcon128.png - + + res/AppIcon32.png + res/AppIcon128.png + res/Logo_Ghost.png + \ No newline at end of file diff --git a/ui-cpp/src/MainWindow.cpp b/ui-cpp/src/MainWindow.cpp index cef6e5067..94b09928e 100644 --- a/ui-cpp/src/MainWindow.cpp +++ b/ui-cpp/src/MainWindow.cpp @@ -1178,20 +1178,29 @@ void MainWindow::view_cycle_camera() void MainWindow::about() { - QMessageBox::about(this, tr("About Spirit"), - QString::fromStdString(std::string("Spirit version ") + Spirit_Version_Full() +"

") + + QMessageBox about; + about.setInformativeText( QString::fromLatin1( - "The Spirit application incorporates intuitive visualisation,
" + "Library version ") + Spirit_Version_Full() + + QString::fromLatin1( + "

" + "The Spirit GUI application incorporates intuitive visualisation,
" "powerful Spin Dynamics and Nudged Elastic Band tools
" "into a cross-platform user interface.
" "
" - "Main developer:
" + "Main developers:
" " - Gideon Mueller (g.mueller@fz-juelich.de)
" + " - Moritz Sallermann (m.sallermann@fz-juelich.de)
" "at the Institute for Advanced Simulation 1 of the Forschungszentrum Juelich.
" "For more information about us, visit juSpin.de
" - "or see the IAS-1 Website
" + "or see the IAS-1 Website.
" "
" - "Copyright 2016
")); + "The sources are hosted at spirit-code.github.io" + " and the documentation can be found at spirit-docs.readthedocs.io.
")); + about.setStandardButtons(QMessageBox::Close); + about.setDefaultButton(QMessageBox::Close); + about.setIconPixmap(QPixmap(":/Icons/Logo_Ghost").scaled(QSize(256, 256), Qt::KeepAspectRatio, Qt::SmoothTransformation)); + about.exec(); } void MainWindow::keyBindings() @@ -1248,7 +1257,9 @@ void MainWindow::keyBindings() " - Ctrl+Left/Right: Insert left/right of current index
" " - Del: Delete image
" "
" - "Note that some of the keybindings may only work correctly on US keyboard layout.
")); + "Note that some of the keybindings may only work correctly on US keyboard layout.
" + "
" + "For more information see the documentation at spirit-docs.readthedocs.io")); } void MainWindow::return_focus()