added images for buttons

This commit is contained in:
Alexandre Van de Sande 2015-03-05 16:37:29 -03:00
parent df4dc6026b
commit a4663a3f5b
13 changed files with 64 additions and 39 deletions

View file

@ -14,7 +14,7 @@ ApplicationWindow {
id: root
flags: Qt.FramelessWindowHint | Qt.Window
//flags: Qt.Window | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowSystemMenuHint
//flags: Qt.Window | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint | Qt.WindowMinimizeButtonHint
// Use this to make the window frameless. But then you'll need to do move and resize by hand
color: "transparent"
@ -794,9 +794,6 @@ ApplicationWindow {
anchors.left: parent.left
anchors.right: parent.right
spacing: 3
/************************/
/* Semafor Buttons */
@ -810,49 +807,77 @@ ApplicationWindow {
right: parent.right
leftMargin: 8
bottomMargin: 8
topMargin: 0
}
height: 37
spacing: 6
Rectangle {
color: 'red'
width: 11
height: 11
radius: 7
MouseArea {
anchors.fill: parent
onClicked: {
console.log("stop");
//gui.stop();
color: "transparent"
anchors.fill: parent
}
Rectangle {
color: 'transparent'
width: 13
height: 20
Image {
height: 13
width: 13
source: toolbarCloseButton.containsMouse ? "../window-control/window-close.png" : "../window-control/window-close-hover.png"
anchors.centerIn: parent
MouseArea {
id: toolbarCloseButton
anchors.fill: parent
hoverEnabled: true
onClicked: Qt.quit() //gui.stop();
}
}
}
}
Rectangle {
color: 'transparent'
width: 13
height: 20
Image {
height: 13
width: 13
source: toolbarminimizeButton.containsMouse ? "../window-control/window-minimize.png" : "../window-control/window-minimize-hover.png"
anchors.centerIn: parent
MouseArea {
id: toolbarminimizeButton
anchors.fill: parent
hoverEnabled: true
onClicked: Qt.quit() //gui.stop();
}
}
}
Rectangle {
color: 'transparent'
width: 13
height: 20
Image {
height: 13
width: 13
source: toolbarzoomButton.containsMouse ? "../window-control/window-zoom.png" : "../window-control/window-zoom-hover.png"
anchors.centerIn: parent
MouseArea {
id: toolbarzoomButton
anchors.fill: parent
hoverEnabled: true
onClicked: Qt.quit() //gui.stop();
}
}
}
Rectangle {
color: 'yellow'
width: 11
height: 11
radius: 7
MouseArea {
anchors.fill: parent
onClicked: {
console.log("minimize window");
}
}
}
Rectangle {
color: 'green'
width: 11
height: 11
radius: 7
MouseArea {
anchors.fill: parent
onClicked: {
console.log("maximize window");
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 877 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 B