How do I go about changing the default wpaint settings for the image annotation control. The colours for the text entry don't work, the background of the text entry box is white and the default fill colour that is used for the text being entered is also white. I really don't like the default yellow colour for the lines either.
Is there a way to configure the defaults when I add the control to a template? thanks. |
Administrator
|
Hi Brian,
You could update wpaint.coffee to set other defaults. This would need to be done where the wPaint is initialized: https://github.com/orbeon/orbeon-forms/blob/tag-release-4.8.2-ce/src/resources-packaged/xbl/orbeon/wpaint/wpaint.coffee#L64 And there, you would add something as follows to set the default line color and text color to black: strokeStyle : '#000000' fillStyle : '#000000' Alex On Mon, Apr 20, 2015 at 12:56 AM, bwallis42 <[hidden email]> wrote: > How do I go about changing the default wpaint settings for the image > annotation control. The colours for the text entry don't work, the > background of the text entry box is white and the default fill colour that > is used for the text being entered is also white. I really don't like the > default yellow colour for the lines either. > > Is there a way to configure the defaults when I add the control to a > template? > > thanks. > > > -- > View this message in context: http://discuss.orbeon.com/Image-annotation-configuring-wPaint-tp4659819.html > Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. > To post to this group, send email to [hidden email]. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Could I make that change to a copy of wpaint.coffee and have the copy loaded first from an external location?
This isn't quite what I was hoping for. Configuration of the initial values would be nice on a per instance basis so different forms with different images could have different settings. |
Administrator
|
Hi Brian,
You can change wpaint.coffee, generate the corresponding JavaScript (e.g. simply with the "Try CoffeeScript" on http://coffeescript.org/), and put that wpaint.js in WEB-INF/resources/xbl/orbeon/wpaint/wpaint.js. That version will override the version bundled with Orbeon Forms in a jar file. Alex On Tue, Apr 21, 2015 at 6:38 PM, bwallis42 <[hidden email]> wrote: > Could I make that change to a copy of wpaint.coffee and have the copy loaded > first from an external location? > > This isn't quite what I was hoping for. Configuration of the initial values > would be nice on a per instance basis so different forms with different > images could have different settings. > > -- > View this message in context: http://discuss.orbeon.com/Image-annotation-configuring-wPaint-tp4659819p4659825.html > Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. > To post to this group, send email to [hidden email]. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |