~mzanetti/unity8/fix-1648251

« back to all changes in this revision

Viewing changes to qml/Dash/DashBackground.qml

  • Committer: Michael Zanetti
  • Date: 2016-12-01 12:20:34 UTC
  • mfrom: (2525.1.179 unity8)
  • Revision ID: michael.zanetti@canonical.com-20161201122034-cpvbf7webbhg2wph
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 */
16
16
 
17
17
import QtQuick 2.4
18
 
import QtQuick.Window 2.2
19
 
import ImageCache 0.1
20
18
 
21
 
Image {
22
 
    source: "image://unity8imagecache/" + Qt.resolvedUrl("graphics/paper.png")
23
 
    fillMode: Image.PreserveAspectCrop
24
 
    horizontalAlignment: Image.AlignRight
25
 
    verticalAlignment: Image.AlignTop
26
 
    // avoid CPU scaling when window size changes
27
 
    readonly property int maxSize: Math.max(Screen.width, Screen.height)
28
 
    sourceSize.width: maxSize
29
 
    sourceSize.height: 0
 
19
Rectangle {
 
20
    color: "white"
30
21
}