💄 Made borders even darker

main
Isabell Pflug 2 years ago
parent 4fc8860bfb
commit da31974744

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

@ -39,6 +39,7 @@ public:
void bubbleUp(int row, int column); void bubbleUp(int row, int column);
void bubbleBoxes(std::set<std::vector<int>> *connected); void bubbleBoxes(std::set<std::vector<int>> *connected);
void setPalettes(); void setPalettes();
void showHighscore();
private slots: private slots:
void buttonPressed(int row, int column); void buttonPressed(int row, int column);

Loading…
Cancel
Save