简体   繁体   English

吱吱声(或pharo)更改Windows默认的白色背景色

[英]Squeak (or pharo) change windows default white background color

How can I change the default white window background color in Squeak or Pharo ? 如何在Squeak或Pharo中更改默认的白色窗口背景颜色? I am new to smalltalk and Morphic, i looked at the morphic classes but did not found the correct instance variables. 我是Smalltalk和Morphic的新手,我查看了词素类,但没有找到正确的实例变量。 Thanks. 谢谢。

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? Pharo中的彩色窗口主题?

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 注意:这是在Pharo上

On Pharo (I used 3.0), check the UITheme hierarchy. 在Pharo(我使用3.0)上,检查UITheme层次结构。

For quick hacking, you can directly edit UITheme and subclasses. 为了快速进行黑客攻击,您可以直接编辑UITheme和子类。 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... 要根据您的要求更改所有字幕的背景颜色,您可以覆盖#textEditorNormalFillStyleFor :,如您在丑陋(有效)屏幕截图中所看到的...

Pharo默认窗口颜色已更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM