Reindeer black and form caption

Hello,

I want to make a black form in a VerticalLayout, with the Reindeer black theme.
But when I do that, the form title is in black, so it can’t be read :

(the image is also available in attached file)

I’m using Vaadin 6.4.4 version, maybe is it the problem ?

Here is the code :


public class View extends VerticalLayout{
	TextField login;
	TextField password;
	Button loginButton;
	Button clearButton;
	Button validateButton;
	HorizontalLayout viewLayout;
	Form form;

	public View(){
		login = new TextField("Login");
		login.setWidth("100%");

		password = new TextField("Password");
		password.setSecret(true);
		password.setWidth("100%");

		HorizontalLayout buttons = new HorizontalLayout();
		buttons.setSpacing(true);

		loginButton = new Button("Login");
		loginButton.setClickShortcut(KeyCode.ENTER);
		buttons.addComponent(loginButton);
		clearButton = new Button("Clear");
		buttons.addComponent(clearButton);

		form = new Form();
		form.setCaption("Welcome, please login");
		form.addField("login", login);
		form.addField("password", password);
		
		form.getFooter().addComponent(buttons);
		form.setWidth(200, UNITS_PIXELS);
		this.setWidth(200, UNITS_PIXELS);
		this.setStyleName(Reindeer.LAYOUT_BLACK);
		this.addComponent(form);
		this.setComponentAlignment(form, Alignment.MIDDLE_CENTER);
		this.setHeight(100, Sizeable.UNITS_PERCENTAGE);

		this.setSizeFull();
	}
}

11651.png

Hi,

This was fixed in the 6.6 branch a couple of days ago. You can use a nightly build to test it. The fix will be in the next maintenance release (6.6.1).