hiro/qt: QPalette::Background -> QPalette::Window

This commit is contained in:
John Chadwick
2025-09-01 03:34:43 -04:00
committed by Screwtapello
parent a6db3d6013
commit a4f0b478ea

4
hiro/qt/window.cpp Normal file → Executable file
View File

@@ -101,10 +101,10 @@ auto pWindow::remove(sStatusBar statusBar) -> void {
}
auto pWindow::setBackgroundColor(Color color) -> void {
static auto defaultColor = qtContainer->palette().color(QPalette::Background);
static auto defaultColor = qtContainer->palette().color(QPalette::Window);
auto palette = qtContainer->palette();
palette.setColor(QPalette::Background, CreateColor(color, defaultColor));
palette.setColor(QPalette::Window, CreateColor(color, defaultColor));
qtContainer->setPalette(palette);
qtContainer->setAutoFillBackground((bool)color);
//translucency results are very unpleasant without a compositor; so disable for now