RTMorph directly pre-fills the morph on the Morphic level.

I have partial success with inversion on the level of Athens:

Vložený obrázek 1

2017-04-24 9:38 GMT+02:00 Peter Uhnak <i.uhnak@gmail.com>:
On Sun, Apr 23, 2017 at 10:40:47PM +0200, Tudor Girba wrote:
> Hi,
>
> > On Apr 23, 2017, at 10:37 PM, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
> >
> > As a quick fix for Roassal we probably can make an “inverted colors canvas”.
>
> I think this is not necessarily a quick fix. I think this should be the first direction we should try.

This is a quick fix, but also very ugly fix. I've done this long time ago as I regularly switch between light and dark (I toggle it with a metalink as I don't want to physically change the code, but that's not important here).

in `TRMorph>>#drawOn:` after `surface hasBeenFreed ifTrue: [ self createSurface ].` you add the following

```
surface drawDuring: [ :cs |
        cs paintMode restoreAfter: [
                cs setPaint: Color white.
                cs paintMode difference.
                cs drawShape: (0 @ 0 extent: surface extent)
        ]
].
```


but it is really weird to state in the background that you want an object blue, and suddenly you see it yellow (becuase it is inverted).

On discord we briefly discussed with Alex the idea of introducing themes. In principle it is not complex work, it's just lot of it. (as there are hardcoded values all over the place).

Peter


>
> Is anyone interested in taking this on?
>
> Cheers,
> Doru
>
>
>
> > Also when Pharo was light Moose had a white theme. Now when Pharo goes dark should we make a black theme? :)
> >
> > Cheers.
> > Uko
> >
> >> On 23 Apr 2017, at 23:08, Tudor Girba <tudor@tudorgirba.com> wrote:
> >>
> >> Hi,
> >>
> >> As you could see, in Pharo we turned the Dark Theme on by default.
> >>
> >> The question is what should we do with Moose. I think it would be great to have it working with the Dark Theme, but the problem is that the Roassal visualizations do not appropriate in the current theme because of two reasons:
> >> - they were conceived on a white canvas
> >> - the colors are hardcoded
> >>
> >> Showing a white canvas in the Dark Theme is not an option. Either we introduce a mechanism to adapt the visualizations to the current theme, or we keep a different theme in Moose than in Pharo.
> >>
> >> What do you think?
> >>
> >> Cheers,
> >> Doru
> >>
> >>
> >> --
> >> www.tudorgirba.com
> >> www.feenk.com
> >>
> >> "Not knowing how to do something is not an argument for how it cannot be done."
> >>
> >> _______________________________________________
> >> Moose-dev mailing list
> >> Moose-dev@list.inf.unibe.ch
> >> https://www.list.inf.unibe.ch/listinfo/moose-dev
> >
> > _______________________________________________
> > Moose-dev mailing list
> > Moose-dev@list.inf.unibe.ch
> > https://www.list.inf.unibe.ch/listinfo/moose-dev
>
> --
> www.tudorgirba.com
> www.feenk.com
>
> "Every thing should have the right to be different."
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev@list.inf.unibe.ch
> https://www.list.inf.unibe.ch/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev