Colored Window Theme in Pharo?

后端 未结 4 1062
醉梦人生
醉梦人生 2021-01-22 09:51

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

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-22 10:26

    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.

提交回复
热议问题