mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 22:22:54 +02:00
Just to prove it works... needs to be done better.
This commit is contained in:
parent
e74cbee6cb
commit
1601ea9231
6 changed files with 22 additions and 1 deletions
|
@ -8,7 +8,8 @@ WebView {
|
||||||
id: webview
|
id: webview
|
||||||
url: "https://vircadia.com/"
|
url: "https://vircadia.com/"
|
||||||
profile: FileTypeProfile;
|
profile: FileTypeProfile;
|
||||||
|
// backgroundColor: "transparent"
|
||||||
|
|
||||||
property var parentRoot: null
|
property var parentRoot: null
|
||||||
|
|
||||||
// Create a global EventBridge object for raiseAndLowerKeyboard.
|
// Create a global EventBridge object for raiseAndLowerKeyboard.
|
||||||
|
|
|
@ -10,6 +10,7 @@ Controls.WebView {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
focus: true
|
focus: true
|
||||||
profile: HFWebEngineProfile;
|
profile: HFWebEngineProfile;
|
||||||
|
// backgroundColor: "transparent"
|
||||||
|
|
||||||
property string userScriptUrl: ""
|
property string userScriptUrl: ""
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
//
|
//
|
||||||
// Created by David Rowe on 16 Dec 2016.
|
// Created by David Rowe on 16 Dec 2016.
|
||||||
// Copyright 2016 High Fidelity, Inc.
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
// Copyright 2020 Vircadia contributors.
|
||||||
//
|
//
|
||||||
// Distributed under the Apache License, Version 2.0.
|
// Distributed under the Apache License, Version 2.0.
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
@ -43,6 +44,7 @@ Item {
|
||||||
root.item = newItem
|
root.item = newItem
|
||||||
root.item.url = url
|
root.item.url = url
|
||||||
root.item.scriptUrl = scriptUrl
|
root.item.scriptUrl = scriptUrl
|
||||||
|
root.item.transparentBackground = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -98,6 +98,7 @@ Item {
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
backgroundColor: "transparent"
|
||||||
|
|
||||||
profile: HFWebEngineProfile;
|
profile: HFWebEngineProfile;
|
||||||
settings.pluginsEnabled: true
|
settings.pluginsEnabled: true
|
||||||
|
|
|
@ -42,6 +42,7 @@ Item {
|
||||||
id: webroot
|
id: webroot
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: keyboardEnabled && keyboardRaised ? parent.height - keyboard.height : parent.height
|
height: keyboardEnabled && keyboardRaised ? parent.height - keyboard.height : parent.height
|
||||||
|
// backgroundColor: "transparent"
|
||||||
|
|
||||||
onLoadingChangedCallback: {
|
onLoadingChangedCallback: {
|
||||||
keyboardRaised = false;
|
keyboardRaised = false;
|
||||||
|
|
15
scripts/test.html
Normal file
15
scripts/test.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<h1 style="font-size: 64px; color: white;">This is a test. (: (that doesn't work for some reason)</h1>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in a new issue