I create simple popup
new PopupBuilder("detailResultPopup") {{
childLayoutCenter();
panel(new PanelBuilder() {{
width("50%");
height("50%");
alignCenter();
valignCenter();
onStartScreenEffect(new EffectBuilder("move") {
{
length(400);
inherit();
effectParameter("mode", "in");
effectParameter("direction", "top");
}
});
onEndScreenEffect(new EffectBuilder("move") {
{
length(400);
inherit();
neverStopRendering(true);
effectParameter("mode", "out");
effectParameter("direction", "top");
}
});
onEndScreenEffect(new EffectBuilder("fadeSound") {
{
effectParameter("sound", "credits");
}
});
onActiveEffect(new EffectBuilder("gradient") {
{
effectValue("offset", "0%", "color", "#00000f");
effectValue("offset", "75%", "color", "#00213cff");
effectValue("offset", "100%", "color", "#cccccc");
}
});
onActiveEffect(new EffectBuilder("playSound") {
{
effectParameter("sound", "credits");
}
});
}});
}}.registerPopup(nifty);
Element detailResultPopup = nifty.createPopup("detailResultPopup");
nifty.showPopup(nifty.getCurrentScreen(),detailResultPopup.getId(),null);
Popup is showed but i see gradient of green color instead of gray.
#cccccc = must be gray, but displayed green color. Why?