Button does not reflect changes to GradientStop.color

Bug #1217578 reported by Brad Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Consider the following snippet. Changing the value of the variables, buttongradientTop and buttongradientBottom, should result in the gradient colors of the button changing. This is the behavior of a Qt5 Rectangle element, etc. The color property of the GradientStop can be changed, but the color of the button does not reflect this change.

Button {
...
gradient: Gradient {
      GradientStop { position: 0.0; color: buttongradientTop }
      GradientStop { position: 1.0; color: buttongradientBottom }
   }
}

Revision history for this message
Brad Wells (brad-4) wrote :

Gradient.stops and GradientStop.color are non-NOTIFYable properties. Still, there must be another way to handle this. Check ButtonStyle.qml and related

Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
status: New → Triaged
importance: Undecided → Medium
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.