Just to prove it works... needs to be done better.

This commit is contained in:
Kasen IO 2020-08-07 15:08:00 -04:00
parent e74cbee6cb
commit 1601ea9231
6 changed files with 22 additions and 1 deletions

View file

@ -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.

View file

@ -10,6 +10,7 @@ Controls.WebView {
anchors.fill: parent
focus: true
profile: HFWebEngineProfile;
// backgroundColor: "transparent"
property string userScriptUrl: ""

View file

@ -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
})
}

View file

@ -98,6 +98,7 @@ Item {
width: parent.width
height: parent.height
backgroundColor: "transparent"
profile: HFWebEngineProfile;
settings.pluginsEnabled: true

View file

@ -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
View 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>