PR feedback

This commit is contained in:
Brad Davis 2016-06-07 15:33:00 -07:00
parent b9ee0c087e
commit ba61491ee6
2 changed files with 40 additions and 18 deletions

View file

@ -4,11 +4,13 @@ import QtWebEngine 1.1;
import "../desktop"
import ".."
import "."
Desktop {
id: desktop
MouseArea {
id: hoverWatch
anchors.fill: parent
hoverEnabled: true
propagateComposedEvents: true
@ -47,28 +49,12 @@ Desktop {
}
}
Item {
id: hudToggleButton
clip: true
width: 50
height: 50
ToggleHudButton {
anchors.bottom: parent.bottom
anchors.bottomMargin: 32
anchors.horizontalCenter: parent.horizontalCenter
property bool pinned: true
Image {
y: desktop.pinned ? -50 : 0
id: hudToggleImage
source: "../../icons/hud-01.svg"
}
MouseArea {
anchors.fill: parent
onClicked: desktop.togglePinned()
}
}
}

View file

@ -0,0 +1,36 @@
import QtQuick 2.5
import QtQuick.Controls 1.4
import "../windows"
Window {
//frame: HiddenFrame {}
hideBackground: true
resizable: false
destroyOnCloseButton: false
destroyOnHidden: false
closable: false
shown: true
pinned: true
width: 50
height: 50
clip: true
visible: true
Item {
width: 50
height: 50
Image {
y: desktop.pinned ? -50 : 0
id: hudToggleImage
source: "../../icons/hud-01.svg"
}
MouseArea {
readonly property string overlayMenuItem: "Overlays"
anchors.fill: parent
onClicked: MenuInterface.setIsOptionChecked(overlayMenuItem, !MenuInterface.isOptionChecked(overlayMenuItem))
}
}
}