Summary: | Opacity slider in template dialog has no effect | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Thomas Zander <zander> |
Component: | General | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Thomas Zander
2006-08-20 17:17:12 UTC
SVN commit 574937 by coppens: Obey the transparancy setting in the custom image dialog. Note that it changes the opacity of the initial layer, not the fill color of it (just like it used to do before, iirc). BUG:132692 M +11 -0 kis_custom_image_widget.cc --- branches/koffice/1.6/koffice/krita/ui/kis_custom_image_widget.cc #574936:574937 @@ -27,6 +27,9 @@ #include "kis_cmb_idlist.h" #include "squeezedcombobox.h" #include "kis_color.h" +#include "kis_image.h" +#include "kis_layer.h" + #include <kcolorcombo.h> #include <kdebug.h> @@ -51,6 +54,7 @@ connect(cmbColorSpaces, SIGNAL(activated(const KisID &)), this, SLOT(fillCmbProfiles(const KisID &))); connect (m_createButton, SIGNAL( clicked() ), this, SLOT (buttonClicked()) ); + m_createButton -> setDefault(true); fillCmbProfiles(cmbColorSpaces->currentItem()); @@ -62,6 +66,13 @@ QColor qc(cmbColor->color()); m_doc->newImage(txtName->text(), (Q_INT32)intWidth->value(), (Q_INT32)intHeight->value(), cs, KisColor(qc, cs), txtDescription->text(), doubleResolution->value()); + KisImageSP img = m_doc->currentImage(); + if (img) { + KisLayerSP layer = img->activeLayer(); + if (layer) { + layer->setOpacity(backgroundOpacity()); + } + } emit documentSelected(); } |