← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1555548] Re: Dialog and Popover have no attached theme property

 

For the record, this breaks Unity 8 shutdown/reboot/logout dialogs: the
title and subtitle texts are rendered in white-on-white

** Also affects: unity8 (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: unity8 (Ubuntu)
   Importance: Undecided => Critical

-- 
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 ubuntu-ui-toolkit package in Ubuntu:
  Confirmed
Status in unity8 package in Ubuntu:
  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/ubuntu/+source/ubuntu-ui-toolkit/+bug/1555548/+subscriptions


References