Maximize the Qt UI window if configured for a full-screen display mode

This commit is contained in:
Cameron Gutman 2018-10-06 13:14:32 -07:00
parent 82a87e96b3
commit fc315feac4

View file

@ -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