- Increase the default size to 40x40 and multiply it by the current window scale factor to have decent preview size. - Make the brush preview always square with a GtkAspectFrame: even though brushes are not necessarily square, this is a much more obvious size rather than letting GTK choose a random allocation size which ends up very weird looking. - Scale down the brush to the biggest possible dimensions which fit the square preview area (if the brush native size is already smaller, I don't scale up though) while keeping aspect ratio: previous implementation was really weird, as we were only seeing a tiny corner of much brushes as we weren't scaling them down. Obviously I use new gimp_brush_get_buffer|mask() functions for this as it supports scaling. - Implement drawing color brushes too: the previous implementation was only drawing the brush mask, which was absolutely not what would be expected for such brushes. - Add a white background behind color brushes with transparency. - Simplify and clean up the code. One of the consequences of this new implementation is obviously that it's mandatory to call gegl_init() when using this widget. |
||
|---|---|---|
| .. | ||
| python-console | ||
| colorxhtml.py | ||
| file-openraster.py | ||
| foggify.py | ||
| gradients-save-as-css.py | ||
| histogram-export.py | ||
| meson.build | ||
| palette-offset.py | ||
| palette-sort.py | ||
| palette-to-gradient.py | ||
| pygimp.interp.in | ||
| python-eval.py | ||
| spyro-plus.py | ||
| test-dialog.py | ||