mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:19:05 +02:00
PR feedback
This commit is contained in:
parent
b9ee0c087e
commit
ba61491ee6
2 changed files with 40 additions and 18 deletions
|
@ -4,11 +4,13 @@ import QtWebEngine 1.1;
|
||||||
|
|
||||||
import "../desktop"
|
import "../desktop"
|
||||||
import ".."
|
import ".."
|
||||||
|
import "."
|
||||||
|
|
||||||
Desktop {
|
Desktop {
|
||||||
id: desktop
|
id: desktop
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
id: hoverWatch
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
propagateComposedEvents: true
|
propagateComposedEvents: true
|
||||||
|
@ -47,28 +49,12 @@ Desktop {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
|
||||||
id: hudToggleButton
|
ToggleHudButton {
|
||||||
clip: true
|
|
||||||
width: 50
|
|
||||||
height: 50
|
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.bottomMargin: 32
|
anchors.bottomMargin: 32
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
36
interface/resources/qml/hifi/ToggleHudButton.qml
Normal file
36
interface/resources/qml/hifi/ToggleHudButton.qml
Normal 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))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue