Class UICustomizer

    • Constructor Detail

      • UICustomizer

        public UICustomizer()
    • Method Detail

      • createColor

        public static Color createColor​(Color color,
                                        int increment)
      • getCloseWindowAccelerator

        public static KeyStroke getCloseWindowAccelerator()
        Alt-F4 for windows, Command-W for mac.
        Returns:
        keystroke
      • getMinimizeWindowAccelerator

        public static KeyStroke getMinimizeWindowAccelerator()
        Command-M for mac.
        Returns:
        keystroke
      • getZoomWindowAccelerator

        public static KeyStroke getZoomWindowAccelerator()
        Command-Ctrl-Z for mac.
        Returns:
        keystroke
      • getUnfocusedSelectedBackgroundColor

        public static Color getUnfocusedSelectedBackgroundColor()
        Returns:
        background color for selected, but not focused items (tree/table cells).
      • getStandardFont

        public static Font getStandardFont()
        Returns the standard font.
        Returns:
        the standard font to use for most UI elements.
      • getLargeBoldFont

        public static Font getLargeBoldFont()
        1.2 x the getStandardFont() and BOLD.
        Returns:
        modified font
      • getOffBlack

        public static Color getOffBlack()
      • getOffWhite

        public static Color getOffWhite()
      • getOffIncrement

        public static int getOffIncrement()
      • getDarkBorder

        public static Color getDarkBorder()
      • getLightBorder

        public static Color getLightBorder()
      • getDividerColor

        public static Color getDividerColor()
      • deriveKeyFont

        public static Font deriveKeyFont​(Font font)
        Derives a font from the given font that can display the bemolle sign (♭).
        Parameters:
        font - font
        Returns:
        key font
      • adjustWindowAppearance

        public static void adjustWindowAppearance​(RootPaneContainer window)
        Adjust the appearance of a window, if possible. E.g. turn the title bar dark.
        Parameters:
        window - window
      • customize

        public void customize​(BeaTunes beaTunes)
        Customizes some items in the PLAF layer.
        Parameters:
        beaTunes - beaTunes
      • setOpaque

        public static void setOpaque​(Container container,
                                     boolean opaque)
        Makes all JComboBoxes and AbstractButtons of a given container opaque.
        Parameters:
        opaque - opaque
        container - container to manipulate
      • paintBackground

        public static void paintBackground​(Graphics graphics,
                                           Container component)
        Paints a themed background.
        Parameters:
        graphics - graphics
        component - component to paint in
      • getAlternativeBackgroundColor

        public static Color getAlternativeBackgroundColor()
      • resetPanelUI

        public static void resetPanelUI()
        Reset the PanelUI to the original looks.
      • resetProgressBarUI

        public static void resetProgressBarUI()
        Reset the indeterminate progressbar UI.
      • customize

        public static void customize​(JScrollPane scrollPane)
        Transforms scroll pane into iApp scroll pane, if the client property "iApp" is set to true.
        Parameters:
        scrollPane - scroll pane