From 5fc58f7742ecc92726bb7f7a4c8d26936be616d7 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Fri, 14 Jan 2022 08:16:15 -0500 Subject: [PATCH] notes about how to use theme update --- build/shared/changes.md | 4 +++- .../src/processing/app/tools/ThemeEngine.java | 9 +++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/build/shared/changes.md b/build/shared/changes.md index 52d83f1ed..b92775929 100644 --- a/build/shared/changes.md +++ b/build/shared/changes.md @@ -2,12 +2,14 @@ * Revision 1278 – 14 January 2022* -We've moved to Java 17, fixed lots of bugs, added a new default color scheme, and implemented better support for multiple windows with OpenGL. +We've moved to Java 17, fixed lots of bugs, added a new default color scheme, and implemented better support for multiple windows with OpenGL. We even updated the loading screen to include 2022. The new color scheme is a placeholder, just like the last one: we've done major work in this release to make it possible to customize the UI in Processing, and we have some exciting updates on that to share in future releases. For this round, we just wanted some neutral defaults. +You can now customize the color scheme by selecting Tools → Update Theme. This will create a `theme.txt` file in your sketchbook, which you can edit. After you've saved your changes, select “Update Theme” again to see the changes reflected in the interface. + ## Fixing the bugs that won't fix themselves diff --git a/build/shared/tools/ThemeEngine/src/processing/app/tools/ThemeEngine.java b/build/shared/tools/ThemeEngine/src/processing/app/tools/ThemeEngine.java index 49322d29d..bc2bf5849 100644 --- a/build/shared/tools/ThemeEngine/src/processing/app/tools/ThemeEngine.java +++ b/build/shared/tools/ThemeEngine/src/processing/app/tools/ThemeEngine.java @@ -11,8 +11,7 @@ public class ThemeEngine implements Tool { Base base; public String getMenuTitle() { - //return Language.text("theme_engine"); - return "Theme Engine"; + return "Update Theme"; } @@ -32,6 +31,9 @@ public class ThemeEngine implements Tool { if (activeEditor != null) { activeEditor.statusNotice("Saved theme.txt to " + sketchbookFile); + System.out.println("After you make changes to theme.txt, " + + "select \u201C" + getMenuTitle() + "\u201D " + + "again to use the new colors."); } } else { @@ -41,8 +43,7 @@ public class ThemeEngine implements Tool { Theme.load(); for (Editor editor : base.getEditors()) { - System.out.println("Updating theme for " + editor.getSketch().getName()); - //editor.applyPreferences(); + //System.out.println("Updating theme for " + editor.getSketch().getName()); editor.updateTheme(); }