Fixed background color in some node editor windows to fit with a dark theme

experimental
Nehon 10 years ago
parent 4b079ea480
commit 2066c98dd0
  1. 1
      sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddNodeDialog.form
  2. 2
      sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddNodeDialog.java

@ -8,6 +8,7 @@
</Properties> </Properties>
<SyntheticProperties> <SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/> <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties> </SyntheticProperties>
<AuxValues> <AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>

@ -204,7 +204,7 @@ public class AddNodeDialog extends javax.swing.JDialog {
private void createDoc(ShaderNodeDefinition def) { private void createDoc(ShaderNodeDefinition def) {
JTextPane doc = new JTextPane(); JTextPane doc = new JTextPane();
doc.setEditable(false); doc.setEditable(false);
doc.setBackground(new java.awt.Color(240, 240, 240)); //doc.setBackground(new java.awt.Color(240, 240, 240));
doc.setMaximumSize(new java.awt.Dimension(300, 300)); doc.setMaximumSize(new java.awt.Dimension(300, 300));
doc.setMinimumSize(new java.awt.Dimension(300, 300)); doc.setMinimumSize(new java.awt.Dimension(300, 300));
doc.setPreferredSize(new java.awt.Dimension(300, 300)); doc.setPreferredSize(new java.awt.Dimension(300, 300));

Loading…
Cancel
Save