-
Notifications
You must be signed in to change notification settings - Fork 2
/
MyToolBar.qml
37 lines (36 loc) · 942 Bytes
/
MyToolBar.qml
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
import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3
Rectangle {
width: parent.width
height: 50
color: "#FAFAFA"
property alias button: __toolbtn
property alias text: __text
RowLayout {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 5
spacing: -1
ToolButton {
id: __toolbtn
text: "\uf0c9" // hamburger icon
font.pixelSize: 20
font.family: "fontello"
contentItem: Text{
text: __toolbtn.text
font: __toolbtn.font
color: "#616161"
leftPadding: 8
topPadding: 8
}
}
Label {
// Layout.leftMargin: -10
id: __text
text: "5Toman"
color: "#212121"
font.bold: Font.Bold
}
}
}