pharo-spec / Spec

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

A label does not apply the #displayBackgroundColor #1524

Closed koendehondt closed 4 months ago

koendehondt commented 9 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 5 months ago

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