pharo-spec / Spec

Spec is a framework in Pharo for describing user interfaces.
MIT License
61 stars 63 forks source link

A label does not apply the #displayBackgroundColor #1524

Open koendehondt opened 4 months ago

koendehondt commented 4 months ago

Consider this code:

| mainLayout mainPresenter label |
mainPresenter := SpPresenter new.
label := mainPresenter newLabel
    label: 'Test';
    displayColor: [ Color red ];
    displayBackgroundColor: [ Color yellow ].
mainLayout := SpBoxLayout newLeftToRight
    add: label expand: false;
    yourself.
mainPresenter layout: mainLayout; open

It opens this window:

Screenshot 2024-02-21 at 12 30 07

The red text is as expected.

But the background color of the label should be yellow, but apparently displayBackgroundColor: [ Color yellow ] has no effect.

estebanlm commented 2 weeks ago

meh, Text background and LabelMorphs are not playing very good together