Different border size for each side of the image
Where great if creating a border for the imagen, on this let you define a different size for each side of the image, as in ccs or other. I meant x pixels for top border, y for right one, n for left one…
Blueprint information
Related branches
Related bugs
Bug #386660: Implementation of "Different border size for each side of the image" | Invalid |
Sprints
Whiteboard
Some quick notes:
- def border(image, all, left, right, top, bottom, colour, alpha)
- all is added to every side, so the left border is all+left, and so on ...
- I would first do the top and bottom border (=boxes) and then left and right, so you avoid overlap (which is an issue for transparency)
Please add conditional showing fields with the get_relevant_
You should add as a first field but add _t():
METHODS = ['Fixed','Custom'] #feel free for a better formulation
fields['Method'] = self.Choicefiel
Fixed -> All
Custom -> Left, Top, Down, Right
(I might even myself add a condition to hide the opacity field when all values are positive.)