💄 Made borders even darker

main
Isabell Pflug 12 months ago
parent 4fc8860bfb
commit da31974744

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

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

Loading…
Cancel
Save