From 6676cf6234e392851c8c09008555bfe9358eb00f Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 12 Jul 2008 06:22:40 +0000 Subject: [PATCH] add adjustable opacity --- src/extension/internal/filter/drop-shadow.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/extension/internal/filter/drop-shadow.h b/src/extension/internal/filter/drop-shadow.h index 7516bacf9..e0785df30 100644 --- a/src/extension/internal/filter/drop-shadow.h +++ b/src/extension/internal/filter/drop-shadow.h @@ -34,15 +34,16 @@ public: "\n" "" N_("Drop Shadow") "\n" "org.inkscape.effect.filter.drop-shadow\n" - "2.0\n" - "4.0\n" - "4.0\n" + "2.0\n" + "50\n" + "4.0\n" + "4.0\n" "\n" "all\n" "\n" "\n" "\n" - "" N_("I hate text") "\n" + "" N_("Black, blurred drop shadow") "\n" "\n" "\n", new DropShadow()); }; @@ -55,18 +56,20 @@ DropShadow::get_filter_text (Inkscape::Extension::Extension * ext) if (_filter != NULL) g_free((void *)_filter); float blur = ext->get_param_float("blur"); + float opacity = ext->get_param_float("opacity") / 100; float x = ext->get_param_float("xoffset"); float y = ext->get_param_float("yoffset"); _filter = g_strdup_printf( "\n" "\n" - "\n" + "\n" + "\n" "\n" "\n" "\n" "\n" - "\n", blur, x, y); + "\n", blur, opacity, x, y); return _filter; }; -- 2.30.2