Skip to content

Changed color of version text in About box #4745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions app/src/processing/app/Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ static public void guardedMain(String args[]) throws Exception {
INSTANCE = new Base(args);
}


static public void initLogger() {
Handler consoleHandler = new ConsoleLogger();
consoleHandler.setLevel(Level.ALL);
consoleHandler.setFormatter(new LogFormatter("%1$tl:%1$tM:%1$tS [%4$7s] %2$s: %5$s%n"));

Logger globalLogger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
globalLogger.setLevel(consoleHandler.getLevel());

// Remove default
Handler[] handlers = globalLogger.getHandlers();
for(Handler handler : handlers) {
Expand All @@ -241,13 +241,13 @@ static public void initLogger() {
for(Handler handler : handlers) {
root.removeHandler(handler);
}

globalLogger.addHandler(consoleHandler);

Logger.getLogger("cc.arduino.packages.autocomplete").setParent(globalLogger);
Logger.getLogger("br.com.criativasoft.cpluslibparser").setParent(globalLogger);
Logger.getLogger(Base.class.getPackage().getName()).setParent(globalLogger);

}


Expand Down Expand Up @@ -1751,7 +1751,7 @@ public void paint(Graphics graphics) {

Font f = new Font("SansSerif", Font.PLAIN, Theme.scale(11));
g.setFont(f);
g.setColor(Color.white);
g.setColor(new Color(0,151,156));
g.drawString(BaseNoGui.VERSION_NAME_LONG, Theme.scale(33), Theme.scale(20));
}
};
Expand Down Expand Up @@ -1949,7 +1949,7 @@ static public void showReference(String prefix, String filename) {
File referenceFile = new File(referenceFolder, filename);
if (!referenceFile.exists())
referenceFile = new File(referenceFolder, filename + ".html");

if(referenceFile.exists()){
openURL(referenceFile.getAbsolutePath());
}else{
Expand Down