[Cuis-dev] #color: message not honored for button in a SystemWindow

Gerald Klix cuis.01 at klix.ch
Sun Oct 17 04:16:38 PDT 2021



On 10/17/21 12:54 PM, Hilaire Fernandes via Cuis-dev wrote:
> Hi Gerald,
> 
> The funny things is I try to honor the Cuis Theme (ok and cancel) button 
> but I am preventing by Cuis willing to honor the Cuis Theme...
LOL

Since you mention "ok" and "cancel" buttons I presume that
you are busy implementing some sort of transient dialog,
like StringRequestMorph; in this case I suggest sub-classing
SystemWindow with a class named TransientWindow
and override @widgetsColor:.
After all it's not a browser like
window, like all the other SystemWindow subclasses.
> 
> While subclassing will work I don't want to add complexity. There should 
> be another way.
> 
> Thanks
> 
> Hilaire
> 
> Le 17/10/2021 à 11:06, Gerald Klix a écrit :
>> Cuis goes through this complicated rigamarole,
>> to provide nice colored browser windows,
>> which are still themeable.
>>
>> The net effect is:
>> #color: is honored and than rudely written
>> over by the system window. I suggest sub-classing
>> PluggableButtonMorph and overriding #adoptWidgetsColor:
>> according to your needs and taste.
> 
> 


More information about the Cuis-dev mailing list