Skip to content

Commit

Permalink
Don't set menu background
Browse files Browse the repository at this point in the history
  • Loading branch information
kuiperzone authored Oct 15, 2021
1 parent 5df98fe commit 876ca74
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions source/main/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,14 @@ MainWindow::MainWindow(QWidget *parent) :

setMinimumSize(300, 225);
setWindowTitle(QString::fromStdString(Game::GameTitle));
statusBar()->setVisible(false);

// DeviceCanvas is a QObject and will be deleted by parent
Game::DeviceCanvas *canvas = new Game::DeviceCanvas(this, menuBar()->height(), 0);
Game::DeviceCanvas *canvas = new Game::DeviceCanvas(this, 0, 0);

_player = new Game::Player(canvas);
connect(&_pollTimer, &QTimer::timeout, this, &MainWindow::advanceUniverse);

// Set default background color to match canvas
QPalette pal;
pal.setColor(QPalette::Background, canvas->background());
pal.setColor(QPalette::ButtonText, Qt::white);
setPalette(pal);

_dialog = new AboutDialog(this);
}

Expand Down

0 comments on commit 876ca74

Please sign in to comment.