[UbuntuShape] Add background color support
Bug #1396104 reported by
Loïc Molinari
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Loïc Molinari | ||
Vivid |
New
|
Undecided
|
Unassigned |
Bug Description
The current shape supports only two exclusive properties to shape either an image or a color. It would be nice to to have an image with a custom background color (other than transparent).
Related branches
lp://staging/~loic.molinari/ubuntu-ui-toolkit/ubuntu-ui-toolkit-shape-rewrite
- PS Jenkins bot: Approve (continuous-integration)
- Zsombor Egri: Approve
-
Diff: 3415 lines (+1965/-1054)13 files modified.bzrignore (+1/-0)
components.api (+40/-15)
examples/ubuntu-ui-toolkit-gallery/UbuntuShape.qml (+26/-23)
modules/Ubuntu/Components/Themes/Ambiance/ProgressBarStyle.qml (+1/-1)
modules/Ubuntu/Components/plugin/plugin.cpp (+6/-5)
modules/Ubuntu/Components/plugin/plugin.pro (+10/-3)
modules/Ubuntu/Components/plugin/plugin.qrc (+6/-0)
modules/Ubuntu/Components/plugin/shaders/shape.frag (+57/-0)
modules/Ubuntu/Components/plugin/shaders/shape.vert (+43/-0)
modules/Ubuntu/Components/plugin/ucubuntushape.cpp (+1202/-820)
modules/Ubuntu/Components/plugin/ucubuntushape.h (+270/-183)
modules/Ubuntu/Components/plugin/ucubuntushapetexture.h (+4/-4)
tests/resources/ubuntushape/UbuntuShapeTest.qml (+299/-0)
description: | updated |
To post a comment you must log in.
I bumped into this bug too. I'm attaching a test case, where I load a transparent PNG and when the image is loaded you can see that the white background disappears.