titleBarBackgroundColor = theme.getColor(10);
titleBarBorderColor = theme.getColor(7);
shadeButtonColor = theme.getColor(7);
shadeButtonBackgroundColor = theme.getColor(4);
borderColor = theme.getColor(7);
padding = new Insets(4);
// Set the derived colors
titleBarBevelColor = TerraTheme.brighten(titleBarBackgroundColor);
titleBarFlowPane = new FlowPane(Orientation.HORIZONTAL);
titleBarFlowPane.getComponentMouseButtonListeners().add(titleBarMouseHandler);
titleBarFlowPane.getStyles().put("horizontalAlignment", HorizontalAlignment.JUSTIFY);
titleBarFlowPane.getStyles().put("verticalAlignment", VerticalAlignment.CENTER);
titleBarFlowPane.getStyles().put("padding", new Insets(3));
titleBarFlowPane.getStyles().put("spacing", 3);
titleFlowPane = new FlowPane(Orientation.HORIZONTAL);
titleFlowPane.getStyles().put("horizontalAlignment", HorizontalAlignment.LEFT);