https://bugs.kde.org/show_bug.cgi?id=445799
Dmitry Kazakov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED Latest Commit| |https://invent.kde.org/grap | |hics/krita/commit/d1dd249f9 | |e7e39d01e6cd72f9d475a14e28a | |6333 --- Comment #4 from Dmitry Kazakov <[email protected]> --- Git commit d1dd249f9e7e39d01e6cd72f9d475a14e28a6333 by Dmitry Kazakov. Committed on 15/06/2022 at 09:27. Pushed by dkazakov into branch 'master'. Fix background painting in the predefined brush selector The patch does multiple fixes: 1) Removes a hacky conversion of a PNG brush into a mask brush if the brush is all gray. All-gray brushes can easily be used in lightness mask mode. 2) Implements separator lines in the predefined brush selector and fixes hidpi support in it. 3) Implements checkers background painting for the brushes that support transparency, and therefore, lightness mode. 4) All other brushes are now painted on white background 5) To let the selector know if the brush has transparency, this property is written into the brush'es metadat. To do that, a special class KisBrushTypeMetaDataFixup is implemented. It updates the database, if finds any inconsistent reconrds at the database. M +1 -0 libs/brush/CMakeLists.txt A +58 -0 libs/brush/KisBrushTypeMetaDataFixup.cpp [License: GPL(v2.0+)] A +19 -0 libs/brush/KisBrushTypeMetaDataFixup.h [License: GPL(v2.0+)] M +3 -0 libs/brush/kis_brush.cpp M +2 -0 libs/brush/kis_brush.h M +0 -9 libs/brush/kis_png_brush.cpp M +2 -7 libs/brush/kis_svg_brush.cpp M +2 -0 libs/brush/tests/CMakeLists.txt A +- -- libs/brush/tests/data/bw-alpha-solid.png A +- -- libs/brush/tests/data/bw-alpha-transp.png A +- -- libs/brush/tests/data/bw-no-alpha-solid.png A +- -- libs/brush/tests/data/color-alpha-solid.png A +- -- libs/brush/tests/data/color-alpha-transp.png A +49 -0 libs/brush/tests/kis_png_brush_test.cpp [License: GPL(v2.0+)] A +22 -0 libs/brush/tests/kis_png_brush_test.h [License: GPL(v2.0+)] M +24 -1 libs/resources/KisResourceLoaderRegistry.cpp M +18 -0 libs/resources/KisResourceLoaderRegistry.h M +8 -1 libs/resources/KisResourceLocator.cpp M +1 -0 libs/resources/KisResourceLocator.h M +3 -0 libs/ui/KisApplication.cpp M +48 -8 plugins/paintops/libpaintop/kis_predefined_brush_chooser.cpp https://invent.kde.org/graphics/krita/commit/d1dd249f9e7e39d01e6cd72f9d475a14e28a6333 -- You are receiving this mail because: You are watching all bug changes.
