From fc315feac41e119077ba8a41868423a04b7c208d Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 6 Oct 2018 13:14:32 -0700 Subject: [PATCH] Maximize the Qt UI window if configured for a full-screen display mode --- app/gui/main.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/gui/main.qml b/app/gui/main.qml index a401905a..24031812 100644 --- a/app/gui/main.qml +++ b/app/gui/main.qml @@ -18,6 +18,12 @@ ApplicationWindow { width: 1280 height: 600 + // Maximize the window by default when the stream is configured + // for full-screen or borderless windowed. This is ideal for TV + // setups where the user doesn't want a tiny window in the middle + // of their screen when starting Moonlight. + visibility: prefs.windowMode != StreamingPreferences.WM_WINDOWED ? "Maximized" : "Windowed" + Material.theme: Material.Dark Material.accent: Material.Purple