blob: 7bbc9f0d1d7be82498cb7f886a36c9b78e3d39b4 (
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
|
import QtQuick
import QtQuick.Layouts
import qs.components
import qs.config
ColumnLayout {
property bool fromParent: true
property alias titleBar: titleBar
anchors.fill: fromParent ? parent : undefined
spacing: 0
IRect {
id: titleBar
Layout.fillWidth: true
Layout.fillHeight: false
visible: Launcher.showWidgetTitle && valid
height: childrenRect.height
width: parent.width
topLeftRadius: Launcher.widgetRadius
topRightRadius: Launcher.widgetRadius
color: Qt.rgba(Colors.background3.r, Colors.background3.g, Colors.background3.b, Launcher.widgetTitleBgTransparency)
IText {
anchors {
top: parent.top
left: parent.left
leftMargin: Launcher.innerMargin
}
visible: valid
font.pixelSize: Launcher.widgetFontSize
text: name
}
}
}
|