EYE DROPPER: Added some buttons and Copy Color as HEX
Hello everyone, I thought I would pull a Bulia and drop some features. When doing web design and pre-layout, I found it annoying that I could'nt get the hex value of colors, so I added a "Copy as Hex" button when using the eye dropper to get a color value. This way, one can quickly paste that into whatever web page they are working on...In the meantime I did a few other tasks. There are a few things still necessary to be done, but I wanted to report as I can't spend anymore time on it right now...I need to make some money...
Made controls for Eye Dropper available on the auxiliary toolbar.
* Added entry boxes for hex values of last selected color and opacity.
* Added "Copy as RGBA" button that copies last selected color as RGBA value to the clipboard
* Added "Copy as HEX" button that copies the last selected color as a HEX value (useful for web work where hex values are needed)
* Added toggle switch option to select current color as visible on screen without alpha. When not toggled, then the current color and opacity as represented with alpha becomes the stored desktop value.
* Removed the aforementioend option from the application preferences menu, as it is now available via the dropper auxiliary toolbar.
What still needs to be done:
1.) I made an icon for the toggled value for Picking a color, I think called "pick_color" in icons.svg. I couldn't come up with a good one, so maybe someone could come up with a better icon to replace the crappy one I did for the toggle button.
2.) I need to fix HEX values that are copied when the option to pick color with alpha is selected. I know how to fix, but just don't have time right now to do...it is a simple thing...but I'm slow right now.
3.) I'm sure there are some things I missed since I did this quickly. Please email/fix/post bugs about...
Thanks,
Jon
On Mon, 21 Mar 2005 20:57:32 -0800, Jon Phillips <jon@...763...> wrote:
Hello everyone, I thought I would pull a Bulia and drop some features. When doing web design and pre-layout, I found it annoying that I could'nt get the hex value of colors, so I added a "Copy as Hex" button when using the eye dropper to get a color value.
Actually you could always do this just by pressing Ctrl+C, which will copy the color under cursor. What would your button copy? The color you have last selected? So you must click the color first (making sure nothing is selected, to avoid repainting), then go to the toolbar and click the copy button. Two clicks instead of one shortcut.
- Added entry boxes for hex values of last selected color and opacity.
Why show them as text and make them editable? They change nothing, so the editability is confusing. Better make a stack of recently clicked colors, shown as swatches.
- Added "Copy as RGBA" button that copies last selected color as RGBA
value to the clipboard
- Added "Copy as HEX" button that copies the last selected color as a
HEX value (useful for web work where hex values are needed)
This is very confusing. They are _both_ hex. The only difference is that the first copies f3626200 while the second f36262 without alpha. Do we really need them both? If so can you suggest better names?
- Added toggle switch option to select current color as visible on
screen without alpha. When not toggled, then the current color and opacity as represented with alpha becomes the stored desktop value.
- Removed the aforementioend option from the application preferences
menu, as it is now available via the dropper auxiliary toolbar.
That's very confusing too. Previously there were two options, both explained clearly. You replaced them with a single toggle button whose tooltip explains only ONE option. What's the opposite of "pick visible color"? "Pick invisible color"? :)
Please restore this as a two-way switch (two radio buttons or toggle buttons) with _both_ options explained.
3.) I'm sure there are some things I missed since I did this quickly. Please email/fix/post bugs about...
It's good for the start, just don't leave it in the unfinished state. Please address the above issues before adding more functionality.
On Tue, 2005-03-22 at 01:32 -0400, bulia byak wrote:
On Mon, 21 Mar 2005 20:57:32 -0800, Jon Phillips <jon@...763...> wrote:
Hello everyone, I thought I would pull a Bulia and drop some features. When doing web design and pre-layout, I found it annoying that I could'nt get the hex value of colors, so I added a "Copy as Hex" button when using the eye dropper to get a color value.
Actually you could always do this just by pressing Ctrl+C, which will copy the color under cursor. What would your button copy? The color you have last selected? So you must click the color first (making sure nothing is selected, to avoid repainting), then go to the toolbar and click the copy button. Two clicks instead of one shortcut.
Not everyone is as smart as you to know these magical shortcuts, even with documentation. They are helpful for new users and for getting last selected color.
- Added entry boxes for hex values of last selected color and opacity.
Why show them as text and make them editable? They change nothing, so the editability is confusing. Better make a stack of recently clicked colors, shown as swatches.
Right, that is a good idea. I guess I can just make them labels for now, and then add swatches later....no need for input boxes.
- Added "Copy as RGBA" button that copies last selected color as RGBA
value to the clipboard
- Added "Copy as HEX" button that copies the last selected color as a
HEX value (useful for web work where hex values are needed)
This is very confusing. They are _both_ hex. The only difference is that the first copies f3626200 while the second f36262 without alpha. Do we really need them both? If so can you suggest better names?
Well, the thinking behind this is the first is the RGBA value used in various places like the Fill & Stroke dialog. The Copy as HEX is to copy for use on web sites. Maybe it should be Copy for Web, or something rather than Copy as HEX.
- Added toggle switch option to select current color as visible on
screen without alpha. When not toggled, then the current color and opacity as represented with alpha becomes the stored desktop value.
- Removed the aforementioend option from the application preferences
menu, as it is now available via the dropper auxiliary toolbar.
That's very confusing too. Previously there were two options, both explained clearly. You replaced them with a single toggle button whose tooltip explains only ONE option. What's the opposite of "pick visible color"? "Pick invisible color"? :)
Right, I didn't think about that quite so intensely.
Please restore this as a two-way switch (two radio buttons or toggle buttons) with _both_ options explained.
Okay, I will replace with both options explained. But do you all agree this should then stay off the application preferences dialog? I don't think it should be in two locations.
3.) I'm sure there are some things I missed since I did this quickly. Please email/fix/post bugs about...
It's good for the start, just don't leave it in the unfinished state. Please address the above issues before adding more functionality.
I will and thanks for the comments...also, would be interested in comments on further unearthing of needs for that tool, while I'm in there working on that....might as well just knock them out.
Jon
SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On Mon, 2005-03-21 at 21:48 -0800, Jon Phillips wrote:
On Tue, 2005-03-22 at 01:32 -0400, bulia byak wrote:
On Mon, 21 Mar 2005 20:57:32 -0800, Jon Phillips <jon@...763...> wrote:
Hello everyone, I thought I would pull a Bulia and drop some features. When doing web design and pre-layout, I found it annoying that I could'nt get the hex value of colors, so I added a "Copy as Hex" button when using the eye dropper to get a color value.
Actually you could always do this just by pressing Ctrl+C, which will copy the color under cursor. What would your button copy? The color you have last selected? So you must click the color first (making sure nothing is selected, to avoid repainting), then go to the toolbar and click the copy button. Two clicks instead of one shortcut.
Not everyone is as smart as you to know these magical shortcuts, even with documentation. They are helpful for new users and for getting last selected color.
I just reread my reply to this and wanted to apologize to Bulia for this bad wording. I didn't mean to be rude with that comment. I meant to say, that users might not be as well informed as some of the more experienced users. Also, it is helpful to unearth some features like this which can really help some tasks like web page design, etc. Yes, there are many shortcuts, but after watching my girlfriend use Inkscape, especially after usign Illustrator, I notice how much she uses the menu and buttons and does not use shortcuts.
Jon
<snip />
+----[ Jon Phillips <jon@...235...> (22.Mar.2005 04:08): | [snipped]
Hi!,
please allow me to chime in here,
| Yes, there are many shortcuts, but after watching my | girlfriend use Inkscape, especially after usign | Illustrator, I notice how much she uses the menu and | buttons and does not use shortcuts. | | Jon | | <snip /> | +----]
I am always a beginner with respect to drawing and graphics, and have used Illustrator for a long time (and I still do on my old Power Macintosh 7200). I also use the menu and buttons _mostly_ but once I had the opportunity to see a professional work in Illustrator, and he was <boldface>constantly</boldface> using shortcuts. And his speed at work was amazing. Not only this made me look for and learn more shortcuts, I also learned that there are some things which you can't do without shortcuts, at least in my version of Illustrator (lots of path editing actions need clicking with one or more key pressed, and these have no button/menu counterpart).
Perhaps you already know this, so bare with me if I write it again, visual/GUI apps should be easy to use for the beginner or casual user (menus, buttons) but should also provide the expert/professional user with speed, flexibility and power (i.e. a flood of shortcuts).
Hey, even vim has a GUI with menus :)
Fernan
Jon,
I think the ideal dropper toolbar should contain only:
1 a stack of swatches, of configurable length (default e.g. 10), each swatch representing a color that was set on anything by any means (just intercept the set_style signal). Each swatch can be right-clicked for a menu which would have the two commands:
-- Copy RGB (hex) -- Copy RGBA (hex)
2 _two_ toggle buttons for the two modes of operation, each with its own tooltip.
This will give maximum functionality and intuitiveness in minimum space.
Also, please fix the warnings in your code:
toolbox.h:45: warning: 'void sp_dropper_copy(GtkWidget*, GtkObject*)' declared `static' but never defined toolbox.h:47: warning: 'void sp_dropper_copy_as_hex(GtkWidget*, GtkObject*)' declared `static' but never defined
On Wed, 2005-03-23 at 04:53 -0400, bulia byak wrote:
Jon,
I think the ideal dropper toolbar should contain only:
Very good ideas...I will hopefully get to this weekend.
1 a stack of swatches, of configurable length (default e.g. 10), each swatch representing a color that was set on anything by any means (just intercept the set_style signal). Each swatch can be right-clicked for a menu which would have the two commands:
-- Copy RGB (hex) -- Copy RGBA (hex)
Okay, already intercepting that signal, so just have to put those into a queue and add swatches for each color.
2 _two_ toggle buttons for the two modes of operation, each with its own tooltip.
Right, well, the option is 0 or 1, so either on toggle or two radios would be good. You don't like the way I updated the toggle with text? 2 toggles wouldn't work because it is either, but not both.
This will give maximum functionality and intuitiveness in minimum space.
Also, please fix the warnings in your code:
toolbox.h:45: warning: 'void sp_dropper_copy(GtkWidget*, GtkObject*)' declared `static' but never defined toolbox.h:47: warning: 'void sp_dropper_copy_as_hex(GtkWidget*, GtkObject*)' declared `static' but never defined
Oops...will do...Thanks for your recommendations...I appreciate.
Jon
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (3)
-
bulia byak
-
Fernan Aguero
-
Jon Phillips