-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change default tool colors #258
Comments
@DaveSweeton Thank you for recommendation. I'll consider adding 'defaultColor' option with my team. |
I'd need this too |
also need,so do we have a schedule or it's already on some dev branch? |
This is something that makes sense for us too, this is going forward? |
Do we have news about this issue? |
override default values for "draw", "shape", "icon" and "text" when used with UI
Hi there, Usage:
Hope this helps! |
feat: default value for ui-tools (nhn#258)
I also need this feature |
I found a workaround, I'm using the react library and loading the image when my component mounts. Within that action I found out you can set the values then "activate" the menu. editor is a react ref but you should be able to get it with plain JS too.
|
a workaround this, is to make use of the startDrawingMode method so you can create your own color picker or use the tui color picker and then invoke the StartDrawingMode method using your own function, here is how I do it in Vue (Nuxt.js)
drawStyle can be 'FREE_DRAWING' or 'LINE_DRAWING' this code is in Vue (Nuxt.js) but I believe it is fairly similar it React |
@junghwan-park Any update regarding to set the default color for drawing and other menu items ,for example initMenu. |
Version
3.7.0
Development Environment
Firefox, Windows
Current Behavior
The default colors for tools like text and draw shape that allow users to draw are hard coded.
E.g. tui.image-editor/src/js/ui/text.js line 33 hard codes the color as #ffbb3b.
Expected Behavior
I would like an option to override all of the default colors.
I can change colors for programmatic drawing operations, but I want to change the defaults for user drawing operations.
The text was updated successfully, but these errors were encountered: