Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java @ 1353:fd408dfbd3b8
Convert all color attributes from html to rgb notation.
flys-client/trunk@3029 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 19 Oct 2011 11:44:41 +0000 |
parents | fb224f54c643 |
children | 5327ca0f13d1 |
comparison
equal
deleted
inserted
replaced
1352:01b18db3b288 | 1353:fd408dfbd3b8 |
---|---|
397 */ | 397 */ |
398 protected final void setNewValue(String name, String value) { | 398 protected final void setNewValue(String name, String value) { |
399 Theme t = facet.getTheme(); | 399 Theme t = facet.getTheme(); |
400 Style s = attributes.getStyle(t.getFacet(), t.getIndex()); | 400 Style s = attributes.getStyle(t.getFacet(), t.getIndex()); |
401 StyleSetting set = s.getSetting(name); | 401 StyleSetting set = s.getSetting(name); |
402 if(name.equals("linecolor")) { | 402 if(name.indexOf("color") != -1) { |
403 value = htmlToRgb(value); | 403 value = htmlToRgb(value); |
404 } | 404 } |
405 set.setDefaultValue(value); | 405 set.setDefaultValue(value); |
406 } | 406 } |
407 } | 407 } |