diff --git a/HelpSource/Classes/CocoaDocument.schelp b/HelpSource/Classes/CocoaDocument.schelp index d436731472d..9ebd6bc4cd2 100644 --- a/HelpSource/Classes/CocoaDocument.schelp +++ b/HelpSource/Classes/CocoaDocument.schelp @@ -17,4 +17,4 @@ private::initClass, prSetDefaultFont, prSetSyntaxColorTheme, prDefaultUsesAutoIn InstanceMethods:: -private::prUsesAutoInOutdent_, prIsEditable_, prSetTitle, prGetTitle, prGetFileName, prSetFileName, prGetBounds, prSetBounds, prBalanceParens, prclose, prinsertText, prinitByIndex, prGetLastIndex, propen, prinitByString, prSetBackgroundColor, prGetBackgroundColor, prSetSelectedBackgroundColor, prGetSelectedBackgroundColor, prSelectLine +private::prUsesAutoInOutdent_, prIsEditable_, prSetTitle, prGetTitle, prGetFileName, prSetFileName, prGetBounds, prSetBounds, prBalanceParens, prclose, prinsertText, prinitByIndex, prGetLastIndex, propen, prinitByString, prSetBackgroundColor, prGetBackgroundColor, prSetSelectedBackgroundColor, prGetSelectedBackgroundColor, prSelectLine, prSetFont diff --git a/HelpSource/Classes/Document.schelp b/HelpSource/Classes/Document.schelp index ddbecf694f7..d08288cfa78 100644 --- a/HelpSource/Classes/Document.schelp +++ b/HelpSource/Classes/Document.schelp @@ -822,3 +822,17 @@ fork({ }, AppClock) ) :: + +Changing the default look of documents can be done with the help of the link::#*initAction:: method. Run the following example once. Afterwards all newly created documents will have a dark grey background. To make this change happen every time you start supercollider, put the code inside your startup.scd file (and optionally wrap it in a code::{}.defer(0.1):: ). +code:: +( +Document.listener.background = Color.red; //a special color for post document +Document.listener.bounds = Rect(1, 461, 620, 567); //move and resize post document +Document.initAction = {|doc| //function to run for every new document + doc.background = Color.grey(0.1, 0.9); + doc.bounds = Rect(0, 119, 1280, 659); + doc.selectedBackground = Color(0.4, 0.05, 0.18); + doc.stringColor = Color.grey(0.9); +}; +) +:: diff --git a/HelpSource/Classes/Sweep.schelp b/HelpSource/Classes/Sweep.schelp index cdbdcb2e29c..80a0fcf28b4 100644 --- a/HelpSource/Classes/Sweep.schelp +++ b/HelpSource/Classes/Sweep.schelp @@ -84,7 +84,7 @@ a.set(\run, 1) a.set(\t_trig, 1) a.free -//shorter duration and downwardsÉ +//shorter duration and downwards... a= Synth(\lineReset, [\start, 1000, \end, 500, \dur, 0.5]) a.set(\t_trig, 1) a.set(\run, 0)