Yeah, I saw themeChanged, but what about non-morphs? How do they get notified? There should be some announcement that you can subscribe to. Should I add one?
Sent: Saturday, March 19, 2016 at 10:20 PM From: "Cyril Ferlicot Delbecque" <cyril.ferlicot@gmail.com> To: pharo-dev@lists.pharo.org Subject: Re: [Pharo-dev] Receiving notification of theme changes or changes to syntax highlighting properties
On 20/03/2016 03:12, monty wrote:
How can you receive notification of a theme change (like going to or from the Dark theme), or even better, notification of a change to some property of syntax highlighting (like the styling used for string literals)?
Hi,
For the theme change part, morphs should implement a #themeChanged method that should update the colours and send the method to his submorphs.
And what is the preferred way of querying the current syntax highlighting properties? I am using "SHTextStylerST80 new attributesFor: aProperty" now (SHPreferences doesn't provide enough), but there is talk of Shout being removed.
-- Cyril Ferlicot
165 Avenue Bretagne Lille 59000 France