-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyTopPanel.qml
34 lines (30 loc) · 882 Bytes
/
MyTopPanel.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
import QtQuick
import QtQuick.Controls 2.15
import QtQuick 2.15
import QtQuick.Window 2.15
Item {
id: topPanel
property color colorPanel: "white"
property string imageSource: "../img/iconApp.png"
property string caption: "Lab Calculator"
property int pageCaptionTextHeight: 24
Rectangle {
id: backGroundPanel
anchors.fill: parent
color: topPanel.colorPanel
Image {
id: imageIcon
anchors.verticalCenter: parent.verticalCenter
width: parent.height
height: parent.height
source: topPanel.imageSource
}
Text {
id: appName
anchors.verticalCenter: imageIcon.verticalCenter
anchors.left: imageIcon.right
text: topPanel.caption
font.pointSize: topPanel.pageCaptionTextHeight
}
}
}