Skip to content

Instantly share code, notes, and snippets.

@tinchodias
Last active December 23, 2015 00:18
Show Gist options
  • Save tinchodias/373555515db22d2e421e to your computer and use it in GitHub Desktop.
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
(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.
}.
(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