From 0293edce118d5edb6927e7d26fbda875d426160d Mon Sep 17 00:00:00 2001
From: MohammadHossein Qanbari <mohammad.qanbari@qt.io>
Date: Mon, 22 Jan 2024 14:02:02 +0100
Subject: [PATCH] Lightning Viewer Example: Use QML Module and Restructure
 Project Files

The QML files are being used as QML module. Also all resource files are
moved to src/ sub-directory. The icons which used in qml resources are
moved to resources/qml/icons/ from resources/assets/icons/.

Task-number: QTBUG-121123
Pick-to: 6.7
Change-Id: I28381ccf65da52c6c7288a23a9540232c1a18d71
---
 .../{resources/qml => }/ActionsLayer.qml      |   3 +-
 examples/demos/lightningviewer/CMakeLists.txt |  97 +++++++++----
 .../{resources/qml => }/DistanceTimeLayer.qml |   1 +
 .../{resources/qml => }/LightningMapLayer.qml |   1 +
 .../{resources/qml => }/LightningView.qml     |  10 +-
 .../qml => }/LightningViewConfig.qml          |   0
 examples/demos/lightningviewer/Main.qml       |  22 +++
 .../{resources/qml => }/MapLayersDrawer.qml   |   2 +-
 .../{resources/qml => }/MapLayersItem.qml     |   3 +-
 .../{resources/qml => }/MapType.qml           |   0
 .../{resources/qml => }/MapView.qml           |   0
 .../{resources/qml => }/SwitchMap.qml         |   3 +-
 examples/demos/lightningviewer/controller.cpp |   8 +-
 examples/demos/lightningviewer/controller.h   |   9 +-
 .../{resources/assets => }/icons/distance.svg |   0
 .../{resources/assets => }/icons/globe.svg    |   0
 .../assets => }/icons/lightning-layer.svg     |   0
 .../assets => }/icons/lightning-strike.svg    |   0
 .../assets => }/icons/map-layers.svg          |   0
 .../{resources/assets => }/icons/map.svg      |   0
 .../{resources/assets => }/icons/recenter.svg |   0
 .../assets => }/icons/user-location.svg       |   0
 .../{data => }/laststrikeinfo.h               |   0
 .../{data => }/lightningitemdata.cpp          |   0
 .../{data => }/lightningitemdata.h            |   1 +
 .../{models => }/lightningitemmodel.cpp       |   2 +-
 .../{models => }/lightningitemmodel.h         |   2 +-
 .../{providers => }/lightningprovider.cpp     |   0
 .../{providers => }/lightningprovider.h       |   2 +-
 .../{resources => }/lv_style/Button.qml       |   0
 .../lightningviewer/lv_style/CMakeLists.txt   | 135 ++++++++++++++++++
 .../{resources => }/lv_style/Config.qml       |   0
 .../{resources => }/lv_style/RoundButton.qml  |   0
 .../{resources => }/lv_style/StyleImage.qml   |   0
 .../button-background-checked-disabled.png    | Bin
 .../button-background-checked-disabled@2x.png | Bin
 .../button-background-checked-hovered.png     | Bin
 .../button-background-checked-hovered@2x.png  | Bin
 .../button-background-checked-pressed.png     | Bin
 .../button-background-checked-pressed@2x.png  | Bin
 .../dark/images/button-background-checked.png | Bin
 .../images/button-background-checked@2x.png   | Bin
 .../images/button-background-disabled.png     | Bin
 .../images/button-background-disabled@2x.png  | Bin
 .../dark/images/button-background-hovered.png | Bin
 .../images/button-background-hovered@2x.png   | Bin
 .../dark/images/button-background-pressed.png | Bin
 .../images/button-background-pressed@2x.png   | Bin
 .../dark/images/button-background.png         | Bin
 .../dark/images/button-background@2x.png      | Bin
 ...flatbutton-background-checked-disabled.png | Bin
 ...tbutton-background-checked-disabled@2x.png | Bin
 .../flatbutton-background-checked-hovered.png | Bin
 ...atbutton-background-checked-hovered@2x.png | Bin
 .../flatbutton-background-checked-pressed.png | Bin
 ...atbutton-background-checked-pressed@2x.png | Bin
 .../images/flatbutton-background-checked.png  | Bin
 .../flatbutton-background-checked@2x.png      | Bin
 .../images/flatbutton-background-disabled.png | Bin
 .../flatbutton-background-disabled@2x.png     | Bin
 .../images/flatbutton-background-hovered.png  | Bin
 .../flatbutton-background-hovered@2x.png      | Bin
 .../images/flatbutton-background-pressed.png  | Bin
 .../flatbutton-background-pressed@2x.png      | Bin
 .../dark/images/flatbutton-background.png     | Bin
 .../dark/images/flatbutton-background@2x.png  | Bin
 ...oundbutton-background-checked-disabled.png | Bin
 ...dbutton-background-checked-disabled@2x.png | Bin
 ...roundbutton-background-checked-hovered.png | Bin
 ...ndbutton-background-checked-hovered@2x.png | Bin
 ...roundbutton-background-checked-pressed.png | Bin
 ...ndbutton-background-checked-pressed@2x.png | Bin
 .../images/roundbutton-background-checked.png | Bin
 .../roundbutton-background-checked@2x.png     | Bin
 .../roundbutton-background-disabled.png       | Bin
 .../roundbutton-background-disabled@2x.png    | Bin
 .../images/roundbutton-background-hovered.png | Bin
 .../roundbutton-background-hovered@2x.png     | Bin
 .../images/roundbutton-background-pressed.png | Bin
 .../roundbutton-background-pressed@2x.png     | Bin
 .../dark/images/roundbutton-background.png    | Bin
 .../dark/images/roundbutton-background@2x.png | Bin
 .../button-background-checked-disabled.png    | Bin
 .../button-background-checked-disabled@2x.png | Bin
 .../button-background-checked-hovered.png     | Bin
 .../button-background-checked-hovered@2x.png  | Bin
 .../button-background-checked-pressed.png     | Bin
 .../button-background-checked-pressed@2x.png  | Bin
 .../images/button-background-checked.png      | Bin
 .../images/button-background-checked@2x.png   | Bin
 .../images/button-background-disabled.png     | Bin
 .../images/button-background-disabled@2x.png  | Bin
 .../images/button-background-hovered.png      | Bin
 .../images/button-background-hovered@2x.png   | Bin
 .../images/button-background-pressed.png      | Bin
 .../images/button-background-pressed@2x.png   | Bin
 .../light/images/button-background.png        | Bin
 .../light/images/button-background@2x.png     | Bin
 ...flatbutton-background-checked-disabled.png | Bin
 ...tbutton-background-checked-disabled@2x.png | Bin
 .../flatbutton-background-checked-hovered.png | Bin
 ...atbutton-background-checked-hovered@2x.png | Bin
 .../flatbutton-background-checked-pressed.png | Bin
 ...atbutton-background-checked-pressed@2x.png | Bin
 .../images/flatbutton-background-checked.png  | Bin
 .../flatbutton-background-checked@2x.png      | Bin
 .../images/flatbutton-background-disabled.png | Bin
 .../flatbutton-background-disabled@2x.png     | Bin
 .../images/flatbutton-background-hovered.png  | Bin
 .../flatbutton-background-hovered@2x.png      | Bin
 .../images/flatbutton-background-pressed.png  | Bin
 .../flatbutton-background-pressed@2x.png      | Bin
 .../light/images/flatbutton-background.png    | Bin
 .../light/images/flatbutton-background@2x.png | Bin
 ...oundbutton-background-checked-disabled.png | Bin
 ...dbutton-background-checked-disabled@2x.png | Bin
 ...roundbutton-background-checked-hovered.png | Bin
 ...ndbutton-background-checked-hovered@2x.png | Bin
 ...roundbutton-background-checked-pressed.png | Bin
 ...ndbutton-background-checked-pressed@2x.png | Bin
 .../images/roundbutton-background-checked.png | Bin
 .../roundbutton-background-checked@2x.png     | Bin
 .../roundbutton-background-disabled.png       | Bin
 .../roundbutton-background-disabled@2x.png    | Bin
 .../images/roundbutton-background-hovered.png | Bin
 .../roundbutton-background-hovered@2x.png     | Bin
 .../images/roundbutton-background-pressed.png | Bin
 .../roundbutton-background-pressed@2x.png     | Bin
 .../light/images/roundbutton-background.png   | Bin
 .../images/roundbutton-background@2x.png      | Bin
 examples/demos/lightningviewer/main.cpp       |  19 +--
 .../resources/lv_style/lv_style.qrc           | 105 --------------
 .../lightningviewer/resources/lv_style/qmldir |   5 -
 .../lightningviewer/resources/qml/qmldir      |  10 --
 .../lightningviewer/resources/resources.qrc   |  23 ---
 135 files changed, 252 insertions(+), 211 deletions(-)
 rename examples/demos/lightningviewer/{resources/qml => }/ActionsLayer.qml (99%)
 rename examples/demos/lightningviewer/{resources/qml => }/DistanceTimeLayer.qml (99%)
 rename examples/demos/lightningviewer/{resources/qml => }/LightningMapLayer.qml (98%)
 rename examples/demos/lightningviewer/{resources/qml => }/LightningView.qml (79%)
 rename examples/demos/lightningviewer/{resources/qml => }/LightningViewConfig.qml (100%)
 create mode 100644 examples/demos/lightningviewer/Main.qml
 rename examples/demos/lightningviewer/{resources/qml => }/MapLayersDrawer.qml (99%)
 rename examples/demos/lightningviewer/{resources/qml => }/MapLayersItem.qml (99%)
 rename examples/demos/lightningviewer/{resources/qml => }/MapType.qml (100%)
 rename examples/demos/lightningviewer/{resources/qml => }/MapView.qml (100%)
 rename examples/demos/lightningviewer/{resources/qml => }/SwitchMap.qml (99%)
 rename examples/demos/lightningviewer/{resources/assets => }/icons/distance.svg (100%)
 rename examples/demos/lightningviewer/{resources/assets => }/icons/globe.svg (100%)
 rename examples/demos/lightningviewer/{resources/assets => }/icons/lightning-layer.svg (100%)
 rename examples/demos/lightningviewer/{resources/assets => }/icons/lightning-strike.svg (100%)
 rename examples/demos/lightningviewer/{resources/assets => }/icons/map-layers.svg (100%)
 rename examples/demos/lightningviewer/{resources/assets => }/icons/map.svg (100%)
 rename examples/demos/lightningviewer/{resources/assets => }/icons/recenter.svg (100%)
 rename examples/demos/lightningviewer/{resources/assets => }/icons/user-location.svg (100%)
 rename examples/demos/lightningviewer/{data => }/laststrikeinfo.h (100%)
 rename examples/demos/lightningviewer/{data => }/lightningitemdata.cpp (100%)
 rename examples/demos/lightningviewer/{data => }/lightningitemdata.h (97%)
 rename examples/demos/lightningviewer/{models => }/lightningitemmodel.cpp (98%)
 rename examples/demos/lightningviewer/{models => }/lightningitemmodel.h (96%)
 rename examples/demos/lightningviewer/{providers => }/lightningprovider.cpp (100%)
 rename examples/demos/lightningviewer/{providers => }/lightningprovider.h (95%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/Button.qml (100%)
 create mode 100644 examples/demos/lightningviewer/lv_style/CMakeLists.txt
 rename examples/demos/lightningviewer/{resources => }/lv_style/Config.qml (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/RoundButton.qml (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/StyleImage.qml (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-checked-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-checked-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-checked-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-checked-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-checked-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-checked-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-checked.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-checked@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/button-background@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-checked-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-checked-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-checked-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-checked-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-checked-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-checked-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-checked.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-checked@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/flatbutton-background@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-checked-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-checked-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-checked-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-checked-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-checked-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-checked-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-checked.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-checked@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/dark/images/roundbutton-background@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-checked-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-checked-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-checked-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-checked-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-checked-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-checked-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-checked.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-checked@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/button-background@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-checked-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-checked-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-checked-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-checked-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-checked-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-checked-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-checked.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-checked@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/flatbutton-background@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-checked-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-checked-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-checked-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-checked-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-checked-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-checked-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-checked.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-checked@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-disabled.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-disabled@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-hovered.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-hovered@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-pressed.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background-pressed@2x.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background.png (100%)
 rename examples/demos/lightningviewer/{resources => }/lv_style/light/images/roundbutton-background@2x.png (100%)
 delete mode 100644 examples/demos/lightningviewer/resources/lv_style/lv_style.qrc
 delete mode 100644 examples/demos/lightningviewer/resources/lv_style/qmldir
 delete mode 100644 examples/demos/lightningviewer/resources/qml/qmldir
 delete mode 100644 examples/demos/lightningviewer/resources/resources.qrc

diff --git a/examples/demos/lightningviewer/resources/qml/ActionsLayer.qml b/examples/demos/lightningviewer/ActionsLayer.qml
similarity index 99%
rename from examples/demos/lightningviewer/resources/qml/ActionsLayer.qml
rename to examples/demos/lightningviewer/ActionsLayer.qml
index db78faf5..2619055c 100644
--- a/examples/demos/lightningviewer/resources/qml/ActionsLayer.qml
+++ b/examples/demos/lightningviewer/ActionsLayer.qml
@@ -5,8 +5,7 @@ import QtQuick
 import QtLocation
 import QtQuick.Layouts
 import QtQuick.Controls
-
-import lv_style 1.0
+import lv_style
 
 Item {
     id: actionsLayer
diff --git a/examples/demos/lightningviewer/CMakeLists.txt b/examples/demos/lightningviewer/CMakeLists.txt
index c4db201a..7fb8ef1c 100644
--- a/examples/demos/lightningviewer/CMakeLists.txt
+++ b/examples/demos/lightningviewer/CMakeLists.txt
@@ -2,50 +2,87 @@
 # SPDX-License-Identifier: BSD-3-Clause
 
 cmake_minimum_required(VERSION 3.16)
+project(LightningViewer VERSION 1.0 LANGUAGES CXX)
 
-set(APP_NAME LightningViewerExample)
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+set(CMAKE_AUTOMOC ON)
 
-project(LightningViewerExample VERSION 0.1 LANGUAGES CXX)
+if(NOT DEFINED INSTALL_EXAMPLESDIR)
+    set(INSTALL_EXAMPLESDIR "examples")
+endif()
 
-set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/demos/lightningviewer")
 
-find_package(Qt6 6.5 REQUIRED COMPONENTS Quick WebSockets Positioning)
+find_package(Qt6 REQUIRED COMPONENTS Core Gui Quick QuickControls2 WebSockets Positioning)
 
 qt_standard_project_setup(REQUIRES 6.5)
 
-set(CMAKE_AUTORCC ON)
-qt_add_executable(${APP_NAME}
+add_subdirectory(lv_style)
+
+qt_add_executable(lightningviewerexample WIN32
     main.cpp
-    controller.h controller.cpp
-    data/laststrikeinfo.h
-    data/lightningitemdata.h data/lightningitemdata.cpp
-    models/lightningitemmodel.h models/lightningitemmodel.cpp
-    providers/lightningprovider.h providers/lightningprovider.cpp
-    resources/resources.qrc
-    resources/lv_style/lv_style.qrc
 )
 
-target_link_libraries(${APP_NAME} PRIVATE
+set_source_files_properties(LightningViewConfig.qml MapType.qml
+    PROPERTIES
+        QT_QML_SINGLETON_TYPE TRUE
+)
+
+qt_add_qml_module(lightningviewerexample
+   URI lightningviewer
+   QML_FILES
+       Main.qml
+       ActionsLayer.qml
+       DistanceTimeLayer.qml
+       LightningMapLayer.qml
+       LightningView.qml
+       LightningViewConfig.qml
+       MapLayersDrawer.qml
+       MapLayersItem.qml
+       MapType.qml
+       MapView.qml
+       SwitchMap.qml
+   SOURCES
+       controller.h controller.cpp
+       laststrikeinfo.h
+       lightningitemdata.h lightningitemdata.cpp
+       lightningitemmodel.h lightningitemmodel.cpp
+       lightningprovider.h lightningprovider.cpp
+   RESOURCES
+       icons/distance.svg
+       icons/globe.svg
+       icons/lightning-layer.svg
+       icons/lightning-strike.svg
+       icons/map-layers.svg
+       icons/map.svg
+       icons/recenter.svg
+       icons/user-location.svg
+)
+
+target_link_libraries(lightningviewerexample PRIVATE
+    Qt6::Core
+    Qt6::Gui
     Qt6::Quick
     Qt6::WebSockets
     Qt6::Positioning
 )
 
-# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
-# If you are developing for iOS or macOS you should consider setting an
-# explicit, fixed bundle identifier manually though.
-set_target_properties(${APP_NAME} PROPERTIES
-#    MACOSX_BUNDLE_GUI_IDENTIFIER com.example.appLightningViewer
-    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
-    MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist"
-    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
-    MACOSX_BUNDLE TRUE
-    WIN32_EXECUTABLE TRUE
-)
+add_dependencies(lightningviewerexample lightningviewer_style)
 
-include(GNUInstallDirs)
-install(TARGETS ${APP_NAME}
-    BUNDLE DESTINATION .
-    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
-    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+install(TARGETS lightningviewerexample
+    RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+    BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+    LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
 )
+
+
+#Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
+#If you are developing for iOS or macOS you should consider setting an
+#explicit, fixed bundle identifier manually though.
+# set_target_properties(lightningviewerexample PROPERTIES
+#    MACOSX_BUNDLE_GUI_IDENTIFIER com.example.appLightningViewer
+#    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
+#    MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist"
+#    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
+#    MACOSX_BUNDLE TRUE
+# )
diff --git a/examples/demos/lightningviewer/resources/qml/DistanceTimeLayer.qml b/examples/demos/lightningviewer/DistanceTimeLayer.qml
similarity index 99%
rename from examples/demos/lightningviewer/resources/qml/DistanceTimeLayer.qml
rename to examples/demos/lightningviewer/DistanceTimeLayer.qml
index 5896b3c9..355f0234 100644
--- a/examples/demos/lightningviewer/resources/qml/DistanceTimeLayer.qml
+++ b/examples/demos/lightningviewer/DistanceTimeLayer.qml
@@ -3,6 +3,7 @@
 
 import QtQuick
 import QtQuick.Layouts
+import lightningviewer
 
 Item {
     id: distanceTimeLayer
diff --git a/examples/demos/lightningviewer/resources/qml/LightningMapLayer.qml b/examples/demos/lightningviewer/LightningMapLayer.qml
similarity index 98%
rename from examples/demos/lightningviewer/resources/qml/LightningMapLayer.qml
rename to examples/demos/lightningviewer/LightningMapLayer.qml
index 056a7762..7cede463 100644
--- a/examples/demos/lightningviewer/resources/qml/LightningMapLayer.qml
+++ b/examples/demos/lightningviewer/LightningMapLayer.qml
@@ -4,6 +4,7 @@
 import QtQuick
 import QtLocation
 import QtPositioning
+import lightningviewer
 
 MapItemView {
     id: lightningMapLayer
diff --git a/examples/demos/lightningviewer/resources/qml/LightningView.qml b/examples/demos/lightningviewer/LightningView.qml
similarity index 79%
rename from examples/demos/lightningviewer/resources/qml/LightningView.qml
rename to examples/demos/lightningviewer/LightningView.qml
index 26b00fa9..d4ce2c4d 100644
--- a/examples/demos/lightningviewer/resources/qml/LightningView.qml
+++ b/examples/demos/lightningviewer/LightningView.qml
@@ -3,8 +3,9 @@
 
 import QtQuick
 import QtQuick.Controls
+import lightningviewer
 
-ApplicationWindow {
+Item {
     visible: true
 
     MapView {
@@ -30,11 +31,4 @@ ApplicationWindow {
         property: "distanceTimeLayerEnabled"
         value: actionsLayer.distanceLayerVisible
     }
-
-    Component.onCompleted: {
-        if ((width < 200) || (height < 200)) {
-            width = LightningViewConfig.appWidth
-            height = LightningViewConfig.appHeight
-        }
-    }
 }
diff --git a/examples/demos/lightningviewer/resources/qml/LightningViewConfig.qml b/examples/demos/lightningviewer/LightningViewConfig.qml
similarity index 100%
rename from examples/demos/lightningviewer/resources/qml/LightningViewConfig.qml
rename to examples/demos/lightningviewer/LightningViewConfig.qml
diff --git a/examples/demos/lightningviewer/Main.qml b/examples/demos/lightningviewer/Main.qml
new file mode 100644
index 00000000..1c9446e4
--- /dev/null
+++ b/examples/demos/lightningviewer/Main.qml
@@ -0,0 +1,22 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+import QtQuick
+import QtQuick.Controls
+import lightningviewer
+
+ApplicationWindow {
+    visible: true
+
+    LightningView {
+        anchors.fill: parent
+    }
+
+
+    Component.onCompleted: {
+        if ((width < 200) || (height < 200)) {
+            width = LightningViewConfig.appWidth
+            height = LightningViewConfig.appHeight
+        }
+    }
+}
diff --git a/examples/demos/lightningviewer/resources/qml/MapLayersDrawer.qml b/examples/demos/lightningviewer/MapLayersDrawer.qml
similarity index 99%
rename from examples/demos/lightningviewer/resources/qml/MapLayersDrawer.qml
rename to examples/demos/lightningviewer/MapLayersDrawer.qml
index 2427c592..75e3d6a4 100644
--- a/examples/demos/lightningviewer/resources/qml/MapLayersDrawer.qml
+++ b/examples/demos/lightningviewer/MapLayersDrawer.qml
@@ -5,7 +5,7 @@ import QtQuick
 import QtQuick.Layouts
 import Qt5Compat.GraphicalEffects
 
-import lv_style 1.0
+import lv_style
 
 Item {
     id: drawer
diff --git a/examples/demos/lightningviewer/resources/qml/MapLayersItem.qml b/examples/demos/lightningviewer/MapLayersItem.qml
similarity index 99%
rename from examples/demos/lightningviewer/resources/qml/MapLayersItem.qml
rename to examples/demos/lightningviewer/MapLayersItem.qml
index 6195ec21..0e2bbce8 100644
--- a/examples/demos/lightningviewer/resources/qml/MapLayersItem.qml
+++ b/examples/demos/lightningviewer/MapLayersItem.qml
@@ -3,8 +3,7 @@
 
 import QtQuick
 import QtQuick.Layouts
-
-import lv_style 1.0
+import lv_style
 
 Item {
     id: mapLayersItem
diff --git a/examples/demos/lightningviewer/resources/qml/MapType.qml b/examples/demos/lightningviewer/MapType.qml
similarity index 100%
rename from examples/demos/lightningviewer/resources/qml/MapType.qml
rename to examples/demos/lightningviewer/MapType.qml
diff --git a/examples/demos/lightningviewer/resources/qml/MapView.qml b/examples/demos/lightningviewer/MapView.qml
similarity index 100%
rename from examples/demos/lightningviewer/resources/qml/MapView.qml
rename to examples/demos/lightningviewer/MapView.qml
diff --git a/examples/demos/lightningviewer/resources/qml/SwitchMap.qml b/examples/demos/lightningviewer/SwitchMap.qml
similarity index 99%
rename from examples/demos/lightningviewer/resources/qml/SwitchMap.qml
rename to examples/demos/lightningviewer/SwitchMap.qml
index 6d2acddb..4aee4afc 100644
--- a/examples/demos/lightningviewer/resources/qml/SwitchMap.qml
+++ b/examples/demos/lightningviewer/SwitchMap.qml
@@ -3,8 +3,7 @@
 
 import QtQuick
 import QtQuick.Layouts
-
-import lv_style 1.0
+import lv_style
 
 Item {
     id: switchMap
diff --git a/examples/demos/lightningviewer/controller.cpp b/examples/demos/lightningviewer/controller.cpp
index c08584d1..e769d437 100644
--- a/examples/demos/lightningviewer/controller.cpp
+++ b/examples/demos/lightningviewer/controller.cpp
@@ -2,9 +2,9 @@
 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
 
 #include "controller.h"
-#include "data/laststrikeinfo.h"
-#include "models/lightningitemmodel.h"
-#include "providers/lightningprovider.h"
+#include "laststrikeinfo.h"
+#include "lightningitemmodel.h"
+#include "lightningprovider.h"
 
 #include <QGeoPositionInfoSource>
 
@@ -109,3 +109,5 @@ void Controller::setDistanceTimeLayerEnabled(bool enabled)
 
     updateDistanceTime();
 }
+
+#include "moc_controller.cpp"
diff --git a/examples/demos/lightningviewer/controller.h b/examples/demos/lightningviewer/controller.h
index 1ab191b8..8c81b303 100644
--- a/examples/demos/lightningviewer/controller.h
+++ b/examples/demos/lightningviewer/controller.h
@@ -4,12 +4,13 @@
 #ifndef CONTROLLER_H
 #define CONTROLLER_H
 
-#include "data/laststrikeinfo.h"
-#include "models/lightningitemmodel.h"
-#include "providers/lightningprovider.h"
+#include "laststrikeinfo.h"
+#include "lightningitemmodel.h"
+#include "lightningprovider.h"
 
 #include <QObject>
 #include <QTime>
+#include <QtQmlIntegration>
 
 QT_BEGIN_NAMESPACE
 class QGeoPositionInfo;
@@ -26,6 +27,8 @@ class Controller : public QObject
     Q_PROPERTY(int lastStrikeTime READ getLastStrikeTime NOTIFY lastStrikeInfoUpdated FINAL)
     Q_PROPERTY(double lastStrikeDirection READ getLastStrikeDirection NOTIFY lastStrikeInfoUpdated FINAL)
     Q_PROPERTY(bool distanceTimeLayerEnabled READ isDistanceTimeLayerEnabled WRITE setDistanceTimeLayerEnabled NOTIFY distanceTimeLayerEnabledChanged FINAL)
+    QML_NAMED_ELEMENT(LightningController)
+    QML_SINGLETON
 
 public:
     explicit Controller(QObject *parent = nullptr);
diff --git a/examples/demos/lightningviewer/resources/assets/icons/distance.svg b/examples/demos/lightningviewer/icons/distance.svg
similarity index 100%
rename from examples/demos/lightningviewer/resources/assets/icons/distance.svg
rename to examples/demos/lightningviewer/icons/distance.svg
diff --git a/examples/demos/lightningviewer/resources/assets/icons/globe.svg b/examples/demos/lightningviewer/icons/globe.svg
similarity index 100%
rename from examples/demos/lightningviewer/resources/assets/icons/globe.svg
rename to examples/demos/lightningviewer/icons/globe.svg
diff --git a/examples/demos/lightningviewer/resources/assets/icons/lightning-layer.svg b/examples/demos/lightningviewer/icons/lightning-layer.svg
similarity index 100%
rename from examples/demos/lightningviewer/resources/assets/icons/lightning-layer.svg
rename to examples/demos/lightningviewer/icons/lightning-layer.svg
diff --git a/examples/demos/lightningviewer/resources/assets/icons/lightning-strike.svg b/examples/demos/lightningviewer/icons/lightning-strike.svg
similarity index 100%
rename from examples/demos/lightningviewer/resources/assets/icons/lightning-strike.svg
rename to examples/demos/lightningviewer/icons/lightning-strike.svg
diff --git a/examples/demos/lightningviewer/resources/assets/icons/map-layers.svg b/examples/demos/lightningviewer/icons/map-layers.svg
similarity index 100%
rename from examples/demos/lightningviewer/resources/assets/icons/map-layers.svg
rename to examples/demos/lightningviewer/icons/map-layers.svg
diff --git a/examples/demos/lightningviewer/resources/assets/icons/map.svg b/examples/demos/lightningviewer/icons/map.svg
similarity index 100%
rename from examples/demos/lightningviewer/resources/assets/icons/map.svg
rename to examples/demos/lightningviewer/icons/map.svg
diff --git a/examples/demos/lightningviewer/resources/assets/icons/recenter.svg b/examples/demos/lightningviewer/icons/recenter.svg
similarity index 100%
rename from examples/demos/lightningviewer/resources/assets/icons/recenter.svg
rename to examples/demos/lightningviewer/icons/recenter.svg
diff --git a/examples/demos/lightningviewer/resources/assets/icons/user-location.svg b/examples/demos/lightningviewer/icons/user-location.svg
similarity index 100%
rename from examples/demos/lightningviewer/resources/assets/icons/user-location.svg
rename to examples/demos/lightningviewer/icons/user-location.svg
diff --git a/examples/demos/lightningviewer/data/laststrikeinfo.h b/examples/demos/lightningviewer/laststrikeinfo.h
similarity index 100%
rename from examples/demos/lightningviewer/data/laststrikeinfo.h
rename to examples/demos/lightningviewer/laststrikeinfo.h
diff --git a/examples/demos/lightningviewer/data/lightningitemdata.cpp b/examples/demos/lightningviewer/lightningitemdata.cpp
similarity index 100%
rename from examples/demos/lightningviewer/data/lightningitemdata.cpp
rename to examples/demos/lightningviewer/lightningitemdata.cpp
diff --git a/examples/demos/lightningviewer/data/lightningitemdata.h b/examples/demos/lightningviewer/lightningitemdata.h
similarity index 97%
rename from examples/demos/lightningviewer/data/lightningitemdata.h
rename to examples/demos/lightningviewer/lightningitemdata.h
index f393e377..946bcd69 100644
--- a/examples/demos/lightningviewer/data/lightningitemdata.h
+++ b/examples/demos/lightningviewer/lightningitemdata.h
@@ -5,6 +5,7 @@
 #define LIGHTNINGITEMDATA_H
 
 #include <QGeoCoordinate>
+#include <chrono>
 
 struct LightningItemData
 {
diff --git a/examples/demos/lightningviewer/models/lightningitemmodel.cpp b/examples/demos/lightningviewer/lightningitemmodel.cpp
similarity index 98%
rename from examples/demos/lightningviewer/models/lightningitemmodel.cpp
rename to examples/demos/lightningviewer/lightningitemmodel.cpp
index 6ac1d6b0..0c3c77ca 100644
--- a/examples/demos/lightningviewer/models/lightningitemmodel.cpp
+++ b/examples/demos/lightningviewer/lightningitemmodel.cpp
@@ -2,7 +2,7 @@
 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
 
 #include "lightningitemmodel.h"
-#include "../data/laststrikeinfo.h"
+#include "laststrikeinfo.h"
 
 #include <QGeoPositionInfo>
 
diff --git a/examples/demos/lightningviewer/models/lightningitemmodel.h b/examples/demos/lightningviewer/lightningitemmodel.h
similarity index 96%
rename from examples/demos/lightningviewer/models/lightningitemmodel.h
rename to examples/demos/lightningviewer/lightningitemmodel.h
index 35a154d2..23c38265 100644
--- a/examples/demos/lightningviewer/models/lightningitemmodel.h
+++ b/examples/demos/lightningviewer/lightningitemmodel.h
@@ -4,7 +4,7 @@
 #ifndef LIGHTNINGITEMMODEL_H
 #define LIGHTNINGITEMMODEL_H
 
-#include "../data/lightningitemdata.h"
+#include "lightningitemdata.h"
 
 #include <QAbstractListModel>
 
diff --git a/examples/demos/lightningviewer/providers/lightningprovider.cpp b/examples/demos/lightningviewer/lightningprovider.cpp
similarity index 100%
rename from examples/demos/lightningviewer/providers/lightningprovider.cpp
rename to examples/demos/lightningviewer/lightningprovider.cpp
diff --git a/examples/demos/lightningviewer/providers/lightningprovider.h b/examples/demos/lightningviewer/lightningprovider.h
similarity index 95%
rename from examples/demos/lightningviewer/providers/lightningprovider.h
rename to examples/demos/lightningviewer/lightningprovider.h
index 3929d278..7a9067f4 100644
--- a/examples/demos/lightningviewer/providers/lightningprovider.h
+++ b/examples/demos/lightningviewer/lightningprovider.h
@@ -4,7 +4,7 @@
 #ifndef LIGHTNINGPROVIDER_H
 #define LIGHTNINGPROVIDER_H
 
-#include "../data/lightningitemdata.h"
+#include "lightningitemdata.h"
 
 #include <QObject>
 
diff --git a/examples/demos/lightningviewer/resources/lv_style/Button.qml b/examples/demos/lightningviewer/lv_style/Button.qml
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/Button.qml
rename to examples/demos/lightningviewer/lv_style/Button.qml
diff --git a/examples/demos/lightningviewer/lv_style/CMakeLists.txt b/examples/demos/lightningviewer/lv_style/CMakeLists.txt
new file mode 100644
index 00000000..34cfeaec
--- /dev/null
+++ b/examples/demos/lightningviewer/lv_style/CMakeLists.txt
@@ -0,0 +1,135 @@
+# Copyright (C) 2024 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
+if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
+    message(FATAL_ERROR "This module should be build as part of the 'lightningviewer' example, and not in isolation.")
+endif()
+
+set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/demos/lightningviewer/lv_style")
+
+set_source_files_properties(Config.qml
+    PROPERTIES
+        QT_QML_SINGLETON_TYPE TRUE
+)
+
+qt_add_qml_module(lightningviewer_style
+    URI "lv_style"
+    PLUGIN_TARGET lightningviewer_style
+    QML_FILES
+        Button.qml
+        Config.qml
+        RoundButton.qml
+        StyleImage.qml
+    RESOURCES
+        dark/images/roundbutton-background-checked-disabled@2x.png
+        dark/images/button-background-checked-hovered.png
+        dark/images/roundbutton-background-checked-disabled.png
+        dark/images/flatbutton-background.png
+        dark/images/flatbutton-background-disabled.png
+        dark/images/flatbutton-background-checked-pressed.png
+        dark/images/button-background.png
+        dark/images/flatbutton-background-hovered.png
+        dark/images/button-background-checked-hovered@2x.png
+        dark/images/roundbutton-background-checked-hovered.png
+        dark/images/button-background-checked.png
+        dark/images/flatbutton-background-checked-hovered@2x.png
+        dark/images/roundbutton-background-disabled.png
+        dark/images/flatbutton-background-disabled@2x.png
+        dark/images/roundbutton-background@2x.png
+        dark/images/flatbutton-background-checked-pressed@2x.png
+        dark/images/button-background@2x.png
+        dark/images/button-background-hovered@2x.png
+        dark/images/roundbutton-background-checked-pressed.png
+        dark/images/roundbutton-background-hovered.png
+        dark/images/roundbutton-background-checked.png
+        dark/images/flatbutton-background-checked@2x.png
+        dark/images/roundbutton-background.png
+        dark/images/button-background-pressed@2x.png
+        dark/images/roundbutton-background-disabled@2x.png
+        dark/images/flatbutton-background-checked.png
+        dark/images/button-background-disabled.png
+        dark/images/roundbutton-background-pressed@2x.png
+        dark/images/flatbutton-background-checked-disabled.png
+        dark/images/roundbutton-background-checked@2x.png
+        dark/images/roundbutton-background-checked-hovered@2x.png
+        dark/images/button-background-hovered.png
+        dark/images/flatbutton-background-checked-disabled@2x.png
+        dark/images/button-background-checked-disabled@2x.png
+        dark/images/button-background-checked-disabled.png
+        dark/images/button-background-checked-pressed@2x.png
+        dark/images/flatbutton-background@2x.png
+        dark/images/button-background-checked@2x.png
+        dark/images/button-background-pressed.png
+        dark/images/button-background-checked-pressed.png
+        dark/images/button-background-disabled@2x.png
+        dark/images/flatbutton-background-pressed.png
+        dark/images/flatbutton-background-checked-hovered.png
+        dark/images/flatbutton-background-pressed@2x.png
+        dark/images/roundbutton-background-pressed.png
+        dark/images/roundbutton-background-checked-pressed@2x.png
+        dark/images/flatbutton-background-hovered@2x.png
+        dark/images/roundbutton-background-hovered@2x.png
+        light/images/roundbutton-background-checked-disabled@2x.png
+        light/images/button-background-checked-hovered.png
+        light/images/roundbutton-background-checked-disabled.png
+        light/images/flatbutton-background.png
+        light/images/flatbutton-background-disabled.png
+        light/images/flatbutton-background-checked-pressed.png
+        light/images/button-background.png
+        light/images/flatbutton-background-hovered.png
+        light/images/button-background-checked-hovered@2x.png
+        light/images/roundbutton-background-checked-hovered.png
+        light/images/button-background-checked.png
+        light/images/flatbutton-background-checked-hovered@2x.png
+        light/images/roundbutton-background-disabled.png
+        light/images/flatbutton-background-disabled@2x.png
+        light/images/roundbutton-background@2x.png
+        light/images/flatbutton-background-checked-pressed@2x.png
+        light/images/button-background@2x.png
+        light/images/button-background-hovered@2x.png
+        light/images/roundbutton-background-checked-pressed.png
+        light/images/roundbutton-background-hovered.png
+        light/images/roundbutton-background-checked.png
+        light/images/flatbutton-background-checked@2x.png
+        light/images/roundbutton-background.png
+        light/images/button-background-pressed@2x.png
+        light/images/roundbutton-background-disabled@2x.png
+        light/images/flatbutton-background-checked.png
+        light/images/button-background-disabled.png
+        light/images/roundbutton-background-pressed@2x.png
+        light/images/flatbutton-background-checked-disabled.png
+        light/images/roundbutton-background-checked@2x.png
+        light/images/roundbutton-background-checked-hovered@2x.png
+        light/images/button-background-hovered.png
+        light/images/flatbutton-background-checked-disabled@2x.png
+        light/images/button-background-checked-disabled@2x.png
+        light/images/button-background-checked-disabled.png
+        light/images/button-background-checked-pressed@2x.png
+        light/images/flatbutton-background@2x.png
+        light/images/button-background-checked@2x.png
+        light/images/button-background-pressed.png
+        light/images/button-background-checked-pressed.png
+        light/images/button-background-disabled@2x.png
+        light/images/flatbutton-background-pressed.png
+        light/images/flatbutton-background-checked-hovered.png
+        light/images/flatbutton-background-pressed@2x.png
+        light/images/roundbutton-background-pressed.png
+        light/images/roundbutton-background-checked-pressed@2x.png
+        light/images/flatbutton-background-hovered@2x.png
+        light/images/roundbutton-background-hovered@2x.png
+)
+
+target_link_libraries(lightningviewer_style PRIVATE
+    Qt6::Core
+    Qt6::Gui
+    Qt6::Quick
+)
+
+install(TARGETS lightningviewer_style
+    RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+    BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+    LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/qmldir
+    DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/demos/lightningviewer/resources/lv_style/Config.qml b/examples/demos/lightningviewer/lv_style/Config.qml
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/Config.qml
rename to examples/demos/lightningviewer/lv_style/Config.qml
diff --git a/examples/demos/lightningviewer/resources/lv_style/RoundButton.qml b/examples/demos/lightningviewer/lv_style/RoundButton.qml
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/RoundButton.qml
rename to examples/demos/lightningviewer/lv_style/RoundButton.qml
diff --git a/examples/demos/lightningviewer/resources/lv_style/StyleImage.qml b/examples/demos/lightningviewer/lv_style/StyleImage.qml
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/StyleImage.qml
rename to examples/demos/lightningviewer/lv_style/StyleImage.qml
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-disabled.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-disabled.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-disabled@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-hovered.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-hovered.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-hovered@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-pressed.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-pressed.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-pressed@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-checked-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-checked.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-checked.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-checked@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-checked@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-checked@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-disabled.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-disabled.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-disabled@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-hovered.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-hovered.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-hovered@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-pressed.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-pressed.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-pressed@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/button-background@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/button-background@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/button-background@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/button-background@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-disabled.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-disabled.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-disabled@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-hovered.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-hovered.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-hovered@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-pressed.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-pressed.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-pressed@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-checked@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-checked@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-disabled.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-disabled.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-disabled@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-hovered.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-hovered.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-hovered@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-pressed.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-pressed.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-pressed@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/flatbutton-background@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/flatbutton-background@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-disabled.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-disabled.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-disabled@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-hovered.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-hovered.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-hovered@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-pressed.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-pressed.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-pressed@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-checked@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-checked@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-disabled.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-disabled.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-disabled@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-hovered.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-hovered.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-hovered@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-pressed.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-pressed.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-pressed@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background@2x.png b/examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/dark/images/roundbutton-background@2x.png
rename to examples/demos/lightningviewer/lv_style/dark/images/roundbutton-background@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-disabled.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-checked-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-disabled.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-checked-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-disabled@2x.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-checked-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-checked-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-hovered.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-checked-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-hovered.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-checked-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-hovered@2x.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-checked-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-checked-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-pressed.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-checked-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-pressed.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-checked-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-pressed@2x.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-checked-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-checked-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-checked.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-checked.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked@2x.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-checked@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-checked@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-checked@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-disabled.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-disabled.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-disabled@2x.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-hovered.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-hovered.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-hovered@2x.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-pressed.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-pressed.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background-pressed@2x.png b/examples/demos/lightningviewer/lv_style/light/images/button-background-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background.png b/examples/demos/lightningviewer/lv_style/light/images/button-background.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/button-background@2x.png b/examples/demos/lightningviewer/lv_style/light/images/button-background@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/button-background@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/button-background@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-disabled.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-disabled.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-disabled@2x.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-hovered.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-hovered.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-hovered@2x.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-pressed.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-pressed.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-pressed@2x.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked@2x.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-checked@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-checked@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-disabled.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-disabled.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-disabled@2x.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-hovered.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-hovered.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-hovered@2x.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-pressed.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-pressed.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-pressed@2x.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background@2x.png b/examples/demos/lightningviewer/lv_style/light/images/flatbutton-background@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/flatbutton-background@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/flatbutton-background@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-disabled.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-disabled.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-disabled@2x.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-hovered.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-hovered.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-hovered@2x.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-pressed.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-pressed.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-pressed@2x.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked@2x.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-checked@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-checked@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-disabled.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-disabled.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-disabled.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-disabled.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-disabled@2x.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-disabled@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-disabled@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-disabled@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-hovered.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-hovered.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-hovered.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-hovered.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-hovered@2x.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-hovered@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-hovered@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-hovered@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-pressed.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-pressed.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-pressed.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-pressed.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-pressed@2x.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-pressed@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background-pressed@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background-pressed@2x.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background.png
diff --git a/examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background@2x.png b/examples/demos/lightningviewer/lv_style/light/images/roundbutton-background@2x.png
similarity index 100%
rename from examples/demos/lightningviewer/resources/lv_style/light/images/roundbutton-background@2x.png
rename to examples/demos/lightningviewer/lv_style/light/images/roundbutton-background@2x.png
diff --git a/examples/demos/lightningviewer/main.cpp b/examples/demos/lightningviewer/main.cpp
index c17f1a04..e5628998 100644
--- a/examples/demos/lightningviewer/main.cpp
+++ b/examples/demos/lightningviewer/main.cpp
@@ -1,31 +1,22 @@
 // Copyright (C) 2023 The Qt Company Ltd.
 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
 
-#include "controller.h"
-
 #include <QGuiApplication>
 #include <QQmlApplicationEngine>
-#include <QQmlContext>
-
+#include <QDir>
 
 int main(int argc, char *argv[])
 {
     QGuiApplication app(argc, argv);
-
-    Q_INIT_RESOURCE(resources);
-    Q_INIT_RESOURCE(lv_style);
-
-    Controller controller;
-
+    app.setOrganizationName("QtProject");
+    app.setOrganizationDomain("qt-project.org");
+    app.setApplicationName(QFileInfo(app.applicationFilePath()).baseName());
     QQmlApplicationEngine engine;
     QObject::connect(&engine, &QQmlApplicationEngine::objectCreationFailed,
         &app, []() { QCoreApplication::exit(-1); },
         Qt::QueuedConnection);
 
-    QQmlContext *context = engine.rootContext();
-    context->setContextProperty("LightningController", &controller);
-
-    engine.loadFromModule("LightningViewer", "LightningView");
+    engine.loadFromModule("lightningviewer", "Main");
 
     return app.exec();
 }
diff --git a/examples/demos/lightningviewer/resources/lv_style/lv_style.qrc b/examples/demos/lightningviewer/resources/lv_style/lv_style.qrc
deleted file mode 100644
index 7995be94..00000000
--- a/examples/demos/lightningviewer/resources/lv_style/lv_style.qrc
+++ /dev/null
@@ -1,105 +0,0 @@
-<RCC>
-    <qresource prefix="/qt/qml/lv_style">
-        <file>RoundButton.qml</file>
-        <file>Button.qml</file>
-        <file>StyleImage.qml</file>
-        <file>dark/images/roundbutton-background-checked-disabled@2x.png</file>
-        <file>dark/images/button-background-checked-hovered.png</file>
-        <file>dark/images/roundbutton-background-checked-disabled.png</file>
-        <file>dark/images/flatbutton-background.png</file>
-        <file>dark/images/flatbutton-background-disabled.png</file>
-        <file>dark/images/flatbutton-background-checked-pressed.png</file>
-        <file>dark/images/button-background.png</file>
-        <file>dark/images/flatbutton-background-hovered.png</file>
-        <file>dark/images/button-background-checked-hovered@2x.png</file>
-        <file>dark/images/roundbutton-background-checked-hovered.png</file>
-        <file>dark/images/button-background-checked.png</file>
-        <file>dark/images/flatbutton-background-checked-hovered@2x.png</file>
-        <file>dark/images/roundbutton-background-disabled.png</file>
-        <file>dark/images/flatbutton-background-disabled@2x.png</file>
-        <file>dark/images/roundbutton-background@2x.png</file>
-        <file>dark/images/flatbutton-background-checked-pressed@2x.png</file>
-        <file>dark/images/button-background@2x.png</file>
-        <file>dark/images/button-background-hovered@2x.png</file>
-        <file>dark/images/roundbutton-background-checked-pressed.png</file>
-        <file>dark/images/roundbutton-background-hovered.png</file>
-        <file>dark/images/roundbutton-background-checked.png</file>
-        <file>dark/images/flatbutton-background-checked@2x.png</file>
-        <file>dark/images/roundbutton-background.png</file>
-        <file>dark/images/button-background-pressed@2x.png</file>
-        <file>dark/images/roundbutton-background-disabled@2x.png</file>
-        <file>dark/images/flatbutton-background-checked.png</file>
-        <file>dark/images/button-background-disabled.png</file>
-        <file>dark/images/roundbutton-background-pressed@2x.png</file>
-        <file>dark/images/flatbutton-background-checked-disabled.png</file>
-        <file>dark/images/roundbutton-background-checked@2x.png</file>
-        <file>dark/images/roundbutton-background-checked-hovered@2x.png</file>
-        <file>dark/images/button-background-hovered.png</file>
-        <file>dark/images/flatbutton-background-checked-disabled@2x.png</file>
-        <file>dark/images/button-background-checked-disabled@2x.png</file>
-        <file>dark/images/button-background-checked-disabled.png</file>
-        <file>dark/images/button-background-checked-pressed@2x.png</file>
-        <file>dark/images/flatbutton-background@2x.png</file>
-        <file>dark/images/button-background-checked@2x.png</file>
-        <file>dark/images/button-background-pressed.png</file>
-        <file>dark/images/button-background-checked-pressed.png</file>
-        <file>dark/images/button-background-disabled@2x.png</file>
-        <file>dark/images/flatbutton-background-pressed.png</file>
-        <file>dark/images/flatbutton-background-checked-hovered.png</file>
-        <file>dark/images/flatbutton-background-pressed@2x.png</file>
-        <file>dark/images/roundbutton-background-pressed.png</file>
-        <file>dark/images/roundbutton-background-checked-pressed@2x.png</file>
-        <file>dark/images/flatbutton-background-hovered@2x.png</file>
-        <file>dark/images/roundbutton-background-hovered@2x.png</file>
-        <file>qmldir</file>
-        <file>light/images/roundbutton-background-checked-disabled@2x.png</file>
-        <file>light/images/button-background-checked-hovered.png</file>
-        <file>light/images/roundbutton-background-checked-disabled.png</file>
-        <file>light/images/flatbutton-background.png</file>
-        <file>light/images/flatbutton-background-disabled.png</file>
-        <file>light/images/flatbutton-background-checked-pressed.png</file>
-        <file>light/images/button-background.png</file>
-        <file>light/images/flatbutton-background-hovered.png</file>
-        <file>light/images/button-background-checked-hovered@2x.png</file>
-        <file>light/images/roundbutton-background-checked-hovered.png</file>
-        <file>light/images/button-background-checked.png</file>
-        <file>light/images/flatbutton-background-checked-hovered@2x.png</file>
-        <file>light/images/roundbutton-background-disabled.png</file>
-        <file>light/images/flatbutton-background-disabled@2x.png</file>
-        <file>light/images/roundbutton-background@2x.png</file>
-        <file>light/images/flatbutton-background-checked-pressed@2x.png</file>
-        <file>light/images/button-background@2x.png</file>
-        <file>light/images/button-background-hovered@2x.png</file>
-        <file>light/images/roundbutton-background-checked-pressed.png</file>
-        <file>light/images/roundbutton-background-hovered.png</file>
-        <file>light/images/roundbutton-background-checked.png</file>
-        <file>light/images/flatbutton-background-checked@2x.png</file>
-        <file>light/images/roundbutton-background.png</file>
-        <file>light/images/button-background-pressed@2x.png</file>
-        <file>light/images/roundbutton-background-disabled@2x.png</file>
-        <file>light/images/flatbutton-background-checked.png</file>
-        <file>light/images/button-background-disabled.png</file>
-        <file>light/images/roundbutton-background-pressed@2x.png</file>
-        <file>light/images/flatbutton-background-checked-disabled.png</file>
-        <file>light/images/roundbutton-background-checked@2x.png</file>
-        <file>light/images/roundbutton-background-checked-hovered@2x.png</file>
-        <file>light/images/button-background-hovered.png</file>
-        <file>light/images/flatbutton-background-checked-disabled@2x.png</file>
-        <file>light/images/button-background-checked-disabled@2x.png</file>
-        <file>light/images/button-background-checked-disabled.png</file>
-        <file>light/images/button-background-checked-pressed@2x.png</file>
-        <file>light/images/flatbutton-background@2x.png</file>
-        <file>light/images/button-background-checked@2x.png</file>
-        <file>light/images/button-background-pressed.png</file>
-        <file>light/images/button-background-checked-pressed.png</file>
-        <file>light/images/button-background-disabled@2x.png</file>
-        <file>light/images/flatbutton-background-pressed.png</file>
-        <file>light/images/flatbutton-background-checked-hovered.png</file>
-        <file>light/images/flatbutton-background-pressed@2x.png</file>
-        <file>light/images/roundbutton-background-pressed.png</file>
-        <file>light/images/roundbutton-background-checked-pressed@2x.png</file>
-        <file>light/images/flatbutton-background-hovered@2x.png</file>
-        <file>light/images/roundbutton-background-hovered@2x.png</file>
-        <file>Config.qml</file>
-    </qresource>
-</RCC>
diff --git a/examples/demos/lightningviewer/resources/lv_style/qmldir b/examples/demos/lightningviewer/resources/lv_style/qmldir
deleted file mode 100644
index a72fcbf7..00000000
--- a/examples/demos/lightningviewer/resources/lv_style/qmldir
+++ /dev/null
@@ -1,5 +0,0 @@
-module lv_style
-Button 1.0 Button.qml
-FlatButton 1.0 FlatButton.qml
-RoundButton 1.0 RoundButton.qml
-singleton Config 1.0 Config.qml
diff --git a/examples/demos/lightningviewer/resources/qml/qmldir b/examples/demos/lightningviewer/resources/qml/qmldir
deleted file mode 100644
index 2ff0ee46..00000000
--- a/examples/demos/lightningviewer/resources/qml/qmldir
+++ /dev/null
@@ -1,10 +0,0 @@
-module LightningViewer
-singleton MapType 1.0 MapType.qml
-singleton LightningViewConfig 1.0 LightningViewConfig.qml
-ActionsLayer 1.0 ActionsLayer.qml
-LightningMapLayer 1.0 LightningMapLayer.qml
-MapView 1.0 MapView.qml
-SwitchMap 1.0 SwitchMap.qml
-LightningView 1.0 LightningView.qml
-MapLayersDrawer 1.0 MapLayersDrawer.qml
-MapLayersItem 1.0 MapLayersItem.qml
diff --git a/examples/demos/lightningviewer/resources/resources.qrc b/examples/demos/lightningviewer/resources/resources.qrc
deleted file mode 100644
index 455f2e10..00000000
--- a/examples/demos/lightningviewer/resources/resources.qrc
+++ /dev/null
@@ -1,23 +0,0 @@
-<RCC>
-    <qresource prefix="/qt/qml/LightningViewer">
-        <file alias="qmldir">qml/qmldir</file>
-        <file alias="DistanceTimeLayer.qml">qml/DistanceTimeLayer.qml</file>
-        <file alias="LightningView.qml">qml/LightningView.qml</file>
-        <file alias="LightningMapLayer.qml">qml/LightningMapLayer.qml</file>
-        <file alias="LightningViewConfig.qml">qml/LightningViewConfig.qml</file>
-        <file alias="MapLayersItem.qml">qml/MapLayersItem.qml</file>
-        <file alias="MapView.qml">qml/MapView.qml</file>
-        <file alias="MapType.qml">qml/MapType.qml</file>
-        <file alias="ActionsLayer.qml">qml/ActionsLayer.qml</file>
-        <file alias="SwitchMap.qml">qml/SwitchMap.qml</file>
-        <file alias="MapLayersDrawer.qml">qml/MapLayersDrawer.qml</file>
-        <file alias="icons/lightning-strike.svg">assets/icons/lightning-strike.svg</file>
-        <file alias="icons/user-location.svg">assets/icons/user-location.svg</file>
-        <file alias="icons/recenter.svg">assets/icons/recenter.svg</file>
-        <file alias="icons/map-layers.svg">assets/icons/map-layers.svg</file>
-        <file alias="icons/globe.svg">assets/icons/globe.svg</file>
-        <file alias="icons/map.svg">assets/icons/map.svg</file>
-        <file alias="icons/lightning-layer.svg">assets/icons/lightning-layer.svg</file>
-        <file alias="icons/distance.svg">assets/icons/distance.svg</file>
-    </qresource>
-</RCC>
-- 
2.40.1

