public static void setupUI()
    {
      Exception exception;
      try
      {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        goto label_5;
      }
      catch (Exception ex)
      {
        int num = 0;
        M0 m0 = ByteCodeHelper.MapException<Exception>(ex, (ByteCodeHelper.MapFlags) num);
        if (m0 == null)
          throw;
        else
          exception = (Exception) m0;
      }
      Throwable.instancehelper_printStackTrace((Exception) exception);
label_5:
      UIDefaults defaults = UIManager.getDefaults();
      defaults.put((object) "PopupMenu.border", (object) new BorderUIResource.EtchedBorderUIResource(0, defaults.getColor((object) "controlShadow"), defaults.getColor((object) "controlLtHighlight")));
      MatteBorder matteBorder = new MatteBorder(1, 1, 1, 1, (Color) Color.black);
      BorderUIResource.CompoundBorderUIResource borderUiResource1 = new BorderUIResource.CompoundBorderUIResource((Border) new MatteBorder(2, 2, 2, 2, defaults.getColor((object) "control")), (Border) matteBorder);
      BorderUIResource.EmptyBorderUIResource borderUiResource2 = new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0);
      defaults.put((object) "SplitPane.border", (object) borderUiResource2);
      defaults.put((object) "Table.scrollPaneBorder", (object) borderUiResource2);
      defaults.put((object) "ComboBox.border", (object) borderUiResource1);
      defaults.put((object) "TextField.border", (object) borderUiResource1);
      defaults.put((object) "TextArea.border", (object) borderUiResource1);
      defaults.put((object) "CheckBox.border", (object) borderUiResource1);
      defaults.put((object) "ScrollPane.border", (object) borderUiResource2);
    }
Beispiel #2
0
	  protected internal virtual void installDefaults()
	  {
		Color color = this.popupPanel.Background;
		if (color == null || color is javax.swing.plaf.UIResource)
		{
		  this.popupPanel.Background = FlamingoUtilities.getColor(Color.lightGray, new string[] {"PopupPanel.background", "Panel.background"});
		}
		Border border = this.popupPanel.Border;
		if (border == null || border is javax.swing.plaf.UIResource)
		{
		  Border border1 = UIManager.getBorder("PopupPanel.border");
		  if (border1 == null)
		  {
			border1 = new BorderUIResource.CompoundBorderUIResource(new LineBorder(FlamingoUtilities.BorderColor), new EmptyBorder(1, 1, 1, 1));
		  }
		  this.popupPanel.Border = border1;
		}
		LookAndFeel.installProperty(this.popupPanel, "opaque", true);
	  }