QGCColoredImage.qml 1.21 KB
Newer Older
dogmaphobic's avatar
dogmaphobic committed
1
import QtQuick 2.3
Don Gagne's avatar
Don Gagne committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
import QtGraphicalEffects 1.0

import QGroundControl.Palette 1.0

Item {
    property color color: "white"   // Image color

    property alias asynchronous: image.asynchronous
    property alias cache: image.cache
    property alias fillMode: image.fillMode
    property alias horizontalAlignment: image.horizontalAlignment
    property alias mirror: image.mirror
    property alias paintedHeight: image.paintedHeight
    property alias paintedWidth: image.paintedWidth
    property alias progress: image.progress
    property alias smooth: image.smooth
dogmaphobic's avatar
dogmaphobic committed
20
    property alias mipmap: image.mipmap
Don Gagne's avatar
Don Gagne committed
21 22 23 24 25
    property alias source: image.source
    property alias sourceSize: image.sourceSize
    property alias status: image.status
    property alias verticalAlignment: image.verticalAlignment

26
    width:  image.width
Don Gagne's avatar
Don Gagne committed
27 28 29
    height: image.height

    Image {
30 31 32 33 34 35
        id:             image
        smooth:         true
        mipmap:         true
        antialiasing:   true
        visible:        false
        anchors.fill:   parent
Don Gagne's avatar
Don Gagne committed
36 37 38
    }

    ColorOverlay {
39 40 41
        anchors.fill:   image
        source:         image
        color:          parent.color
Don Gagne's avatar
Don Gagne committed
42
    }
dogmaphobic's avatar
dogmaphobic committed
43
}