forked from asztalosdani/substance-painter-to-deadline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
toolbar.qml
50 lines (45 loc) · 743 Bytes
/
toolbar.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
44
45
46
47
48
49
50
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Window 2.2
import QtQuick.Layouts 1.2
import AlgWidgets 1.0
import AlgWidgets.Style 1.0
Row
{
property var windowReference : null
Button
{
id: rect
antialiasing: true
width: 30
height: 30
hoverEnabled: true
Rectangle
{
anchors.fill: parent
color: rect.hovered ? "#424242" : "#141414"
Image
{
anchors.fill: parent
anchors.margins: 3
source: "icon.svg"
fillMode: Image.PreserveAspectFit
sourceSize.width: width
sourceSize.height: height
mipmap: true
}
}
onClicked:
{
try
{
windowReference.visible = true
windowReference.raise()
}
catch(err)
{
alg.log.exception(err)
}
}
}
}