[BasicUI] Fix label color initialization for color widget (#1753)

Fix #1752

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
pull/1751/head^2
lolodomo 2023-03-04 22:24:22 +01:00 committed by GitHub
parent 7553748c78
commit 66b55547a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 14 deletions

View File

@ -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();

View File

@ -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