set background color as backup, fixes #3919

This commit is contained in:
Ben Fry
2015-09-30 11:36:55 -04:00
parent 0dc2aa0682
commit 31200a154e

View File

@@ -87,6 +87,7 @@ public class EditorFooter extends Box {
int imageW, imageH;
Image gradient;
Color bgColor;
JPanel cardPanel;
CardLayout cardLayout;
@@ -172,6 +173,11 @@ public class EditorFooter extends Box {
updateColor = mode.getColor("footer.updates.color");
gradient = mode.makeGradient("footer", 400, HIGH);
// Set the default background color in case the window size reported
// incorrectly by the OS, or we miss an update event of some kind
// https://github.com/processing/processing/issues/3919
bgColor = mode.getColor("footer.gradient.bottom");
setBackground(bgColor);
}