pharo-spec / Spec

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

Add alternateRowsColor for Tree Table presenter. #1458

Closed hernanmd closed 11 months ago

hernanmd commented 11 months ago

Summary

This PR proposes adding row color alternation support to the SpTreeTablePresenter to bring its functionality in line with the similar SpTablePresenter.

Details

The SpTreeTablePrccesenter currently lacks a method for alternating row colors, a feature that is available in the SpTablePresenter. This enhancement aims to bring consistency between these two widgets by adding a new method, alternateRowsColor, to SpTreeTablePresenter.

Testing:

A unit test have been added to ensure the correct behavior of the alternateRowsColor method. Manual testing has been performed to validate the feature's functionality within the SpTreeTablePresenter.

Why is this change needed?

This change is useful to maintain consistency across Spec. Users who are familiar with the SpTablePresenter widget expect similar functionality in the SpTreeTablePresenter.

Screenshots

Screenshot 2023-09-25 at 12 10 10
hernanmd commented 11 months ago

Failing tests are not related with the PR.