🐛 Fixed default colors and button style

main
Isabell Pflug 2 years ago
parent a0c96414b9
commit e3c6001af0

@ -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();

@ -19,7 +19,7 @@ void SameGame::initialiseGameMatrix(int rows, int columns) {
}
SameGame::SameGame(int rows, int columns)
: colors(settings->value("colors/colors", QStringList() << "0xBD005E" << "0xFFC0CB" << "0xDB7093" << "0xF7A8B8" << "0x660033").toStringList())
: colors(settings->value("colors/colors", QStringList() << "#BD005E" << "#FFC0CB" << "#DB7093" << "#F7A8B8" << "#660033").toStringList())
// also ich finds echt cool!
{
initialiseGameMatrix(rows, columns);

Loading…
Cancel
Save