diff --git a/src/citron/about_dialog.cpp b/src/citron/about_dialog.cpp index d21b901bd..36137b7ea 100644 --- a/src/citron/about_dialog.cpp +++ b/src/citron/about_dialog.cpp @@ -9,14 +9,21 @@ #include "citron/about_dialog.h" AboutDialog::AboutDialog(QWidget* parent) - : QDialog(parent), ui{std::make_unique()} { + : QDialog(parent) { + const bool is_gamescope = !qgetenv("GAMESCOPE_WIDTH").isEmpty() || qgetenv("XDG_CURRENT_DESKTOP") == "gamescope"; + + if (is_gamescope) { + setWindowFlags(Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint); + } + std::string citron_build_version = "citron | 0.12.25"; #ifdef CITRON_ENABLE_PGO_USE citron_build_version += " | PGO"; #endif + ui = std::make_unique(); ui->setupUi(this); - // Try and request the icon from Qt theme (Linux?) + const QIcon citron_logo = QIcon::fromTheme(QStringLiteral("org.citron_emu.citron")); if (!citron_logo.isNull()) { ui->labelLogo->setPixmap(citron_logo.pixmap(200));