|
|
|
@ -160,9 +160,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, bgBrush, bgBrush, bgBrush, textBrush, textBrush, bgBrush, bgBrush);
|
|
|
|
|
pal->setColorGroup(QPalette::Inactive, textBrush, bgBrush, bgBrush, bgBrush, bgBrush, textBrush, textBrush, bgBrush, bgBrush);
|
|
|
|
|
pal->setColorGroup(QPalette::Disabled, textBrush, bgBrush, bgBrush, bgBrush, bgBrush, textBrush, textBrush, bgBrush, bgBrush);
|
|
|
|
|
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);
|
|
|
|
|
};
|
|
|
|
|
setColorGroups(&palLight, textBrush, bgLightBrush);
|
|
|
|
|
setColorGroups(&palDark, textBrush, bgDarkBrush);
|
|
|
|
|