Set background image sourceSize to screen size
Saves memory for most displays
This commit is contained in:
parent
a8e1973eb2
commit
92b3baa012
@ -1,6 +1,7 @@
|
|||||||
import QtQuick 2.7
|
import QtQuick 2.7
|
||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
|
import QtQuick.Window 2.7
|
||||||
import "Base"
|
import "Base"
|
||||||
import "SidePane"
|
import "SidePane"
|
||||||
|
|
||||||
@ -11,6 +12,8 @@ Item {
|
|||||||
id: mainUIBackground
|
id: mainUIBackground
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
source: "../images/login_background.jpg"
|
source: "../images/login_background.jpg"
|
||||||
|
sourceSize.width: Screen.width
|
||||||
|
sourceSize.height: Screen.height
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user