Skip to content

Commit fa68115

Browse files
authored
Merge pull request #962 from Stefterv/gradle-beta-indicator
Processing Beta Indicator
2 parents 21a7a08 + cdf56a2 commit fa68115

File tree

15 files changed

+740
-30
lines changed

15 files changed

+740
-30
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package processing.app.ui;
2+
3+
4+
// Stub class for backwards compatibility with the ant-build system
5+
// This class is not used in the Gradle build system
6+
// The actual implementation is in src/.../Schema.kt
7+
public class WelcomeToBeta {
8+
public static void showWelcomeToBeta(){
9+
10+
}
11+
}

app/build.gradle.kts

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import java.io.FileOutputStream
88
import java.util.zip.ZipEntry
99
import java.util.zip.ZipOutputStream
1010

11+
// TODO: Update to 2.10.20 and add hot-reloading: https://github.com/JetBrains/compose-hot-reload
12+
1113
plugins{
1214
id("java")
1315
kotlin("jvm") version libs.versions.kotlin
@@ -32,6 +34,9 @@ sourceSets{
3234
kotlin{
3335
srcDirs("src")
3436
}
37+
resources{
38+
srcDirs("resources", listOf("languages", "fonts", "theme").map { "../build/shared/lib/$it" })
39+
}
3540
}
3641
test{
3742
kotlin{
@@ -108,6 +113,8 @@ dependencies {
108113

109114
implementation(libs.compottie)
110115
implementation(libs.kaml)
116+
implementation(libs.markdown)
117+
implementation(libs.markdownJVM)
111118

112119
testImplementation(kotlin("test"))
113120
testImplementation(libs.mockitoKotlin)

app/src/main/resources/bird.svg

+5
Loading

app/src/main/resources/defaults.txt

+309
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,309 @@
1+
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2+
3+
4+
# DO NOT MAKE CHANGES TO THIS FILE!!!
5+
6+
# These are the default preferences. If you want to modify
7+
# them directly, use the per-user local version of the file:
8+
9+
# Users -> [username] -> AppData -> Roaming ->
10+
# Processing -> preferences.txt (on Windows 10)
11+
12+
# ~/Library -> Processing -> preferences.txt (on macOS)
13+
14+
# ~/.config/processing -> preferences.txt (on Linux)
15+
16+
# The exact location of your preferences file can be found at
17+
# the bottom of the Preferences window inside Processing.
18+
19+
# Because AppData and Application Data may be considered
20+
# hidden or system folders on Windows, you'll have to ensure
21+
# that they're visible in order to get at preferences.txt
22+
23+
# You'll have problems running Processing if you incorrectly
24+
# modify lines in this file. It will probably not start at all.
25+
26+
# AGAIN, DO NOT ALTER THIS FILE! I'M ONLY YELLING BECAUSE I LOVE YOU!
27+
28+
29+
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
30+
31+
32+
# If you don't want users to have their sketchbook default to
33+
# "My Documents/Processing" on Windows and "Documents/Processing" on OS X,
34+
# set this to another path that will be used by default.
35+
# Note that this path must exist already otherwise it won't see
36+
# the sketchbook folder, and will instead assume the sketchbook
37+
# has gone missing, and that it should instead use the default.
38+
# In 4.0, the location has changed.
39+
#sketchbook.path.four=
40+
41+
# Whether or not to show the Welcome screen for 4.0
42+
# (It's always available under Help → Welcome)
43+
welcome.four.show = true
44+
welcome.four.seen = false
45+
46+
# Set 'true' for the default behavior before 4.0, where the
47+
# main tab must have the same name as the sketch folder
48+
editor.sync_folder_and_filename = true
49+
50+
# By default, contributions are moved to backup folders when
51+
# they are removed or replaced. The backups can be found at
52+
# sketchbook/libraries/old, sketchbook/tools/old, and sketchbook/modes/old
53+
54+
# true to backup contributions when "Remove" button is pressed
55+
contribution.backup.on_remove = true
56+
# true to backup contributions when installing a newer version
57+
contribution.backup.on_install = true
58+
59+
recent.count = 10
60+
61+
# Default to the native (AWT) file selector where possible
62+
chooser.files.native = true
63+
# We were shutting this off on macOS because it broke Copy/Paste:
64+
# https://github.com/processing/processing/issues/1035
65+
# But removing again for 4.0 alpha 5, because the JFileChooser is awful,
66+
# and worse on Big Sur, so a bigger problem than the Copy/Paste issue.
67+
# https://github.com/processing/processing4/issues/77
68+
#chooser.files.native.macos = false
69+
70+
# set to 'lab' to interpolate theme gradients using L*a*b* color space
71+
theme.gradient.method = rgb
72+
73+
74+
# by default, check the processing server for any updates
75+
# (please avoid disabling, this also helps us know basic numbers
76+
# on how many people are using Processing)
77+
update.check = true
78+
79+
# on windows, automatically associate .pde files with processing.exe
80+
platform.auto_file_type_associations = true
81+
82+
83+
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
84+
85+
86+
# default size for the main window
87+
editor.window.width.default = 700
88+
editor.window.height.default = 600
89+
90+
editor.window.width.min = 400
91+
editor.window.height.min = 500
92+
# tested as approx 440 on OS X
93+
editor.window.height.min.macos = 450
94+
# tested to be 515 on Windows XP, this leaves some room
95+
editor.window.height.min.windows = 530
96+
# tested with Raspberry Pi display
97+
editor.window.height.min.linux = 480
98+
99+
# scaling for the interface (to handle Windows and Linux HiDPI displays)
100+
editor.zoom = 100%
101+
# automatically set based on system dpi (only helps on Windows)
102+
editor.zoom.auto = true
103+
104+
# Use the default monospace font included in lib/fonts.
105+
# (As of Processing 4 alpha 5, that's Source Code Pro)
106+
editor.font.family = processing.mono
107+
editor.font.size = 12
108+
109+
# To reset everyone's default, replaced editor.antialias with editor.smooth
110+
# for 2.1. Fonts are unusably gross on OS X (and Linux) w/o smoothing and
111+
# the Oracle JVM, and many longtime users have anti-aliasing turned off.
112+
editor.smooth = true
113+
114+
# blink the caret by default
115+
editor.caret.blink = true
116+
# change to true to use a block (instead of a bar)
117+
editor.caret.block = false
118+
119+
# enable ctrl-ins, shift-ins, shift-delete for cut/copy/paste
120+
# on windows and linux, but disable on the mac
121+
editor.keys.alternative_cut_copy_paste = true
122+
editor.keys.alternative_cut_copy_paste.macos = false
123+
124+
# true if shift-backspace sends the delete character,
125+
# false if shift-backspace just means backspace
126+
editor.keys.shift_backspace_is_delete = false
127+
128+
# home and end keys should only travel to the start/end of the current line
129+
editor.keys.home_and_end_travel_far = false
130+
# home and end keys move to the first/last non-whitespace character,
131+
# and move to the actual start/end when pressed a second time.
132+
# Only works if editor.keys.home_and_end_travel_far is false.
133+
editor.keys.home_and_end_travel_smart = true
134+
# The OS X HI Guidelines say that home/end are relative to the document,
135+
# but that drives some people nuts. This pref enables/disables it.
136+
editor.keys.home_and_end_travel_far.macos = true
137+
138+
# Enable/disable support for complex scripts. Used for Japanese and others,
139+
# but disable when not needed, otherwise basic Western European chars break.
140+
editor.input_method_support = false
141+
142+
# convert tabs to spaces? how many spaces?
143+
editor.tabs.expand = true
144+
editor.tabs.size = 2
145+
146+
# Set to true to automatically close [ { ( " and '
147+
editor.completion.auto_close = false
148+
149+
# automatically indent each line
150+
editor.indent = true
151+
152+
# Whether to check files to see if they've been modified externally
153+
editor.watcher = true
154+
# Set true to enable debugging, since this is quirky on others' machines
155+
editor.watcher.debug = false
156+
# The window of time (in milliseconds) in which a change won't be counted
157+
editor.watcher.window = 1500
158+
159+
# Format and search engine to use for online queries
160+
search.format = https://google.com/search?q=%s
161+
162+
# font choice and size for the console
163+
console.font.size = 12
164+
165+
# number of lines to show by default
166+
console.lines = 4
167+
168+
# Number of blank lines to advance/clear console.
169+
# Note that those lines are also printed in the terminal when
170+
# Processing is executed there.
171+
# Setting to 0 stops this behavior.
172+
console.head_padding = 10
173+
174+
# Set to false to disable automatically clearing the console
175+
# each time 'run' is hit
176+
# If one sets it to false, one may also want to set 'console.head_padding'
177+
# to a positive number to separate outputs from different runs.
178+
console.auto_clear = true
179+
180+
# number of days of history to keep around before cleaning
181+
# setting to 0 will never clean files
182+
console.temp.days = 7
183+
184+
# set the maximum number of lines remembered by the console
185+
# the default is 500, lengthen at your own peril
186+
console.scrollback.lines = 500
187+
console.scrollback.chars = 40000
188+
189+
# Any additional Java options when running.
190+
# If you change this and can't run things, it's your own durn fault.
191+
run.options =
192+
193+
# settings for the -XmsNNNm and -XmxNNNm command line option
194+
run.options.memory = false
195+
run.options.memory.initial = 64
196+
run.options.memory.maximum = 512
197+
198+
# Index of the display to use for running sketches (starts at 1).
199+
# Kept this 1-indexed because older vesions of Processing were setting
200+
# the preference even before it was being used.
201+
# -1 means the default display, 0 means all displays
202+
run.display = -1
203+
204+
# set internally because it comes from the system
205+
#run.window.bgcolor=
206+
207+
# set to false to open a new untitled window when closing the last window
208+
# (otherwise, the environment will quit)
209+
# default to the relative norm for the different platforms,
210+
# but the setting can be changed in the prefs dialog anyway
211+
#sketchbook.closing_last_window_quits = true
212+
#sketchbook.closing_last_window_quits.macos = false
213+
214+
editor.untitled.prefix=sketch_
215+
# The old (pre-1.0, back for 2.0) style for default sketch name.
216+
# If you change this, be careful that this will work with your language
217+
# settings. For instance, MMMdd won't work on Korean-language systems
218+
# because it'll insert non-ASCII characters and break the environment.
219+
# https://github.com/processing/processing/issues/322
220+
editor.untitled.suffix=yyMMdd
221+
222+
# replace underscores in .pde file names with spaces
223+
sketch.name.replace_underscore = true
224+
225+
# what to use for generating sketch names (change in the prefs window)
226+
#sketch.name.approach =
227+
228+
# number of days of build history and other temp files to keep around
229+
# these are kept around for debugging purposes, and in case code is lost
230+
temp.days = 7
231+
232+
233+
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
234+
235+
236+
# whether or not to export as full screen (present) mode
237+
export.application.fullscreen = false
238+
239+
# whether to show the stop button when exporting to application
240+
export.application.stop = true
241+
242+
# embed Java by default for lower likelihood of problems
243+
export.application.embed_java = true
244+
245+
# set to false to no longer delete application folders before export
246+
# (removed from the Preferences windows in 4.0 beta 9)
247+
export.delete_target_folder = true
248+
249+
# may be useful when attempting to debug the preprocessor
250+
preproc.save_build_files=false
251+
252+
# allows various preprocessor features to be toggled
253+
# in case they are causing problems
254+
255+
# preprocessor: pde.g
256+
preproc.color_datatype = true
257+
preproc.web_colors = true
258+
preproc.enhanced_casting = true
259+
260+
# preprocessor: PdeEmitter.java
261+
preproc.substitute_floats = true
262+
263+
# PdePreproc.java
264+
# writes out the parse tree as parseTree.xml, which can be usefully
265+
# viewed in (at least) Mozilla or IE. useful when debugging the preprocessor.
266+
preproc.output_parse_tree = false
267+
268+
# set to the program to be used for opening HTML files, folders, etc.
269+
#launcher.linux = xdg-open
270+
271+
# FULL SCREEN (PRESENT MODE)
272+
run.present.bgcolor = #666666
273+
run.present.stop.color = #cccccc
274+
275+
# PROXIES
276+
# Set a proxy server for folks that require it. This will allow the update
277+
# checker and the contrib manager to run properly in those environments.
278+
# This changed from proxy.host and proxy.port to proxy.http.host and
279+
# proxy.http.port in 3.0a8. In addition, https and socks were added.
280+
proxy.http.host=
281+
proxy.http.port=
282+
proxy.https.host=
283+
proxy.https.port=
284+
proxy.socks.host=
285+
proxy.socks.port=
286+
# Example of usage (replace 'http' with 'https' or 'socks' as needed)
287+
#proxy.http.host=proxy.example.com
288+
#proxy.http.port=8080
289+
# Whether to use the system proxy by default
290+
proxy.system=true
291+
292+
# PDE X
293+
pdex.errorCheckEnabled = true
294+
pdex.warningsEnabled = true
295+
pdex.writeErrorLogs = false
296+
297+
pdex.autoSave.autoSaveEnabled = false
298+
pdex.autoSaveInterval = 5
299+
pdex.autoSave.promptDisplay = true
300+
pdex.autoSave.autoSaveByDefault = true
301+
302+
# Enable auto-completion when hitting ctrl-space
303+
pdex.completion = false
304+
# Setting this true will show completions whenever available, not just after ctrl-space
305+
pdex.completion.trigger = false
306+
# Suggest libraries to import when a class is undefined/unavailable
307+
pdex.suggest.imports = true
308+
# Set to false to disable ctrl/cmd-click jump to definition
309+
pdex.inspectMode.hotkey = true

app/src/main/resources/logo.svg

+5
Loading

0 commit comments

Comments
 (0)