Zhao Yuhang
2023-12-23 03c2a26820691493f5ebe86f64e0e360b0561642
examples/mainwindow/mainwindow.cpp
@@ -153,8 +153,7 @@
        auto acrylicAction = new QAction(tr("Enable acrylic material"), menuBar);
        acrylicAction->setCheckable(true);
        connect(acrylicAction, &QAction::triggered, this, [this](bool checked) {
            if (!windowAgent->setWindowAttribute(QStringLiteral("acrylic-material"),
                                                 QColor::fromRgbF(1.f, 1.f, 1.f, 0.6f))) {
            if (!windowAgent->setWindowAttribute(QStringLiteral("acrylic-material"), true)) {
                return;
            }
            setProperty("custom-style", checked);