titleBarBorderColor = theme.getColor(13);
inactiveTitleBarColor = theme.getColor(7);
inactiveTitleBarBackgroundColor = theme.getColor(9);
inactiveTitleBarBorderColor = theme.getColor(7);
contentBorderColor = theme.getColor(7);
padding = new Insets(8);
resizable = true;
// Set the derived colors
titleBarBevelColor = TerraTheme.brighten(titleBarBackgroundColor);
inactiveTitleBarBevelColor = TerraTheme.brighten(inactiveTitleBarBackgroundColor);
// The title bar flow pane contains two nested flow panes: one for
// the title contents and the other for the buttons
titleBarFlowPane.add(titleFlowPane);
titleBarFlowPane.add(frameButtonFlowPane);
titleBarFlowPane.getStyles().put("horizontalAlignment", HorizontalAlignment.JUSTIFY);
titleBarFlowPane.getStyles().put("verticalAlignment", VerticalAlignment.CENTER);
titleBarFlowPane.getStyles().put("padding", new Insets(2));
// Initialize the title flow pane
titleFlowPane.add(iconImageView);
titleFlowPane.add(titleLabel);
titleFlowPane.getStyles().put("verticalAlignment", VerticalAlignment.CENTER);