|
|
|
@ -94,6 +94,10 @@ void MainWindow::bubbleBoxes(std::set<std::vector<int>> *connected) {
|
|
|
|
|
refreshButtonGrid();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::showHighscore() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// slots
|
|
|
|
|
void MainWindow::buttonPressed(int row, int column) {
|
|
|
|
|
MainWindow::setEnabled(false);
|
|
|
|
@ -182,9 +186,9 @@ void MainWindow::setPalettes() {
|
|
|
|
|
const QBrush bgDarkBrush = QBrush(0xffd1d9);
|
|
|
|
|
const QBrush textBrush = QBrush(0xa4133c);
|
|
|
|
|
auto setColorGroups = [](QPalette *pal, QBrush textBrush, QBrush bgBrush) -> void {
|
|
|
|
|
pal->setColorGroup(QPalette::Active, textBrush, bgBrush, QBrush(0xffd1d9), bgBrush, bgBrush, textBrush, textBrush, bgBrush, bgBrush);
|
|
|
|
|
pal->setColorGroup(QPalette::Inactive, textBrush, bgBrush, QBrush(0xffd1d9), bgBrush, bgBrush, textBrush, textBrush, bgBrush, bgBrush);
|
|
|
|
|
pal->setColorGroup(QPalette::Disabled, textBrush, bgBrush, QBrush(0xffd1d9), bgBrush, bgBrush, textBrush, textBrush, bgBrush, bgBrush);
|
|
|
|
|
pal->setColorGroup(QPalette::Active, textBrush, bgBrush, textBrush, bgBrush, bgBrush, textBrush, textBrush, bgBrush, bgBrush);
|
|
|
|
|
pal->setColorGroup(QPalette::Inactive, textBrush, bgBrush, textBrush, bgBrush, bgBrush, textBrush, textBrush, bgBrush, bgBrush);
|
|
|
|
|
pal->setColorGroup(QPalette::Disabled, textBrush, bgBrush, textBrush, bgBrush, bgBrush, textBrush, textBrush, bgBrush, bgBrush);
|
|
|
|
|
};
|
|
|
|
|
setColorGroups(&palLight, textBrush, bgLightBrush);
|
|
|
|
|
setColorGroups(&palDark, textBrush, bgDarkBrush);
|
|
|
|
|