mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 04:28:59 +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
|
||||
url: "https://vircadia.com/"
|
||||
profile: FileTypeProfile;
|
||||
|
||||
// backgroundColor: "transparent"
|
||||
|
||||
property var parentRoot: null
|
||||
|
||||
// Create a global EventBridge object for raiseAndLowerKeyboard.
|
||||
|
|
|
@ -10,6 +10,7 @@ Controls.WebView {
|
|||
anchors.fill: parent
|
||||
focus: true
|
||||
profile: HFWebEngineProfile;
|
||||
// backgroundColor: "transparent"
|
||||
|
||||
property string userScriptUrl: ""
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
//
|
||||
// Created by David Rowe on 16 Dec 2016.
|
||||
// Copyright 2016 High Fidelity, Inc.
|
||||
// Copyright 2020 Vircadia contributors.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// 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.url = url
|
||||
root.item.scriptUrl = scriptUrl
|
||||
root.item.transparentBackground = true
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -98,6 +98,7 @@ Item {
|
|||
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
backgroundColor: "transparent"
|
||||
|
||||
profile: HFWebEngineProfile;
|
||||
settings.pluginsEnabled: true
|
||||
|
|
|
@ -42,6 +42,7 @@ Item {
|
|||
id: webroot
|
||||
width: parent.width
|
||||
height: keyboardEnabled && keyboardRaised ? parent.height - keyboard.height : parent.height
|
||||
// backgroundColor: "transparent"
|
||||
|
||||
onLoadingChangedCallback: {
|
||||
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