[BasicUI] Fix label color initialization for color widget (#1753)
Fix #1752 Signed-off-by: Laurent Garnier <lg.hc@free.fr>pull/1751/head^2
parent
7553748c78
commit
66b55547a4
|
@ -89,19 +89,8 @@ public class ColorpickerRenderer extends AbstractWidgetRenderer {
|
|||
snippet = snippet.replace("%frequency%", frequency);
|
||||
snippet = snippet.replace("%servletname%", WebAppServlet.SERVLET_PATH);
|
||||
|
||||
String style = "";
|
||||
String color = itemUIRegistry.getLabelColor(w);
|
||||
if (color != null) {
|
||||
style = "color:" + color;
|
||||
}
|
||||
snippet = snippet.replace("%labelstyle%", style);
|
||||
|
||||
style = "";
|
||||
color = itemUIRegistry.getValueColor(w);
|
||||
if (color != null) {
|
||||
style = "color:" + color;
|
||||
}
|
||||
snippet = snippet.replace("%valuestyle%", style);
|
||||
// Process the color tags
|
||||
snippet = processColor(w, snippet);
|
||||
|
||||
sb.append(snippet);
|
||||
return ECollections.emptyEList();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<span class="mdl-form__icon">
|
||||
%icon_snippet%
|
||||
</span>
|
||||
<span class="mdl-form__label">
|
||||
<span %labelstyle% class="mdl-form__label">
|
||||
%label%
|
||||
</span>
|
||||
<div
|
||||
|
|
Loading…
Reference in New Issue