mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-25 12:13:00 +01:00
Add interactive Wallpaper example (windows only)
This commit is contained in:
parent
82b38820f2
commit
961f648e33
0
Content/wallpaper_interactive/Readme.md
Normal file
0
Content/wallpaper_interactive/Readme.md
Normal file
16
Content/wallpaper_interactive/main.qml
Normal file
16
Content/wallpaper_interactive/main.qml
Normal 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!"
|
||||
}
|
||||
}
|
BIN
Content/wallpaper_interactive/preview.png
Normal file
BIN
Content/wallpaper_interactive/preview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 318 KiB |
11
Content/wallpaper_interactive/project.json
Normal file
11
Content/wallpaper_interactive/project.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "interactive",
|
||||
"file": "main.qml",
|
||||
"preview": "preview.png",
|
||||
"tags": [
|
||||
"interactive"
|
||||
],
|
||||
"title": "QML interactive",
|
||||
"type": "qmlWallpaper",
|
||||
"visibility": "public"
|
||||
}
|
@ -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"
|
||||
};
|
||||
|
@ -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```
|
||||
|
Loading…
Reference in New Issue
Block a user