UbuntuShape should support overlays
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Won't Fix
|
Wishlist
|
Loïc Molinari |
Bug Description
As can be seen in the Carousel for People, the UbuntuShape needs to support a bottom bar of a certain height, color and opacity.
Important to note is that opacity will often be animated.
I can also imagine a top (maybe even left/right) bar might also be useful in the future.
I wouldn't allow different overlay colors as that could result in conflicts. The existing color property should be sufficient, as the overlay will most likely be used with images. I'm not even sure we should have separate opacities, for the same reason.
One more (possibly future) extension would be to blur the image for added readability.
I propose API additions as follows:
UbuntuShape {
property int overlay.top: 0
property int overlay.bottom: 0
property int overlay.left: 0
property int overlay.right: 0
property real overlay.opacity: 1.0
# or
property real overlay.topOpacity: 1.0
property real overlay.
property real overlay.
property real overlay.
# potential future enhancement
property real overlay.blur: 0.0
}
summary: |
- UbuntuShape needs to support bottom overlay + UbuntuShape should support overlays |
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → Wishlist |
assignee: | Ubuntu SDK team (ubuntu-sdk-team) → Florian Boucault (fboucault) |
Changed in ubuntu-ui-toolkit: | |
assignee: | Florian Boucault (fboucault) → nobody |
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Loïc Molinari (loic.molinari) |
tags: | added: shape |
Changed in ubuntu-ui-toolkit: | |
status: | New → Triaged |
Changed in ubuntu-ui-toolkit: | |
status: | Triaged → Won't Fix |
when this bug is fixed - https:/ /bugs.launchpad .net/ubuntu- ui-toolkit/ +bug/1157712 then we don't need the ubuntushape to support overlays anymore because you can do it inside the Item that you put in the UbuntuShape.