summaryrefslogtreecommitdiffstats
path: root/QtDemo/qml/QtDemo/Group.qml
blob: a2e0f50d63f3758ccbbe20b40cabc05ec6e7d7dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import QtQuick 2.0

Item {
    id: group
    objectName: "group"

    /*color: "transparent"
    border.color: "red"
    border.width: 10*/

    property int uid: 0
    property real targetScale: 1
    property string textSource: "images/txt_feeds.png"
    property int textX: 0
    property int textY: 0
    property string name: "Text"
    property real imageScale: 6.0

    /*Image {
        x: group.textX
        y: group.textY
        source: group.textSource
        smooth: true
        scale: group.imageScale
    }*/

    property int fontSize: 120
    property string uiFont: "Purisa"
    property bool bold: true
    property int fontTransition: 6

    Text {
        text: group.name
        x: textX
        y: textY
        font.pixelSize: group.fontSize
        font.family: "Purisa"
        font.bold: group.bold
        color: "#42200a"
        smooth: true

        Text {
            text: group.name
            color: "#1d6cb0"
            x:group.fontTransition
            y:-group.fontTransition
            font.pixelSize: group.fontSize
            font.family: "Purisa"
            font.bold: group.bold
            smooth: true
        }
    }

}