notes about how to use theme update

This commit is contained in:
Ben Fry
2022-01-14 08:16:15 -05:00
parent 4346bd018d
commit 5fc58f7742
2 changed files with 8 additions and 5 deletions

View File

@@ -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

View File

@@ -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();
}