[Pharo-project] Issue 3991 in pharo: use them instead of UITheme current

pharo at googlecode.com pharo at googlecode.com
Mon Apr 11 22:47:10 CEST 2011


Status: Accepted
Owner: stephane... at gmail.com
Labels: Milestone-1.3

New issue 3991 by stephane... at gmail.com: use them instead of UITheme current
http://code.google.com/p/pharo/issues/detail?id=3991

I found

theme
	"Answer the current theme for the receiver."

	(self valueOfProperty: #theme) ifNotNil: [:t | ^ t].
	^(self window ifNil: [self class]) theme

in Morph

theme: aUITheme
	"Set the current theme for the receiver."

	self theme = aUITheme ifFalse: [
		self setProperty: #theme toValue: aUITheme.
		self themeChanged]

and theme is defined on the Morph class so this means that we can change  
the UITheme current by self theme :)


Stef




More information about the Pharo-project mailing list