Set background image sourceSize to screen size

Saves memory for most displays
This commit is contained in:
miruka 2019-05-01 03:25:58 -04:00
parent a8e1973eb2
commit 92b3baa012

View File

@ -1,6 +1,7 @@
import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtQuick.Window 2.7
import "Base"
import "SidePane"
@ -11,6 +12,8 @@ Item {
id: mainUIBackground
fillMode: Image.PreserveAspectCrop
source: "../images/login_background.jpg"
sourceSize.width: Screen.width
sourceSize.height: Screen.height
anchors.fill: parent
}