ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #05935
[Bug 1555548] Re: Dialog and Popover have no attached theme property
** Also affects: canonical-devices-system-image
Importance: Undecided
Status: New
** Changed in: canonical-devices-system-image
Milestone: None => 11
** Also affects: ubuntu-ui-toolkit (Ubuntu RTM)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1555548
Title:
Dialog and Popover have no attached theme property
Status in Canonical System Image:
New
Status in ubuntu-ui-toolkit package in Ubuntu:
Confirmed
Status in unity8 package in Ubuntu:
New
Status in ubuntu-ui-toolkit package in Ubuntu RTM:
New
Bug description:
In order to give the Dialog a different theme from the rest of an app,
we need to set the theme property, as is done in the example of the
theming tutorial in file:///usr/share/ubuntu-ui-toolkit/doc/html
/ubuntu-theming-subtheming.html (ubuntu-ui-toolkit-doc package):
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
theme: ThemeSettings {
name: "Ubuntu.Components.Themes.SuruDark"
}
TextField {
placeholderText: "enter text"
}
Button {
text: "Close"
onClicked: PopupUtils.close(dialog)
}
}
}
Button {
text: "Open dialog"
onClicked: PopupUtils.open(dialogComponent)
}
}
However, this gives the following error file:///home/tim/test.qml:19 Cannot assign to non-existent property "theme"
because Dialog is not a StyledItem.
To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1555548/+subscriptions
References