Package games.stendhal.client.gui.styled

Examples of games.stendhal.client.gui.styled.Style


    fontBox.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(),
        BorderFactory.createEmptyBorder(pad, pad, pad, pad)));
   
    // There seems to be no good way to change the default background color
    // of all components. The color is needed for making the etched border.
    Style style = StyleUtil.getStyle();
    if (style != null) {
      fontBox.setBackground(style.getPlainColor());
    }
   
    JCheckBox fontToggle = new JCheckBox("Custom Decorative Font");
    fontToggle.setToolTipText("Set a custom font for the travel log and achievements");
    fontBox.add(fontToggle);
View Full Code Here


 
  /**
   * Apply Stendhal style to all components.
   */
  private void applyStyle() {
    Style style = StyleUtil.getStyle();
    if (style != null) {
      // Labels (Images). Making all JLabels bordered would be undesired
      jlblBodies.setBorder(style.getBorderDown());
      jlblClothes.setBorder(style.getBorderDown());
      jlblFinalResult.setBorder(style.getBorderDown());
      jlblHairs.setBorder(style.getBorderDown());
      jlblHeads.setBorder(style.getBorderDown());
    }
  }
View Full Code Here

    /*
     * Use proper style if defined. If someone's using a different theme we
     * don't have a nice background, but the client should not crash anyway.
     * Those get just a white background.
     */
    Style style = StyleUtil.getStyle();
    if (style != null) {
      style.getBackground().draw(g, 0, 0);
      g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f));
    }
    g.setColor(Color.WHITE);
    g.fillRect(0, 0, TITLEBAR_HEIGHT, TITLEBAR_HEIGHT);
    g.dispose();
View Full Code Here

TOP

Related Classes of games.stendhal.client.gui.styled.Style

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.