1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Blue! color scheme changed (and hardcoded in source code to ensure consistency with image files).

This commit is contained in:
David A. Mellis
2005-12-06 11:08:25 +00:00
parent bbec45d3df
commit 0a15403d7c
6 changed files with 38 additions and 10 deletions

View File

@ -106,8 +106,11 @@ public class EditorButtons extends JComponent implements MouseInputListener {
currentRollover = -1;
bgcolor = Preferences.getColor("buttons.bgcolor");
// hardcoding new blue color scheme for consistency with images,
// see EditorStatus.java for details.
//bgcolor = Preferences.getColor("buttons.bgcolor");
bgcolor = new Color(0x04, 0x4F, 0x6F);
status = "";
statusFont = Preferences.getFont("buttons.status.font");

View File

@ -90,8 +90,11 @@ public class EditorHeader extends JComponent {
}
if (backgroundColor == null) {
backgroundColor =
Preferences.getColor("header.bgcolor");
//backgroundColor =
//Preferences.getColor("header.bgcolor");
// hardcoding new blue color scheme for consistency with images,
// see EditorStatus.java for details.
backgroundColor = new Color(0x21, 0x68, 0x86);
textColor[SELECTED] =
Preferences.getColor("header.text.selected.color");
textColor[UNSELECTED] =

View File

@ -52,7 +52,10 @@ public class EditorLineStatus extends JComponent {
this.textarea = textarea;
textarea.editorLineStatus = this;
background = Preferences.getColor("linestatus.bgcolor");
// hardcoding new blue color scheme for consistency with images,
// see EditorStatus.java for details.
//background = Preferences.getColor("linestatus.bgcolor");
background = new Color(0x04, 0x4F, 0x6F);
font = Preferences.getFont("linestatus.font");
foreground = Preferences.getColor("linestatus.color");
high = Preferences.getInteger("linestatus.height");

View File

@ -76,7 +76,19 @@ public class EditorStatus extends JPanel implements ActionListener {
if (bgcolor == null) {
bgcolor = new Color[4];
bgcolor[0] = Preferences.getColor("status.notice.bgcolor");
// Arduino 0003 switched to a blue color scheme to visually distinguish
// itself from Processing. Because the image files for certain interface
// elements (e.g. buttons and tabs) are distributed with the application
// while the preference file that specifies the IDE colors is stored in
// the user's home directory and shared across all versions of Arduino,
// we need to hardcode certain colors here to match the images.
// Otherwise, users who used different multiple versions of the software
// would sometimes see colors that didn't match the interface elements.
// This is a hack and prevents users from customizing the IDE colors,
// however, it obviates the need to provide for version-specific
// preferences.
//bgcolor[0] = Preferences.getColor("status.notice.bgcolor");
bgcolor[0] = new Color(0x54, 0x91, 0x9e);
bgcolor[1] = Preferences.getColor("status.error.bgcolor");
bgcolor[2] = Preferences.getColor("status.prompt.bgcolor");
bgcolor[3] = Preferences.getColor("status.prompt.bgcolor");