pharo-graphics / Spec-Toplo

Toplo backend for Spec (Pharo)
MIT License
0 stars 1 forks source link

Low-hanging fruits missing adapters #12

Open tinchodias opened 1 month ago

tinchodias commented 1 month ago
tinchodias commented 1 month ago

For an eventual new contributor, I can give some hints on how to start:

Pick one of the presenters, for example SpLinkPresenter. Start by looking for references in the image, and create a small script in a Workspace that creates it with basic properties, and see how it looks/behaves in Morphic backend (the default one).

Second, convert the script to open in the Spec-Toiplo backend. The script would look like:

app := SpApplication new 
  useBackend: #Toplo;
  yourself.

link := SpLinkPresenter newApplication: app.

"... set properties in the link ..."

link open

Close the debugger... you will have to create a class named SpToploLinkAdapter. This class is a good base: SpToploLabelAdapter. It might be a good reference to browse the implementation in the Morphic backend: SpMorphicLinkAdapter.

Ducasse commented 1 month ago

Cool!