blob: 6c2e20dc9e04b52ec68b1a75882131793c564354 (
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
55
56
57
58
59
60
61
62
63
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Controls.Private 1.0
/*!
\qmltype TextAreaStyle
\inqmlmodule QtQuick.Controls.Styles
\since 5.2
\ingroup controlsstyling
\brief Provides custom styling for TextArea.
Example:
\qml
TextArea {
style: TextAreaStyle {
textColor: "#333"
selectionColor: "steelblue"
selectedTextColor: "#eee"
backgroundColor: "#eee"
}
}
\endqml
*/
ScrollViewStyle {
id: style
/*! The \l TextArea attached to this style. */
readonly property TextArea control: __control
/*! The current font. */
property font font
/*! The text color. */
property color textColor: __syspal.text
/*! The text highlight color, used behind selections. */
property color selectionColor: __syspal.highlight
/*! The highlighted text color, used in selections. */
property color selectedTextColor: __syspal.highlightedText
/*! The background color. */
property color backgroundColor: control.backgroundVisible ? __syspal.base : "transparent"
/*!
\qmlproperty enumeration renderType
Override the default rendering type for the control.
Supported render types are:
\list
\li Text.QtRendering
\li Text.NativeRendering - the default
\endlist
\sa Text::renderType
*/
property int renderType: Text.NativeRendering
}
|