mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:36:45 +02:00
cleanup
This commit is contained in:
parent
8acb30da8e
commit
3b25b36db3
1 changed files with 32 additions and 38 deletions
|
@ -34,12 +34,10 @@ ScrollingWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
function showPermissionsBar(){
|
function showPermissionsBar(){
|
||||||
console.log('should show permissions bar')
|
|
||||||
permissionsContainer.visible=true;
|
permissionsContainer.visible=true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function hidePermissionsBar(){
|
function hidePermissionsBar(){
|
||||||
console.log('should hide permissions bar')
|
|
||||||
permissionsContainer.visible=false;
|
permissionsContainer.visible=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,39 +139,39 @@ ScrollingWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id:permissionsContainer
|
id:permissionsContainer
|
||||||
visible:false
|
visible:false
|
||||||
color: "#000000"
|
color: "#000000"
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.top: buttons.bottom
|
anchors.top: buttons.bottom
|
||||||
height:40
|
height:40
|
||||||
z:100
|
z:100
|
||||||
gradient: Gradient {
|
gradient: Gradient {
|
||||||
GradientStop { position: 0.0; color: "black" }
|
GradientStop { position: 0.0; color: "black" }
|
||||||
GradientStop { position: 1.0; color: "grey" }
|
GradientStop { position: 1.0; color: "grey" }
|
||||||
}
|
|
||||||
|
|
||||||
RalewayLight {
|
|
||||||
id: permissionsInfo
|
|
||||||
anchors.right:permissionsRow.left
|
|
||||||
anchors.rightMargin: 32
|
|
||||||
anchors.topMargin:8
|
|
||||||
anchors.top:parent.top
|
|
||||||
text: "This site wants to use your microphone/camera"
|
|
||||||
size: 18
|
|
||||||
color: hifi.colors.white
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
|
||||||
id: permissionsRow
|
|
||||||
spacing: 4
|
|
||||||
anchors.top:parent.top
|
|
||||||
anchors.topMargin: 8
|
|
||||||
anchors.right: parent.right
|
|
||||||
visible: true
|
|
||||||
z:101
|
|
||||||
|
|
||||||
|
RalewayLight {
|
||||||
|
id: permissionsInfo
|
||||||
|
anchors.right:permissionsRow.left
|
||||||
|
anchors.rightMargin: 32
|
||||||
|
anchors.topMargin:8
|
||||||
|
anchors.top:parent.top
|
||||||
|
text: "This site wants to use your microphone/camera"
|
||||||
|
size: 18
|
||||||
|
color: hifi.colors.white
|
||||||
|
}
|
||||||
|
|
||||||
|
Row {
|
||||||
|
id: permissionsRow
|
||||||
|
spacing: 4
|
||||||
|
anchors.top:parent.top
|
||||||
|
anchors.topMargin: 8
|
||||||
|
anchors.right: parent.right
|
||||||
|
visible: true
|
||||||
|
z:101
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
id:allow
|
id:allow
|
||||||
text: "Allow"
|
text: "Allow"
|
||||||
|
@ -196,10 +194,7 @@ ScrollingWindow {
|
||||||
z:101
|
z:101
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
WebEngineView {
|
WebEngineView {
|
||||||
id: webview
|
id: webview
|
||||||
|
@ -228,7 +223,6 @@ ScrollingWindow {
|
||||||
request.openIn(newWindow.webView)
|
request.openIn(newWindow.webView)
|
||||||
}
|
}
|
||||||
//profile: desktop.browserProfile
|
//profile: desktop.browserProfile
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // item
|
} // item
|
||||||
|
|
Loading…
Reference in a new issue