summaryrefslogtreecommitdiff
path: root/Course
diff options
context:
space:
mode:
authoranatasof wirapraja <anatasof.wirapraja@gmail.com>2023-04-04 13:14:01 +0700
committeranatasof wirapraja <anatasof.wirapraja@gmail.com>2023-04-04 13:14:01 +0700
commit81601bfcfbb01e8c9c855bcb44f2866afd9e3f86 (patch)
treeffe39a2bf95623289cd150973237a17fa603efa1 /Course
parent97d27220f2f68dfae281af1a2753e69c667bef27 (diff)
rework on Layout margins inside filterBarControl
Diffstat (limited to 'Course')
-rw-r--r--Course/Grid/Minimal/FilterBar.ui.qml41
1 files changed, 32 insertions, 9 deletions
diff --git a/Course/Grid/Minimal/FilterBar.ui.qml b/Course/Grid/Minimal/FilterBar.ui.qml
index 6b67a54..71f4df8 100644
--- a/Course/Grid/Minimal/FilterBar.ui.qml
+++ b/Course/Grid/Minimal/FilterBar.ui.qml
@@ -6,7 +6,6 @@ Rectangle {
id: bgLightBorder
color: "#f5f7f9"
height: filterBarControl.height
- width: filterBarControl.width
Layout.maximumHeight: filterBarControl.height
radius: 8
border.color: "#33000000"
@@ -17,19 +16,19 @@ Rectangle {
right: parent.right
}
columns: parent.width < 1200 ? 1 : 6
- rowSpacing: 16
- columnSpacing: 16
+ rowSpacing: 0
+ columnSpacing: 0
flow: GridLayout.LeftToRight
- Layout.fillWidth: true
TextField {
id: keywordInput
- Layout.fillWidth: true
font.family: "Roboto"
font.pointSize: 16
- Layout.bottomMargin: 24
- Layout.topMargin: 24
- Layout.leftMargin: 24
+ Layout.bottomMargin: 16
+ Layout.topMargin: 16
+ Layout.leftMargin: 16
+ Layout.rightMargin: 8
placeholderText: "Enter keyword"
+ Layout.fillWidth: true
}
ComboBox {
@@ -37,32 +36,56 @@ Rectangle {
font.pointSize: 16
font.family: "Roboto"
displayText: "Categories"
+ Layout.fillWidth: true
+ Layout.bottomMargin: 16
+ Layout.topMargin: 16
+ Layout.leftMargin: 8
+ Layout.rightMargin: 8
}
ComboBox {
id: priceLevel
font.pointSize: 16
font.family: "Roboto"
displayText: "Price level"
+ Layout.fillWidth: true
+ Layout.bottomMargin: 16
+ Layout.topMargin: 16
+ Layout.leftMargin: 8
+ Layout.rightMargin: 8
}
ComboBox {
id: skillLevel
font.pointSize: 16
font.family: "Roboto"
displayText: "Skill level"
+ Layout.fillWidth: true
+ Layout.bottomMargin: 16
+ Layout.topMargin: 16
+ Layout.leftMargin: 8
+ Layout.rightMargin: 8
}
ComboBox {
id: language
font.pointSize: 16
font.family: "Roboto"
displayText: "Languange"
+ Layout.fillWidth: true
+ Layout.bottomMargin: 16
+ Layout.topMargin: 16
+ Layout.leftMargin: 8
+ Layout.rightMargin: 8
}
Button {
id: searchButton
icon.color: "#ffffff"
icon.source: "../../../Font-Awesome/svgs/solid/magnifying-glass.svg"
- Layout.rightMargin: 24
display: AbstractButton.IconOnly
+ Layout.fillWidth: true
+ Layout.bottomMargin: 16
+ Layout.topMargin: 16
+ Layout.leftMargin: 8
+ Layout.rightMargin: 16
}
}
}