tom95 / Pheno

A morphic-based UI framework with a lot of Bootstrap-like widgets.
MIT License
7 stars 2 forks source link

Pheno

Pheno is a widget framework containing a number of ready-to-go widgets for common UI use cases. All widgets are stylable with a CSS-like system. Also comes with a ToolBuilder that uses these styles.

Screenshot

How to Install

First install metacello using this guide. Then run the following in a workspace in your Squeak image.

Metacello new
  baseline: 'Pheno';
  repository: 'github://tom95/Pheno:master/src';
  load.

Finally, launch a couple examples using e.g.

PHLabelExample open.
PHColorStylesExample open.

" to browse all examples, run: "
Browser newOnCategory: 'Pheno-Examples'.

Upgrading from v1.0.0

Migrating from BT Prefix

Here are two handy scripts to run on your repo if you used the BT instead of the PH prefix:

ack -l 'BT[^\s]' | xargs perl -pi -E 's/BT([^\s])/PH\1/g'
find . | grep BT | xargs rename -e 's/BT/PH/'

Pango

Pheno can use Pango for rendering text. It will automatically do so if the plugin is available. For linux we provide pre-built binaries: download the plugin library and place it next to your squeak executable (not your squeak.sh, but the executable that is usually found in the bin folder). If you get an error, check if all dependencies of the plugin are installed on your system, e.g. via ldd PangoPlugin.