summaryrefslogtreecommitdiff
path: root/ProductForm.ui.qml
blob: f2911242b0fd75a7d9e7eb00995e6a6f6606af99 (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
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtGraphicalEffects 1.15

Rectangle {
	property alias previewImage: image
	property alias nameLabel: nameLabel
	property alias priceLabel: priceLabel

	id: rectangle
	width: 328
	height: 132
	color: "#2a2a2a"
	layer.enabled: true
	layer.effect: OpacityMask {
		maskSource: Rectangle {
			anchors.centerIn: parent
			width: rectangle.width
			height: rectangle.height
			radius: 8
		}
	}

	RowLayout {
		Image {
			id: image
			width: 64
			height: 64
			layer.enabled: true
			layer.effect: OpacityMask {
				maskSource: Rectangle {
					anchors.centerIn: parent
					width: image.width
					height: image.height
					radius: 8
				}
			}
		}

		ColumnLayout {
			Label {
				id: nameLabel
				text: "Nama produk"
				color: "#cccccc"
			}
			Label {
				id: quantityLabel
				text: "12 unit"
				color: "#888888"
			}
			Label {
				id: priceLabel
				text: "Rp999.999.999"
				color: "#cccccc"
			}
		}
	}
}