Last active
December 23, 2015 00:18
-
-
Save tinchodias/373555515db22d2e421e to your computer and use it in GitHub Desktop.
Pharo 4.0 and 5.0 start up scripts thatconfigure some useful personal and UI settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Smalltalk globals | |
at: #StartupPreferencesLoader | |
ifAbsent: [ StartupLoader ]) default executeAtomicItems: { | |
StartupAction | |
name: 'PersonalSettings' | |
code: [ | |
"Shore Reporter" | |
SlReporter enabled: true. | |
SlReporter autoSubmit: true. | |
SlReporter showSummary: false. | |
SlReporter showNotification: true. | |
Author fullName: 'MartinDias'. | |
MCCacheRepository default directory: '/Users/tinchodias/Pharo/localRepository/' asFileReference ] | |
runOnce: true. | |
}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Smalltalk globals | |
at: #StartupPreferencesLoader | |
ifAbsent: [ StartupLoader ]) default executeAtomicItems: { | |
StartupAction | |
name: 'UI' | |
code: [ | |
| random | | |
UITheme currentSettings preferRoundCorner: true. | |
random := Random seed: Time now seconds + Time now asMilliSeconds. | |
World color: | |
(Color | |
h: 359.9 * random next | |
s: random next * 0.5 | |
v: random next * 0.7) ] | |
runOnce: true. | |
}. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment