From 9d8d88e956d9bfe17160a105cba7787925bc051c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 17 May 2008 22:55:14 +0000 Subject: New paintarea background. Background now also editable. --- sources/prefs/VSDefaultPrefs.java | 1 + sources/simulator/VSSimulation.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'sources') diff --git a/sources/prefs/VSDefaultPrefs.java b/sources/prefs/VSDefaultPrefs.java index 13a0167..0534dd2 100644 --- a/sources/prefs/VSDefaultPrefs.java +++ b/sources/prefs/VSDefaultPrefs.java @@ -164,6 +164,7 @@ public class VSDefaultPrefs extends VSPrefs { public void fillDefaultColors() { /* Internal prefs */ + initColor("paintarea.background", new Color(0xFF, 0xFB, 0xEF)); initColor("process.default", new Color(0x00, 0x00, 0x00)); initColor("process.running", new Color(0x0D, 0xD8, 0x09)); initColor("process.crashed", new Color(0xff, 0x00, 0x00)); diff --git a/sources/simulator/VSSimulation.java b/sources/simulator/VSSimulation.java index 89cd873..ab12773 100644 --- a/sources/simulator/VSSimulation.java +++ b/sources/simulator/VSSimulation.java @@ -166,7 +166,7 @@ public class VSSimulation extends VSFrame implements ActionListener { simulationPanel = new VSSimulationPanel(prefs, this, logging); logging.setSimulationPanel(simulationPanel); - simulationPanel.setBackground(new Color(0xFD, 0xFC, 0xF7)); + simulationPanel.setBackground(prefs.getColor("paintarea.background"));//new Color(0xFD, 0xFC, 0xF7)); //processEditPanel = createProcessEditPanel(); JScrollPane paintScrollPane = new JScrollPane(simulationPanel); -- cgit v1.2.3