Hex Color Values of Named Colors in CSS Editor

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Eric Clayberg, Konstantin.Scheglov, gnebling, Alexander.Mitin

Hex Color Values of Named Colors in CSS Editor

Postby jcmorris-mts » Sat Sep 27, 2008 10:53 am

Hi Eric,

When using the CSS Editor to select colors, I do not see the option to edit/add named colors using their hexadecimal values instead of the common names.
Sometimes, the colors in the named color pallet are desirable for aesthetic reasons, but I'd still prefer to have the hex value.
Is there a GTW Designer preference for this somewhere?

Cheers,
Jason
jcmorris-mts
 
Posts: 25
Joined: Wed Feb 06, 2008 12:16 pm

Re: Hex Color Values of Named Colors in CSS Editor

Postby Eric Clayberg » Sat Sep 27, 2008 11:15 am

jcmorris-mts wrote:When using the CSS Editor to select colors, I do not see the option to edit/add named colors using their hexadecimal values instead of the common names.
Sometimes, the colors in the named color pallet are desirable for aesthetic reasons, but I'd still prefer to have the hex value.
Is there a GTW Designer preference for this somewhere?

You can enter hex values into any Color field in the CSS editor rather than choosing named colors in the color chooser.
Eric Clayberg
V.P. of Product Development
Instantiations, Inc.
http://www.instantiations.com

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com

WindowBuilder Pro: Winner of the 2009 Best Commercial Eclipse Developer Tool Award
Eric Clayberg
Moderator
 
Posts: 3812
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

UPDATE Re: Hex Color Values of Named Colors in CSS Editor

Postby jcmorris-mts » Tue Oct 07, 2008 12:30 pm

Hi Eric,

You missed my point :-)
The color pallet formed by the named colors is aesthetically pleasing and thus convenient to use, however the latest version of CSS seems to not validate against most named colors (i.e. CSS 2.1). Rather than remember that "light gray" is #D3D3D3, I'd like to select "light gray" from the pallet but have GWT Designer put #D3D3D3 in the property value. The hex value will always work, whereas the named color string may or may not.

There should be some user option that always inserts colors as hex values regardless of how they are selected from the color pallets so that we don't have to manually look up the hex equivalent of a named color and type it in.

Cheers,
Jason
Morris Technical Solutions LLC
jcmorris-mts
 
Posts: 25
Joined: Wed Feb 06, 2008 12:16 pm

Re: UPDATE Re: Hex Color Values of Named Colors in CSS Editor

Postby Eric Clayberg » Wed Oct 08, 2008 9:32 am

The latest build now provides this option.

gwt-prefs.png
Designer > GWT Preferences
gwt-prefs.png (57.9 KiB) Viewed 1028 times
Eric Clayberg
V.P. of Product Development
Instantiations, Inc.
http://www.instantiations.com

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com

WindowBuilder Pro: Winner of the 2009 Best Commercial Eclipse Developer Tool Award
Eric Clayberg
Moderator
 
Posts: 3812
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Hex Color Values of Named Colors in CSS Editor

Postby jcmorris-mts » Sat Oct 11, 2008 10:47 am

Hi Eric,

Thanks very much!

Cheers,
Jason
jcmorris-mts
 
Posts: 25
Joined: Wed Feb 06, 2008 12:16 pm

Re: Hex Color Values of Named Colors in CSS Editor

Postby Eric Clayberg » Sat Oct 11, 2008 4:16 pm

Hopefully, it will do what you want.
Eric Clayberg
V.P. of Product Development
Instantiations, Inc.
http://www.instantiations.com

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com

WindowBuilder Pro: Winner of the 2009 Best Commercial Eclipse Developer Tool Award
Eric Clayberg
Moderator
 
Posts: 3812
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Hex Color Values of Named Colors in CSS Editor

Postby Eric Clayberg » Thu May 14, 2009 3:44 am

Sorry, but that is a question better directed to Google's GWT forum or some general CSS forum.
Eric Clayberg
V.P. of Product Development
Instantiations, Inc.
http://www.instantiations.com

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com

WindowBuilder Pro: Winner of the 2009 Best Commercial Eclipse Developer Tool Award
Eric Clayberg
Moderator
 
Posts: 3812
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: Google [Bot] and 2 guests