I use this guide to create an ok / cancel modal dialog box in my Blackberry 10 app.
I defined a dialog in QML and called the .show () method. The dialog works well, but it always uses a bright (white) theme. Even if the current theme is set to dark , and all other controls are dark - the dialogue is always white.
Is there a way to make the dialog work like all the other controls in the application.
Here is my QML snippet with a dialog:
SystemDialog {
id: interruptDialog
title: qsTr("title")
body: qsTr("Do you really want to do this?")
onFinished: {
someAction();
}
}
source
share