set "present" color properly (fixes #3299)

This commit is contained in:
Ben Fry
2015-05-19 15:06:36 -04:00
parent 9f26ba5120
commit 70fc8c052a
2 changed files with 16 additions and 15 deletions
+12 -11
View File
@@ -219,19 +219,20 @@ public class PreferencesFrame {
});
selector = new ColorChooser(frame, false,
Preferences.getColor("run.present.bgcolor"), Language.text("prompt.ok"),
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
String colorValue = selector.getHexColor();
presentColorHex.setText(colorValue.substring(1));
presentColor.setBackground(new Color(PApplet.unhex(colorValue)));
selector.hide();
}
});
Preferences.getColor("run.present.bgcolor"),
Language.text("prompt.ok"),
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
String colorValue = selector.getHexColor();
colorValue = colorValue.substring(1); // remove the #
presentColorHex.setText(colorValue);
presentColor.setBackground(new Color(PApplet.unhex(colorValue)));
selector.hide();
}
});
presentColor.addMouseListener(new MouseAdapter() {
@Override
public void mouseExited(MouseEvent e) {
frame.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
+4 -4
View File
@@ -1,9 +1,9 @@
0236 (3.0a9)
X Implement Cmd-Q handler on Mac OS X
X https://github.com/processing/processing/issues/3301
X Changing "background color when Presenting" causes Exception
X https://github.com/processing/processing/issues/3299
_ remove "null in initImage()" message
_ Changing "background color when Presenting" causes Exception
_ https://github.com/processing/processing/issues/3299
fixed in 3.0a8
X Full screen window on second monitor without using present mode
@@ -17,6 +17,8 @@ X Initial location of OpenGL window hides the title bar
X https://github.com/processing/processing/issues/2981
X OpenGL sketches do not terminate, have to be killed
X https://github.com/processing/processing/issues/2982
X Quitting P3D sketch throws an error
X https://github.com/processing/processing/issues/3293
high priority
_ displayWidth and displayHeight are zero
@@ -67,8 +69,6 @@ _ implement external messages (moving the window)
opengl
_ Quitting P3D sketch throws an error
_ https://github.com/processing/processing/issues/3293
_ Closing OpenGL sketch from the PDE doesn't stop java.exe process
_ https://github.com/processing/processing/issues/2335
_ why is createShape() implemented 4x (for P2D, P3D, and 2x versions)?