Workaround:
import QtQuick 2.4 import Ubuntu.Components 1.3 import Ubuntu.Components.Popups 1.3 MainView { width: units.gu(40) height: units.gu(71)
applicationName: "subthemed"
// make sure the main theme is Ambiance theme.name: "Ubuntu.Components.Themes.Ambiance"
Component { id: dialogComponent Dialog { id: dialog title: "Input dialog" // the dialog and its children will use SuruDark ThemeSettings { id: tset name: "Ubuntu.Components.Themes.SuruDark" } TextField { placeholderText: "enter text" } Button { text: "Close" onClicked: PopupUtils.close(dialog) } Component.onCompleted: { __foreground.theme = tset; } } }
Button { text: "Open dialog" onClicked: PopupUtils.open(dialogComponent) } }
Workaround:
import QtQuick 2.4 Components. Popups 1.3
import Ubuntu.Components 1.3
import Ubuntu.
MainView {
width: units.gu(40)
height: units.gu(71)
application Name: "subthemed"
// make sure the main theme is Ambiance Components. Themes. Ambiance"
theme.name: "Ubuntu.
Component {
ThemeSetti ngs {
name: "Ubuntu. Components. Themes. SuruDark"
TextField {
placeholderTe xt: "enter text"
text: "Close"
onClicked: PopupUtils. close(dialog) onCompleted: { theme = tset;
id: dialogComponent
Dialog {
id: dialog
title: "Input dialog"
// the dialog and its children will use SuruDark
id: tset
}
}
Button {
}
Component.
__foreground.
}
}
}
Button { open(dialogComp onent)
text: "Open dialog"
onClicked: PopupUtils.
}
}