-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCLeftBar.qml
43 lines (35 loc) · 815 Bytes
/
CLeftBar.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
38
39
40
41
42
43
import QtQuick 2.15
import QtQuick.Controls 2.15
Rectangle /*LeftBar: Constitutes the left bar of the main window.*/
{
id:leftBarId
color: varBlack
opacity:.8
Rectangle {
id:borderId
width:2
anchors {
top:parent.top
right:parent.right
bottom: parent.bottom
}
color: constColors[4]
}
CBtn /*The settings button*/
{
id:settingsBtnId
x: AppStyle.varLeftBarWidth/2 - width/2
y: parent.height-x-height
setIcon: "qrc:/images/settinglite.png"
z:5
backgroundColor: "transparent"
onBtnClicked :{
if(!AppStyle.varLeftBarActive) return
}
}
Behavior on width {
NumberAnimation {
duration: 200
}
}
}