summaryrefslogtreecommitdiff
path: root/components/styles/default/TextFieldStyle.qml
blob: 38da6b0db6d4c8c950ac6eb7c01401912f9d3893 (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
import QtQuick 1.0

QtObject {

    property int minimumWidth: 200
    property int minimumHeight: 25

    property int leftMargin : 8
    property int topMargin: 8
    property int rightMargin: 8
    property int bottomMargin: 8

    property Component background: Component {
        Item {  // see QTBUG-14873
            Rectangle { // Background center fill
                anchors.fill: parent
                anchors.margins: 1
                radius: 5
                color: backgroundColor
            }
            BorderImage { // Background border
                opacity: enabled ? 1 : 0.7
                anchors.fill: parent
                border.left: 6; border.top: 6
                border.right: 6; border.bottom: 6
                smooth: true
                source: "images/lineedit_normal.png"
            }
        }
    }

    property Component hints: Component {
        Item {
            property color textColor: "#444"
            property color backgroundColor: "white"
            property int fontPixelSize: 14
            property bool fontBold: false
            property int passwordEchoMode: TextInput.PasswordEchoOnEdit
        }
    }
}