Skip to content

Instantly share code, notes, and snippets.

@Sciss
Created February 17, 2012 15:09
Show Gist options
  • Save Sciss/1853961 to your computer and use it in GitHub Desktop.
Save Sciss/1853961 to your computer and use it in GitHub Desktop.
NimbusTheme.java
package ;
import javax.swing.*;
import java.awt.*;
// the problem is, NimbusThemeCreater misses keys which seem to be used,
// e.g. Button[Enabled].textForeground, and so forth.
public class NimbusTheme {
public static void loadTheme() {
UIManager.put("text", new Color(0xfffefe));
UIManager.put("nimbusSelectionBackground", new Color(0x58a2d6));
UIManager.put("nimbusBlueGrey", new Color(0x474d59));
UIManager.put("CheckBox.foreground", new Color(0xfffefe));
UIManager.put("nimbusDisabledText", new Color(0x8e8f91));
UIManager.put("nimbusBorder", new Color(0x5c6370));
UIManager.put("nimbusSelectedText", new Color(0x10101));
UIManager.put("nimbusLightBackground", new Color(0x21242b));
UIManager.put("control", new Color(0x21242b));
UIManager.put("Button.contentMargins", new Insets(6, 14, 6, 14));
UIManager.put("desktop", new Color(0x3d7956));
UIManager.put("nimbusInfoBlue", new Color(0x2f5cb4));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment