Some considerations about the tableview
See original GitHub issueWhen any number greater or less(0) than the maximum number of pages is entered into the Entry index. Currently loads an empty page, it would be better to load the first page. Because the input index is changed to 1
It would also be nice that whenever the information is loaded in the treeview or when moving to the next page, the first row is selected. And when returning to the previous page, the last line would be selected. This facilitates external automations
Striped lines would by default have better contrast in all themes (even, odd and selected lines). I made a few tries and I think these color options are good for all themes. I tried using the Api colors, I just needed to include an extra color #f3f3f3
lst_dark_themes = ['solar', 'superhero', 'darkly', 'cyborg', 'vapor']
if self.data['theme'] in lst_dark_themes:
cst_striped = (self.style.colors.bg, self.style.colors.inputfg)
else:
if self.data['theme'] == 'morph':
cst_striped = (self.style.colors.border, self.style.colors.fg)
else:
cst_striped = ('#f3f3f3', self.style.colors.inputfg)
See the example with the colors mentioned: https://www.mediafire.com/file/hrc8rjdmvekpn3x/striped_rows.mp4/file
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
@antrrax, I found the bug for that page number issue and and updating this in the next release.
I’m adding an ‘active’ color which is either the default or ‘active’ color in the bootstyle table header section for each theme. https://bootswatch.com/darkly/
I’m going to modify the logic so that
stripecolor=None
will result in no stripes as usual, however, passing in a tuple (None, None) will result in default colored table stripes, where “None” is the default color for either the background or foreground.