Skip to content
Snippets Groups Projects
Commit a7bec8f4 authored by jkito's avatar jkito :skull:
Browse files

[qml] set theme properties directly on the qml object

for somereason values from Javascript are undefined from
the qml documents, setting the theme values directly  in
the qml document fixes the following error:
parent c217247e
No related branches found
No related tags found
1 merge request!170Updates to Qt6.6 and various misc fixes for window and macOS
import './theme-calyx.js' as Theme
import QtQuick
ThemeObject{
theme: Theme
bgColor: "#D3E9AC"
fgColor: "#F2FFDA"
iconOn: "../resources/calyx/calyx-shield-green.png"
iconOff: "../resources/calyx/calyx-red-shield.png"
iconConnecting: "../resources/calyx/calyx-yellow-shield.png"
iconSplash: "../resources/calyx/calyx-hand.png"
}
import './theme-riseup.js' as Theme
import QtQuick
ThemeObject {
theme: Theme
bgColor: "#f3f3f3"
fgColor: "#ffffff"
iconOn: "../resources/riseup-icon.svg"
iconOff: "../resources/icon-noshield.svg"
iconConnecting: "../resources/ravens.gif"
iconSplash: "../resources/icon-noshield.svg"
}
import QtQuick
QtObject {
property var theme;
// property var theme;
// here we expose any var contained in
// the js file. This object can be accessed as the global
// customTheme, since it's loaded in main.qml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment