summaryrefslogtreecommitdiff
path: root/popups/launcher/components/IInnerComponent.qml
blob: 9f955929340be47305b68c7d2c9f876d42be6789 (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
		}
	}
}