Diffusion Krita 24f97f7d951a

Add Document::setBackgroundColor API

Authored by rempt on May 7 2018, 7:43 AM.

Description

Add Document::setBackgroundColor API

This can be used like this:

from krita import Krita
from PyQt5.QtGui import QColor

kt = Krita.instance()
doc = kt.activeDocument()

test_color = QColor(128, 128, 128, 255) # change as needed

old_background = doc.backGroundColor()
print("Old background: {}".format(old_background.getRgb()))

doc.setBackGroundColor(test_color)

new_background = doc.backGroundColor()
print("New background {}".format(new_background.getRgb()))

Patch by Jeroen Hoolmans, thanks!
fferential Revision: https://phabricator.kde.org/D12729

Details

Committed
remptMay 7 2018, 7:48 AM
Parents
R37:4cbc15c8869a: Move Isolate Mode activation and deactivation into a stroke
Branches
Unknown
Tags
Unknown