|
|
|
@ -34,7 +34,7 @@ void MainWindow::initialiseGameGrid() {
|
|
|
|
|
{
|
|
|
|
|
QPushButton * button = new QPushButton(this);
|
|
|
|
|
button->setFixedSize(button_size);
|
|
|
|
|
button->setStyleSheet("background-color: " + game->getCell(i,j) + "; border: none;");
|
|
|
|
|
button->setStyleSheet("color: #FFFFFF; Font : 30pt; background-color: " + game->getCell(i,j) + "; border: none;");
|
|
|
|
|
ui->gameGridLayout->addWidget(button, j, i);
|
|
|
|
|
|
|
|
|
|
// Set size text etc. for each button
|
|
|
|
@ -67,6 +67,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|
|
|
|
, max_height(544)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
this->setStyleSheet("color: #DB7093;");
|
|
|
|
|
|
|
|
|
|
game = new SameGame(rows, columns);
|
|
|
|
|
initialiseGame();
|
|
|
|
|