Skip to content

Improve catalogue printing on dark background and narrow screens#135

Merged
alihamdan merged 1 commit intodevelopfrom
catalogue
Oct 4, 2023
Merged

Improve catalogue printing on dark background and narrow screens#135
alihamdan merged 1 commit intodevelopfrom
catalogue

Conversation

@alihamdan
Copy link
Member

  • Use more generic colors that work on both dark and light backgrounds. The colors are taken from the default palette in seaborn.
  • Change the overflow mechanism to fold instead of cropping the entries in the table. This works better on narrower screens.
  • Color by row instead of by column. This looks better in the case where an entry spans multiple rows.

I also fix the console width to 210 columns in tests to get deterministic results because depending on the width, some rows might fold to next line. Now there is one line per catalogue entry in the table.

- Use more generic colors that work on both dark and light backgrounds. The colors
  are taken from the default palette in seaborn.
- Change the overflow mechanism to fold instead of cropping the entries in the table.
  This works better on narrower screens.
- Color by row instead of by column. This looks better in the case where an entry spans
  multiple rows.
@alihamdan alihamdan added the enhancement New feature or request label Oct 4, 2023
@alihamdan alihamdan requested a review from benoit9126 October 4, 2023 13:50
@alihamdan alihamdan self-assigned this Oct 4, 2023
@alihamdan alihamdan merged commit c98e0d0 into develop Oct 4, 2023
@alihamdan alihamdan deleted the catalogue branch October 4, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants