4

I'm using this manual to create ok/cancel modal dialog box in my Blackberry 10 application.

I defined dialog in QML and called .show() method. The dialog works well, but it always uses bright(white) theme. Even if current theme set to dark and all other controls are dark - the dialog is always white.

Is there any way to make the dialog work as all others controls in application.

Here my QML fragment with dialog:

 SystemDialog {
    id: interruptDialog
    title: qsTr("title")
    body: qsTr("Do you really want to do this?")
    onFinished: {
       someAction();
    }
 } 
skkap
  • 238
  • 2
  • 12

1 Answers1

4

SystemDialog can't be themed. You'd have to make your own custom dialog if you want to change the look.

https://developer.blackberry.com/native/documentation/cascades/ui/dialogs_toasts/custom_dialogs.html

Even on a Q10 device, where the OS-wide theme is dark, a SystemDialog would still show with a blue header and white body.

https://developer.blackberry.com/native/documentation/cascades/ui/dialogs_toasts/system_dialogs.html

A SystemDialog is a dialog box that is standardized across all applications. These dialog boxes have a predefined look and feel for BlackBerry 10.

Scott
  • 407
  • 3
  • 7