diff --git a/data/gfx/gui/misc/startwindowbg.png b/data/gfx/gui/misc/startwindowbg.png new file mode 100644 index 00000000..7550d99a Binary files /dev/null and b/data/gfx/gui/misc/startwindowbg.png differ diff --git a/src/gui/qt/startwindow.ui b/src/gui/qt/startwindow.ui index 9e551a12..d7f44336 100644 --- a/src/gui/qt/startwindow.ui +++ b/src/gui/qt/startwindow.ui @@ -5,10 +5,22 @@ 0 0 - 444 - 338 + 450 + 350 + + + 450 + 350 + + + + + 450 + 350 + + PokerTH 0.6.3 - The Open-Source Texas Holdem Engine @@ -105,8 +117,8 @@ 0 0 - 444 - 30 + 450 + 23 diff --git a/src/gui/qt/startwindow/startwindowimpl.cpp b/src/gui/qt/startwindow/startwindowimpl.cpp index 7fbb12d5..f5f89acb 100644 --- a/src/gui/qt/startwindow/startwindowimpl.cpp +++ b/src/gui/qt/startwindow/startwindowimpl.cpp @@ -69,6 +69,17 @@ startWindowImpl::startWindowImpl(ConfigFile *c) setupUi(this); this->setWindowTitle(QString(tr("PokerTH %1 - The Open-Source Texas Holdem Engine").arg(POKERTH_BETA_RELEASE_STRING))); + //Widgets Grafiken per Stylesheets setzen + QString myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str()); + this->setStyleSheet("QMainWindow { background-image: url(" + myAppDataPath +"gfx/gui/misc/startwindowbg.png); background-position: bottom center; background-origin: content;}"); + +// pushButtonStart_Local_Game->setStyleSheet("QPushButton:enabled { background-color: #1C7000; color: #99D500;} QPushButton:disabled { background-color: #145300; color: #486F3E; font-weight: 900;}"); +// pushButtonInternet_Game->setStyleSheet("QPushButton:enabled { background-color: #1C7000; color: #99D500;} QPushButton:disabled { background-color: #145300; color: #486F3E; font-weight: 900;}"); +// pushButton_Create_Network_Game->setStyleSheet("QPushButton:enabled { background-color: #1C7000; color: #99D500;} QPushButton:disabled { background-color: #145300; color: #486F3E; font-weight: 900;}"); +// pushButton_Join_Network_Game->setStyleSheet("QPushButton:enabled { background-color: #1C7000; color: #99D500;} QPushButton:disabled { background-color: #145300; color: #486F3E; font-weight: 900;}"); +// menubar->setStyleSheet("QMenuBar { background-color: #145300; } QMenuBar::item { color: #99D500; }"); + + // Dialogs myNewGameDialog = new newGameDialogImpl(this, myConfig); mySelectAvatarDialog = new selectAvatarDialogImpl(this, myConfig);