Skip to content

Commit 89496cb

Browse files
authored
Update gegleffectspending.c
Giving GEGL Effects Inner Glow its X and Y movability options
1 parent 3d658ba commit 89496cb

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

compile_gegl_effects_here/gegleffectspending.c

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,26 @@ property_color (innergvalue, _("Inner Glow's Color"), "#ff8f00")
434434
description (_("The color of the Inner Glow"))
435435
ui_meta ("visible", "guichange {innerglowbevel}")
436436

437+
property_double (xinnerglow, _("Inner Glow X"), 0.0)
438+
description (_("Horizontal shadow offset"))
439+
ui_range (-15.0, 15.0)
440+
value_range (-15.0, 15.0)
441+
ui_steps (1, 2)
442+
ui_meta ("unit", "pixel-distance")
443+
ui_meta ("axis", "x")
444+
ui_meta ("visible", "guichange {innerglowbevel}")
445+
446+
property_double (yinnerglow, _("Inner Glow Y"), 0.0)
447+
description (_("Vertical shadow offset"))
448+
ui_range (-15.0, 15.0)
449+
value_range (-15.0, 15.0)
450+
ui_steps (1, 2)
451+
ui_meta ("unit", "pixel-distance")
452+
ui_meta ("axis", "y")
453+
ui_meta ("visible", "guichange {innerglowbevel}")
454+
455+
456+
437457

438458
property_double (fixoutline, _("Inner Glow's unmodified pixel fix"), 75)
439459
value_range (50, 85)
@@ -442,6 +462,8 @@ property_double (fixoutline, _("Inner Glow's unmodified pixel fix"), 75)
442462

443463

444464

465+
466+
445467
property_boolean (gradient, _("Enable Gradient"), FALSE)
446468
description (_("Whether to add Gradient overlay"))
447469
ui_meta ("visible", "guichange {imagegradient}")
@@ -1082,6 +1104,8 @@ lchcolorig = gegl_node_new_child (gegl,
10821104
gegl_operation_meta_redirect (operation, "innergopacity", innerglow, "opacity");
10831105
gegl_operation_meta_redirect (operation, "innergvalue", innerglow, "value2");
10841106
gegl_operation_meta_redirect (operation, "fixoutline", innerglow, "fixoutline");
1107+
gegl_operation_meta_redirect (operation, "xinnerglow", innerglow, "x");
1108+
gegl_operation_meta_redirect (operation, "yinnerglow", innerglow, "y");
10851109
gegl_operation_meta_redirect (operation, "start_x", gradient, "start-x");
10861110
gegl_operation_meta_redirect (operation, "start_y", gradient, "start-y");
10871111
gegl_operation_meta_redirect (operation, "end_x", gradient, "end-x");
@@ -1112,6 +1136,7 @@ lchcolorig = gegl_node_new_child (gegl,
11121136
gegl_operation_meta_redirect (operation, "thinboldenable", thinbold, "radius");
11131137
gegl_operation_meta_redirect (operation, "thinboldap", thinbold, "alpha-percentile");
11141138
gegl_operation_meta_redirect (operation, "knockout", opacityinput, "value");
1139+
11151140

11161141

11171142

0 commit comments

Comments
 (0)