Hello everybody,

I have a question about the UI toolkits available for Pharo. I already asked something about this on Slack, but since I saw that there was a recent discussion about UI in the mailing list, I think this is a better place to discuss the matter.

I am writing an application for Pharo where I am displaying some structured text. The structure is similar to the one of a web page: A main title with a list of paragraphs, where each paragraph has a title and a description.

What I would like to do is to format the text to present the contents in a meaningful way: For example, I would like a bigger font for the title, and change the background of the text, to give a better separation between the paragraphs. Basically I would like to manipulate and display my contents as I would do in a web page.

To write UI widgets I usually use Spec, but I found that going beyond easy formatting (e.g. bold text and emphasis) is harder than I thought. I saw there were discussion about the styling text and the role of the theme class, using TextStyle but that part is not really documented.

So far, the easiest way to solve my problem seems to be to use Morphic to display the contents as I want it, and then include my widget in my spec application.

Do you have any suggestions about how to do that? I think that styling the UI widgets is an important part of the application development, but it is really hard to find documentation about this.

Thanks, have a nice day!
Tommaso


Reply via email to