Skip to content

Commit 780bc07

Browse files
committed
add override for theme.txt from sketchbook folder (fixes #5445)
1 parent f65616a commit 780bc07

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

app/src/processing/app/Mode.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,14 @@ public void setupGUI() {
211211
theme.load(modeTheme);
212212
}
213213

214+
// Against my better judgement, adding the ability to override themes
215+
// https://github.com/processing/processing/issues/5445
216+
File sketchbookTheme =
217+
new File(Base.getSketchbookFolder(), "theme.txt");
218+
if (sketchbookTheme.exists()) {
219+
theme.load(sketchbookTheme);
220+
}
221+
214222
// other things that have to be set explicitly for the defaults
215223
theme.setColor("run.window.bgcolor", SystemColor.control);
216224

todo.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
0265 (3.3.7 or 3.4)
1+
0265 (3.4)
2+
X make it possible to override theme.txt with a file in the sketchbook folder
3+
X https://github.com/processing/processing/issues/5445
4+
_ https://github.com/processing/processing/wiki/Dark-Theme-for-PDE
25

36

47
contrib
@@ -14,8 +17,8 @@ X https://github.com/processing/processing/issues/3912
1417
X submit the form (as if 'get started' clicked) when closing the window
1518
X whether hitting ESC or the close box on the window
1619
X https://github.com/processing/processing/issues/3911
17-
_ Welcome dialog rewritten in Swing
18-
_ https://github.com/processing/processing/pull/5210
20+
o Welcome dialog rewritten in Swing
21+
X https://github.com/processing/processing/pull/5210
1922
_ Welcome screen doesn't size properly for HiDPI screens
2023
_ https://github.com/processing/processing/issues/4896
2124

0 commit comments

Comments
 (0)