I have noticed that TRCanvas has a color attribute. Does this help to make Mondrian
b := RTMondrian new.
b nodes: (1 to: 20).
b layout grid.
b view canvas color: Color black.
On May 3, 2015, at 8:03 PM, Peter Uhnák <i.uhnak(a)gmail.com>
The only (relevant) references of TRMorph is in TRCanvas >> morphClass. Here are
- We could add a registry. Each subclass of a new TRAbstractMorph has an order,
and we use the highest order. In that case, you need to load a package Trachel4DarkTheme
whenever you need to use it
- We could have a method TRCanvas class>>morphClass: aTRMorphClass, and you
need to execute “TRCanvas morphClass: TRDarkMorph” before enjoying its benefit. This
setting could also be accessible from the Roassal World menu.
I was thinking that having a settings option might be more feasible.
Adding a checkbox to settings (Settings > Appearance probably)... " use dark
this would be also be much easier to change back without the need to unload packages
and then somewhere (TRCanvas probably), on class side similarly to UITheme stored the
class(name) in singleton variable. Thus changing the option in settings would just swap
TRMorph for TRDarkMorph and vice versa.
To me this feels more versatile and maybe even easier to implement.
What do you think?
Moose-dev mailing list
Alexandre Bergel http://www.bergel.eu