links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Code updates for UserInterfaceTheme
Last updated at 8:09 am UTC on 15 March 2017
An example of a necessary code update of old code to make use of user interface themes (since Squeak 5.1).

[squeak-dev] The Trunk: EToys-edc.285.mcz

Old code (Squeak 5.0 and earlier)

 Method: StandardScriptingSystem>baseColor (in category 'Etoys-Squeakland-tile colors') —–

       ^ Preferences menuTitleColor!

New code (Squeak 5.1 and later)

 Method: StandardScriptingSystem>>baseColor (in category 'Etoys-Squeakland-tile colors') —–

       ^ self userInterfaceTheme baseColor ifNil: [Color transparent]!