diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-rough-hatches.cpp | 4 | ||||
| -rw-r--r-- | src/live_effects/parameter/vector.cpp | 7 | ||||
| -rw-r--r-- | src/live_effects/parameter/vector.h | 1 |
3 files changed, 11 insertions, 1 deletions
diff --git a/src/live_effects/lpe-rough-hatches.cpp b/src/live_effects/lpe-rough-hatches.cpp index a6fdde02a..f9ab72373 100644 --- a/src/live_effects/lpe-rough-hatches.cpp +++ b/src/live_effects/lpe-rough-hatches.cpp @@ -246,7 +246,6 @@ LPERoughHatches::LPERoughHatches(LivePathEffectObject *lpeobject) : direction(_("Hatches width and dir"), _("Defines hatches frequency and direction"), "direction", &wr, this, Geom::Point(50,0)), // - //bender(_("Global bending"), _("Relative position to a reference point defines global bending direction and amount"), "bender", &wr, this, NULL, Geom::Point(-5,0)), bender(_("Global bending"), _("Relative position to a reference point defines global bending direction and amount"), "bender", &wr, this, Geom::Point(-5,0)) { registerParameter( dynamic_cast<Parameter *>(&direction) ); @@ -281,6 +280,9 @@ LPERoughHatches::LPERoughHatches(LivePathEffectObject *lpeobject) : // hide the widgets for direction and bender vectorparams direction.widget_is_visible = false; bender.widget_is_visible = false; + // give distinguishing colors to direction and bender on-canvas params + direction.set_oncanvas_color(0x00ff7d00); + bender.set_oncanvas_color(0xffffb500); concatenate_before_pwd2 = false; show_orig_path = true; diff --git a/src/live_effects/parameter/vector.cpp b/src/live_effects/parameter/vector.cpp index 21a7222a6..3e0ac9092 100644 --- a/src/live_effects/parameter/vector.cpp +++ b/src/live_effects/parameter/vector.cpp @@ -137,6 +137,13 @@ VectorParam::set_origin_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mod ori_knot_color = color; } +void +VectorParam::set_oncanvas_color(guint32 color) +{ + vec_knot_color = color; + ori_knot_color = color; +} + class VectorParamKnotHolderEntity_Origin : public KnotHolderEntity { public: VectorParamKnotHolderEntity_Origin(VectorParam *p) : param(p) { } diff --git a/src/live_effects/parameter/vector.h b/src/live_effects/parameter/vector.h index 5d6d1c932..f82affe16 100644 --- a/src/live_effects/parameter/vector.h +++ b/src/live_effects/parameter/vector.h @@ -50,6 +50,7 @@ public: void set_vector_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color); void set_origin_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color); + void set_oncanvas_color(guint32 color); virtual bool providesKnotHolderEntities() { return true; } virtual void addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item); |
