← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1602836] [NEW] Grouped properties in StyleHints don't work for simple values.

 

Public bug reported:

For example:

import QtQuick 2.4
import Ubuntu.Components 1.3

Item {
    width: units.gu(40)
    height: units.gu(71)

    Button {
        objectName: "Button"
        id: button
        gradient: UbuntuColors.greyGradient
        StyleHints {
            ignoreUnknownProperties: false
            gradientProxy.topColor: "orange"
        }
    }
}

gives:

file:///home/ubuntu/dev/ubuntu-ui-
toolkit/m/fixGroupedStyleProperties/tests/unit/subtheming/GroupPropertyValueHints.qml:28:9:
QML StyleHints: Style 'ButtonStyle' has no property called
'gradientProxy.topColor'

and the color is not set.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: Confirmed

-- 
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/1602836

Title:
  Grouped properties in StyleHints don't work for simple values.

Status in ubuntu-ui-toolkit package in Ubuntu:
  Confirmed

Bug description:
  For example:

  import QtQuick 2.4
  import Ubuntu.Components 1.3

  Item {
      width: units.gu(40)
      height: units.gu(71)

      Button {
          objectName: "Button"
          id: button
          gradient: UbuntuColors.greyGradient
          StyleHints {
              ignoreUnknownProperties: false
              gradientProxy.topColor: "orange"
          }
      }
  }

  gives:

  file:///home/ubuntu/dev/ubuntu-ui-
  toolkit/m/fixGroupedStyleProperties/tests/unit/subtheming/GroupPropertyValueHints.qml:28:9:
  QML StyleHints: Style 'ButtonStyle' has no property called
  'gradientProxy.topColor'

  and the color is not set.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1602836/+subscriptions


Follow ups