added images for buttons
|
|
@ -14,7 +14,7 @@ ApplicationWindow {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
flags: Qt.FramelessWindowHint | Qt.Window
|
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
|
// Use this to make the window frameless. But then you'll need to do move and resize by hand
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
|
|
@ -794,9 +794,6 @@ ApplicationWindow {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
spacing: 3
|
spacing: 3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/************************/
|
/************************/
|
||||||
/* Semafor Buttons */
|
/* Semafor Buttons */
|
||||||
|
|
@ -810,49 +807,77 @@ ApplicationWindow {
|
||||||
right: parent.right
|
right: parent.right
|
||||||
leftMargin: 8
|
leftMargin: 8
|
||||||
bottomMargin: 8
|
bottomMargin: 8
|
||||||
|
topMargin: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
height: 37
|
height: 37
|
||||||
spacing: 6
|
spacing: 6
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: 'red'
|
color: "transparent"
|
||||||
width: 11
|
anchors.fill: parent
|
||||||
height: 11
|
}
|
||||||
radius: 7
|
|
||||||
MouseArea {
|
Rectangle {
|
||||||
anchors.fill: parent
|
color: 'transparent'
|
||||||
onClicked: {
|
width: 13
|
||||||
console.log("stop");
|
height: 20
|
||||||
//gui.stop();
|
|
||||||
|
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");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
BIN
cmd/mist/assets/window-control/window-close-hover.png
Normal file
|
After Width: | Height: | Size: 434 B |
BIN
cmd/mist/assets/window-control/window-close-hover@2x.png
Normal file
|
After Width: | Height: | Size: 877 B |
BIN
cmd/mist/assets/window-control/window-close.png
Normal file
|
After Width: | Height: | Size: 448 B |
BIN
cmd/mist/assets/window-control/window-close@2x.png
Normal file
|
After Width: | Height: | Size: 894 B |
BIN
cmd/mist/assets/window-control/window-minimize-hover.png
Normal file
|
After Width: | Height: | Size: 368 B |
BIN
cmd/mist/assets/window-control/window-minimize-hover@2x.png
Normal file
|
After Width: | Height: | Size: 699 B |
BIN
cmd/mist/assets/window-control/window-minimize.png
Normal file
|
After Width: | Height: | Size: 378 B |
BIN
cmd/mist/assets/window-control/window-minimize@2x.png
Normal file
|
After Width: | Height: | Size: 706 B |
BIN
cmd/mist/assets/window-control/window-zoom-hover.png
Normal file
|
After Width: | Height: | Size: 357 B |
BIN
cmd/mist/assets/window-control/window-zoom-hover@2x.png
Normal file
|
After Width: | Height: | Size: 712 B |
BIN
cmd/mist/assets/window-control/window-zoom.png
Normal file
|
After Width: | Height: | Size: 368 B |
BIN
cmd/mist/assets/window-control/window-zoom@2x.png
Normal file
|
After Width: | Height: | Size: 720 B |