diff --git a/Content/wallpaper_interactive/Readme.md b/Content/wallpaper_interactive/Readme.md new file mode 100644 index 00000000..e69de29b diff --git a/Content/wallpaper_interactive/main.qml b/Content/wallpaper_interactive/main.qml new file mode 100644 index 00000000..d38c8277 --- /dev/null +++ b/Content/wallpaper_interactive/main.qml @@ -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!" + } +} diff --git a/Content/wallpaper_interactive/preview.png b/Content/wallpaper_interactive/preview.png new file mode 100644 index 00000000..43d2f32a Binary files /dev/null and b/Content/wallpaper_interactive/preview.png differ diff --git a/Content/wallpaper_interactive/project.json b/Content/wallpaper_interactive/project.json new file mode 100644 index 00000000..fe9bce25 --- /dev/null +++ b/Content/wallpaper_interactive/project.json @@ -0,0 +1,11 @@ +{ + "description": "interactive", + "file": "main.qml", + "preview": "preview.png", + "tags": [ + "interactive" + ], + "title": "QML interactive", + "type": "qmlWallpaper", + "visibility": "public" +} diff --git a/ScreenPlayWallpaper/main.cpp b/ScreenPlayWallpaper/main.cpp index d850af8a..fbb59c12 100644 --- a/ScreenPlayWallpaper/main.cpp +++ b/ScreenPlayWallpaper/main.cpp @@ -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" }; diff --git a/Tools/Readme.md b/Tools/Readme.md index 00038458..b22e32ff 100644 --- a/Tools/Readme.md +++ b/Tools/Readme.md @@ -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```