1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 02:32:29 +01:00

Add interactive Wallpaper example (windows only)

This commit is contained in:
Elias Steurer 2023-06-29 20:31:59 +02:00
parent 82b38820f2
commit 961f648e33
6 changed files with 34 additions and 2 deletions

View File

View File

@ -0,0 +1,16 @@
// SPDX-License-Identifier: BSD-3-Clause
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Material
Rectangle {
id: root
color: "#333333"
anchors.fill: parent
Button {
anchors.centerIn: parent
text: "Click me!"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

View File

@ -0,0 +1,11 @@
{
"description": "interactive",
"file": "main.qml",
"preview": "preview.png",
"tags": [
"interactive"
],
"title": "QML interactive",
"type": "qmlWallpaper",
"visibility": "public"
}

View File

@ -47,6 +47,7 @@ int main(int argc, char* argv[])
QString exampleContentPath = QString(SCREENPLAY_SOURCE_DIR) + "/Content";
QStringList contentFolder = {
"/wallpaper_video_nebula",
"/wallpaper_interactive",
"/wallpaper_landscape",
"/wallpaper_particles"
};

View File

@ -1,10 +1,14 @@
## Tools
This folder contains serveral python tools to help with development. Depending on your os you have to change the python command to ```python```, ```python3``` or ```python3.9```
This folder contains serveral python tools to help with development. Depending on your os you have to change the python command to ```python```, ```python3``. Download python dependencies first:
``` bash
cd Tools
python -m pip install -r requirements.txt
```
#### setup.py
- Installs third party c++ dependencies for all platforms
- ```python3 setup.py -u=xxx -p=xxx```
- ```python3 setup.py```
#### build.py
- Build ScreenPlay locally
- ```python3 build.py -t=release```