mirror of
https://git.citron-emu.org/citron/emulator
synced 2026-01-31 06:43:35 +00:00
fix(gamescope): Increase Resolution
Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
@@ -23,6 +23,7 @@ MultiplayerRoomOverlay::MultiplayerRoomOverlay(QWidget* parent)
|
||||
|
||||
main_window = qobject_cast<GMainWindow*>(parent->window());
|
||||
|
||||
// Switched to Qt::Tool to allow keyboard focus for typing in chat
|
||||
setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
|
||||
setAttribute(Qt::WA_TranslucentBackground);
|
||||
|
||||
@@ -70,8 +71,13 @@ MultiplayerRoomOverlay::MultiplayerRoomOverlay(QWidget* parent)
|
||||
|
||||
const bool is_gamescope = !qgetenv("GAMESCOPE_WIDTH").isEmpty() || qgetenv("XDG_CURRENT_DESKTOP") == "gamescope";
|
||||
if (is_gamescope) {
|
||||
setMinimumSize(240, 180);
|
||||
resize(280, 240);
|
||||
setMinimumSize(320, 260);
|
||||
resize(600, 520);
|
||||
|
||||
players_online_label->setFont(QFont(QString::fromUtf8("Segoe UI"), 11, QFont::Bold));
|
||||
|
||||
this->padding = 12;
|
||||
main_layout->setContentsMargins(padding, padding, padding, padding);
|
||||
} else {
|
||||
setMinimumSize(280, 220);
|
||||
resize(320, 280);
|
||||
|
||||
Reference in New Issue
Block a user