From d3de92782074dca5ff02eae5263996a652b61f6e Mon Sep 17 00:00:00 2001 From: Collecting Date: Sun, 4 Jan 2026 18:32:37 +0000 Subject: [PATCH] fix(overhaul): UI and resolution bugs for Steam Deck (Gamescope) Signed-off-by: Collecting --- src/citron/about_dialog.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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));