Colored Window Theme in Pharo?

一世执手 提交于 2019-12-02 05:06:47

问题


How do I switch to the colored window theme in Pharo?


回答1:


Not sure which theme you mean but have you tried

world menu -> System -> Settings -> Appearance -> Morphic -> User interface theme?

The select box will let you choose the window color theme.




回答2:


Or...by code... execute: XXXTheme beCurrent.




回答3:


Best neat way to do this is to install the TWM (Tiled Windows Manager) and use its theme.

That the closest you'll get to a squeak colorful windows meets pharo theme.

You can get the theme without activating TWM in the prefs (although TWM is cool).




回答4:


It is a setting and as such you can select it from the settings tool

Right click on the Pharo desk to open the world menu -> System -> Settings -> Appearance -> User interface theme

Themes are classes within the system, usually implemented as subclasses of class UITheme. Evaluate

UITheme browseHierarchy

to open a browser to view them all and see the source code or inspect

UITheme allSubclasses

which gives a collection of the following classes

UIThemeStandardSqueak UIThemeVistary UIThemeWatery UIThemeW2K BlueUITheme UIThemeWatery2 PharoTheme PharoOrangeTheme

in the Pharo 1.4 image.

If you send the message #beCurrent to one of this classes you can activate it programmatically, so

UIThemeW2K beCurrent

will switch to Windows2000 like user interface, while

UIThemeWatery2 beCurrent

to a Mac like user interface. You can implement your own if you like by adding an own subclass.



来源:https://stackoverflow.com/questions/8569611/colored-window-theme-in-pharo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!