Mihnea Niculescu
Mihnea Niculescu

Reputation: 45

Squeak (or pharo) change windows default white background color

How can I change the default white window background color in Squeak or Pharo ? I am new to smalltalk and Morphic, i looked at the morphic classes but did not found the correct instance variables. Thanks.

Upvotes: 1

Views: 801

Answers (3)

Sean DeNigris
Sean DeNigris

Reputation: 6390

On Pharo (I used 3.0), check the UITheme hierarchy.

For quick hacking, you can directly edit UITheme and subclasses. For a more permanent solution, create your own subclass and install it as the current theme. To change the background color of all Transcripts, as you requested, you would override #textEditorNormalFillStyleFor:, as you can see in the ugly (for effect) screenshot...

Pharo default window color changed

Upvotes: 0

EstebanLM
EstebanLM

Reputation: 4357

you need to do something like this:

| morph |

SystemWindow new 
    addMorph: (morph := Morph new) fullFrame: LayoutFrame identity;
    openInWorld.

morph color: Color red.

Note: this is on Pharo

Upvotes: 0

msteel9999
msteel9999

Reputation: 312

I think this question may be closer to what you need.

Looks like you may have to use a tiled window manager.

Colored Window Theme in Pharo?

Upvotes: 0

Related Questions