Improve default window size for small screens

This commit is contained in:
miruka 2019-12-08 14:40:56 -04:00
parent 9a074e6097
commit 5326726c4f

View File

@ -7,8 +7,8 @@ ApplicationWindow {
flags: Qt.WA_TranslucentBackground flags: Qt.WA_TranslucentBackground
minimumWidth: theme ? theme.minimumSupportedWidth : 240 minimumWidth: theme ? theme.minimumSupportedWidth : 240
minimumHeight: theme ? theme.minimumSupportedHeight : 120 minimumHeight: theme ? theme.minimumSupportedHeight : 120
width: 640 width: Math.min(screen.width, 1152)
height: 480 height: Math.min(screen.height, 768)
visible: true visible: true
color: "transparent" color: "transparent"