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') —–
baseColor
^ Preferences menuTitleColor!
New code (Squeak 5.1 and later)
Method: StandardScriptingSystem>>baseColor (in category 'Etoys-Squeakland-tile colors') —–
baseColor
^ self userInterfaceTheme baseColor ifNil: [Color transparent]!