Elias Naur
3ec0948bba
widget/material: don't scale image when constrained
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-10-17 14:10:49 +02:00
Elias Naur
e2d0b3cfca
layout: invert baseline to measure positive distance from bottom
...
With an inverted baseline, the zero value results in the widget
baseline aligned to its bottom.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-10-16 00:49:52 +02:00
Elias Naur
8da2c9dbb4
widget/material: change Image to take an ImageOp, not an image.Image
...
Using ImageOps directly avoids the image copy by NewImageOp.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-10-14 18:17:30 +02:00
Elias Naur
74407a50d5
op/paint: add NewImageOp, unexport ImageOp fields
...
With public ImageOp fields there was no way to mark an image.Image as modified.
Replace them with NewImageOp that always make a copy, and use the opportunity
to ensure the copy is ready to upload to a GPU texture.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-10-14 18:06:50 +02:00
Elias Naur
abb99eca5c
theme/material: add the material theme
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-10-12 14:36:25 +02:00