diff --git a/gui/SearchBar.qml b/gui/SearchBar.qml
index 0c0bbd6..63ae171 100644
--- a/gui/SearchBar.qml
+++ b/gui/SearchBar.qml
@@ -1,5 +1,42 @@
import QtQuick
+import QtQuick.Controls
+
+
+Item
+{
+
+ TextField
+ {
+ id: searchBar
+ placeholderText: qsTr("Suche")
+ leftPadding: 3
+ rightPadding: 3
+ width: 300
+
+
+
+
+
+
+ Button
+ {
+ icon.source: "../images/search.svg"
+ icon.color: "olive"
+ anchors.right: parent.right
+ height: parent.height
+ flat: true
+
+ }
+ }
+ Button
+ {
+ icon.source: "../images/filter.svg"
+ icon.color: "olive"
+ anchors.left: searchBar.right
+ height: searchBar.height
+ flat: true
+
+ }
-Item {
}
diff --git a/gui/Tables.qml b/gui/Tables.qml
index 54d7e07..134223b 100644
--- a/gui/Tables.qml
+++ b/gui/Tables.qml
@@ -1,6 +1,11 @@
import QtQuick
-Item {
- text: "tables"
+Item
+{
+ SearchBar
+ {
+ id:searchBar
+ anchors.margins: 9
+ }
}
diff --git a/gui/TopBar.qml b/gui/TopBar.qml
index c954919..8fa12c4 100644
--- a/gui/TopBar.qml
+++ b/gui/TopBar.qml
@@ -16,10 +16,13 @@ import QtQuick.Layouts
+
anchors
{
top: parent.top
left: parent.left
+
+
}
Button
@@ -29,6 +32,7 @@ import QtQuick.Layouts
text: qsTr("Dashboard")
implicitWidth: dashBoard.implicitContentWidth + 10
+
}
Button
@@ -79,6 +83,8 @@ import QtQuick.Layouts
icon.source: "../images/menu.svg"
icon.color: "red"
flat: true
+ Layout.rightMargin: 9
+
}
diff --git a/gui/main.qml b/gui/main.qml
index a2fb219..5a7ea92 100644
--- a/gui/main.qml
+++ b/gui/main.qml
@@ -14,7 +14,14 @@ ApplicationWindow
title: "PYQCRM"
TopBar
{
+
id:topBar
+ anchors
+ {
+ rightMargin: 9
+ leftMargin: 9
+
+ }
visible: bad_config? false: true
}
@@ -31,6 +38,11 @@ ApplicationWindow
right: parent.right
top: topBar.bottom
bottom: parent.bottom
+ topMargin: 0
+ rightMargin: 9
+ leftMargin: 9
+
+
}
source: bad_config? "firststart.qml": "Dashboard.qml"
property alias window: appWindow
diff --git a/images/filter.svg b/images/filter.svg
new file mode 100644
index 0000000..104caab
--- /dev/null
+++ b/images/filter.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/search.svg b/images/search.svg
new file mode 100644
index 0000000..7203ab1
--- /dev/null
+++ b/images/search.svg
@@ -0,0 +1 @@
+
\ No newline at end of file