-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Support for color definition format beginning with "0x" #7723
Comments
It's not used on the web much, but it seems fair (and harmless) to add it. @arieljake Would you like to write up a PR? |
I'm encountering it when writing three.js code. Yes I will write a PR. |
Marking this no pri/starter bug since it's being worked on by an external contributor. |
I add this format do Regex, fix it to preview in QuickView and InlineColorEditor. I don't know to add output in this format for InlineColorEditor. |
thats where i got stuck too |
I think it should go to extension, not the application main content |
@piotrbrzuska @arieljake The QuickView and InlineColorEditor features both use the |
@redmunds yes, we know it. Check my commit. But RegExp is only a part of this issue. |
@piotrbrzuska Sorry, I missed your commit. Look in the HTML Template for the InlineColorEditor (InlineColorEditor/ColorEditorTemplate.html) and you'll see: <li title="{{COLOR_EDITOR_HEX_BUTTON_TIP}}"><a href="#" tabindex="0" class="hex">Hex</a></li> This is the element that shows up in the InlineColorEditor for the HTML/CSS "Hex" format. Add a similar element for "0x" format. You should be able to find the code for |
@redmunds Where is the ColorEditorTemplete.html located? |
ColorEditor template is in: src/extensions/default/InlineColorEditor/ColorEditorTemplate.html |
@redmunds Like this |
@PlanetVaster That's basically it, but it needs a unique |
So like |
Yes, Then |
What is the status of this? |
Guess i arrived here late... is this issue still open for claiming? |
@KrithikaNarayanan I think this hasn't been fixed / added yet. Feel free to work on it if you'd like to! See the article How to hack on Brackets to get started with the Brackets codebase. If you have any questions, feel free to post them here! We also have a Slack channel for day-to-day communication. (You can join by sending a mail to admin@brackets.io with the subject line |
Hello again. I found myself interested in taking a crack at this issue if that could be approved. :) |
Hi @nyteksf , you don't need anyone's approval to start working on an issue that's not being worked on. Just open a PR (unfinished is absolutely fine) that you're working on this and mention the link here. That will let others will know that the issue is being worked on. |
Hello again. I believe I'm finished with this one. Please do feel free to let me know if any changes need to be made, and I'll be happy to get right on that for you. Thank you. edit: I have also notified those at tinycolor to the lack of and desire for compatibility with 0x formatted colors. |
@nyteksf thank you for filing the issue. |
@ficristo Noob question here, I suppose; being that this is my second PR ever. Could you please elaborate for me just a little about what was meant so I can do that for you all the next time? I already try to always add the issue number to the title and every commit message. Do you mean to also add it to the literal comments I am making much like this one? My bad. Thanks for your help. |
Don't worry about asking, you are welcome. |
#7723 - Adding Support For '0x' Notation Color Format
In the ColorUtils file, I don't see a regex to match colors like this:
0xFFFFFF
Can we add this?
The text was updated successfully, but these errors were encountered: