Skip to content

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.

BUG:445799

Merge request reports