summaryrefslogtreecommitdiff
path: root/Course/Grid/Minimal/FilterBar.ui.qml
blob: b4c268d11a423bf7fc5cc22117c609bd982c97a7 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

Rectangle {
	id: bgLightBorder
	color: "#f5f7f9"
	height: filterBarControl.height
	Layout.maximumHeight: filterBarControl.height
	radius: 8
	border.color: "#33000000"
	GridLayout {
		id: filterBarControl
		anchors {
			left: parent.left
			right: parent.right
		}
		columns: parent.width < 720 ? 1 : 6
		rowSpacing: 0
		columnSpacing: 0
		flow: GridLayout.LeftToRight
		TextField {
			id: keywordInput
			font.family: "Roboto"
			font.pointSize: 16
			Layout.bottomMargin: bgLightBorder.width < 720 ? 8:16
			Layout.topMargin: 16
			Layout.leftMargin: 16
			Layout.rightMargin: bgLightBorder.width < 720 ? 16:8
			placeholderText: "Enter keyword"
			Layout.fillWidth: true
		}

		ComboBox {
			id: categories
			font.pointSize: 16
			font.family: "Roboto"
			displayText: "Categories"
			Layout.fillWidth: true
			Layout.bottomMargin: bgLightBorder.width < 720 ? 8:16
			Layout.topMargin: bgLightBorder.width < 720 ? 8:16
			Layout.leftMargin: bgLightBorder.width < 720 ? 16:8
			Layout.rightMargin: bgLightBorder.width < 720 ? 16:8
		}
		ComboBox {
			id: priceLevel
			font.pointSize: 16
			font.family: "Roboto"
			displayText: "Price level"
			Layout.fillWidth: true
			Layout.bottomMargin: bgLightBorder.width < 720 ? 8:16
			Layout.topMargin: bgLightBorder.width < 720 ? 8:16
			Layout.leftMargin: bgLightBorder.width < 720 ? 16:8
			Layout.rightMargin: bgLightBorder.width < 720 ? 16:8
		}
		ComboBox {
			id: skillLevel
			font.pointSize: 16
			font.family: "Roboto"
			displayText: "Skill level"
			Layout.fillWidth: true
			Layout.bottomMargin: bgLightBorder.width < 720 ? 8:16
			Layout.topMargin: bgLightBorder.width < 720 ? 8:16
			Layout.leftMargin: bgLightBorder.width < 720 ? 16:8
			Layout.rightMargin: bgLightBorder.width < 720 ? 16:8
		}
		ComboBox {
			id: language
			font.pointSize: 16
			font.family: "Roboto"
			displayText: "Languange"
			Layout.fillWidth: true
			Layout.bottomMargin: bgLightBorder.width < 720 ? 8:16
			Layout.topMargin: bgLightBorder.width < 720 ? 8:16
			Layout.leftMargin: bgLightBorder.width < 720 ? 16:8
			Layout.rightMargin: bgLightBorder.width < 720 ? 16:8
		}

		Button {
			id: searchButton
			icon.color: "#ffffff"
			icon.source: "../../../Font-Awesome/svgs/solid/magnifying-glass.svg"
			display: AbstractButton.IconOnly
			Layout.fillWidth: true
			Layout.bottomMargin: 16
			Layout.topMargin: bgLightBorder.width < 720 ? 8:16
			Layout.leftMargin: bgLightBorder.width < 720 ? 16:8
			Layout.rightMargin: 16
		}
	}
}