Skip to content

Commit

Permalink
-new splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
JannickWeisshaupt committed Nov 26, 2018
1 parent f756dbf commit 1c3bfe7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion docs/introduction.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#########################
Introduction into OpenDFT
#########################
#########################

OpenDFT is a free and open source software that brings cutting edge solid state research to the people. It is a graphical program that
interacts with various scientific terminal based solid state software packages. It visualizes inputs, such as the crystal structure and
outputs, such as band structures and optical spectra and can start and control calculations, which are done by the respective scientific
solid state package. OpenDFT is designed to be DFT engine agnostic so that you can easily switch between different scientific codes and
compare results seamlessly.
Binary file added src/data/artwork/splash_screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/qt_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def __lt__ (self, other):
return QtGui.QTableWidgetItem.__lt__(self, other)

def make_splash_screen():
splash_pix = QtGui.QPixmap(find_data_file('/data/artwork/gaas_cubic_with_header.png')).scaled(500, 500, QtCore.Qt.KeepAspectRatio,QtCore.Qt.SmoothTransformation)
splash_pix = QtGui.QPixmap(find_data_file('/data/artwork/splash_screen.png')).scaled(700, 700, QtCore.Qt.KeepAspectRatio,QtCore.Qt.SmoothTransformation)
splash = QtGui.QSplashScreen(splash_pix, QtCore.Qt.WindowStaysOnTopHint)
splash.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.FramelessWindowHint)
splash.setEnabled(False)
Expand All @@ -199,7 +199,7 @@ def make_splash_screen():
progressBar = QtGui.QProgressBar(splash)
progressBar.setTextVisible(False)
progressBar.setMaximum(10)
progressBar.setGeometry(0, splash_pix.height() - 50, splash_pix.width(), 20)
progressBar.setGeometry(70, 350, 150, 20)

# splash.setMask(splash_pix.mask())

Expand Down

0 comments on commit 1c3bfe7

Please sign in to comment.