gwt-material icon indicating copy to clipboard operation
gwt-material copied to clipboard

Custom colors

Open fzamagni opened this issue 5 years ago • 1 comments

Hi. I'm migrating my application from GMD 1.6.2 to GMD 2.2. I had my own custom colors, directly into the ui.xml file, like this:

<m:MaterialPanel backgroundColor="blu-VM">

where blu-VM is a CSS style:

.blu-VM {
	background-color:#0F3556;
}

Now it doesn't work anymore, and I didn't find an how-to example. I don't want to replace all occurrence from ui.xml to programmatically instructions, if I can. Can anyone help me? Thanks in advance.

P.S.: it's not properly an issue: maybe it's a explanation request.

fzamagni avatar Nov 20 '19 15:11 fzamagni

The backgroundColor property param is enum but I think there's a benefit of using string too but Im not sure how we handle both enum and string in the UiBinder. Will add this feature request on 2.4.

kevzlou7979 avatar Jan 07 '20 03:01 kevzlou7979