Skip to content

Commit 942fa81

Browse files
committed
Updated preferences for vaqua per #88.
1 parent 22716f9 commit 942fa81

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

app/src/processing/app/Sketch.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,8 +844,6 @@ public boolean saveAs() throws IOException {
844844

845845
// https://github.com/processing/processing4/issues/77
846846
boolean useNative = Preferences.getBoolean("chooser.files.native");
847-
useNative = useNative && !Platform.isMacOS();
848-
849847
if (useNative) {
850848
// get new name for folder
851849
FileDialog fd = new FileDialog(editor, PROMPT, FileDialog.SAVE);

app/src/processing/app/platform/DefaultPlatform.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void setLookAndFeel() throws Exception {
8181
String laf = Preferences.get("editor.laf");
8282
if (laf == null || laf.length() == 0) { // normal situation
8383
boolean isMac = System.getProperty("os.name", "").startsWith("Mac OS");
84-
if (isMac) {
84+
if (isMac && Preferences.getBoolean("editor.allow_vaqua")) {
8585
UIManager.setLookAndFeel("org.violetlib.aqua.AquaLookAndFeel");
8686

8787
Icon collapse = new MacTreeIcon(true);

build/build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@
723723
<classpath file="../app/lib/jna-platform.jar" />
724724
<classpath file="../app/lib/ant.jar" />
725725
<classpath file="../app/lib/ant-launcher.jar" />
726-
<classpath file="../app/lib/vaqua7.jar" />
726+
<classpath file="../app/lib/VAqua7.jar" />
727727

728728
<!-- plus core.jar... note that this is no longer shared -->
729729
<classpath file="../core/library/core.jar" />

build/shared/lib/defaults.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ recent.count = 10
7474

7575
# Default to the native (AWT) file selector where possible
7676
chooser.files.native = true
77+
chooser.files.native.macosx = false # except on mac where it's broken
7778

7879

7980
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -167,6 +168,9 @@ editor.watcher.debug = false
167168
# The window of time (in milliseconds) in which a change won't be counted
168169
editor.watcher.window = 1500
169170

171+
# allow vaqua on mac
172+
editor.allow_vaqua = true
173+
170174
# Format and search engine to use for online queries
171175
search.format = https://google.com/search?q=%s
172176

0 commit comments

Comments
 (0)