-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLenshelpTemplate.qml
More file actions
48 lines (33 loc) · 1.16 KB
/
LenshelpTemplate.qml
File metadata and controls
48 lines (33 loc) · 1.16 KB
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
import QtQuick
import QtQuick.Layouts
TibiaRadiusedSemiTranspartentRectangle {
id: root
z: 9999
property QtObject controller: null
visible: controller != null && controller.lenshelpVisible
width: 440
height: contentLayout.height + 2 * TibiaStyle.lenshelpContentMargin
ColumnLayout {
id: contentLayout
anchors {left: parent.left; top: parent.top; right: parent.right}
anchors.margins: TibiaStyle.lenshelpContentMargin
spacing: TibiaStyle.marginRelated
TibiaText {
Layout.fillWidth: true
style: Text.Outline
styleColor: TibiaStyle.lenshelpCaptionOutlineColor
styleType: "LenshelpCaption"
text: controller != null ? controller.caption : "Caption"
} //TibiaText
TibiaText {
Layout.fillWidth: true
style: Text.Outline
styleColor: TibiaStyle.lenshelpCaptionOutlineColor
wrapMode: Text.Wrap
textFormat: Text.RichText //Text.StyledText this fixes the align middle for images
styleType: "LenshelpContent"
text: controller != null ? controller.content : "Content"
lineHeight: 1.1
} //TibiaText
} //ColumnLayout
} //TibiaRadiusedSemiTranspartentRectangle