Skip to content

Allow for theme independent alternating background color for TabularEditor #2068

@joshduran

Description

@joshduran

Currently, the TabularEditor has an even_bg_color attribute that can be set to provide a visual contrast between alternating rows. This is very nice, but setting this attribute to a fixed color will not look good for both dark and light themed GUIs. It would be nice if we could instead set a flag (e.g. alternate_bg_color = True). Setting this flag would automatically set the even_bg_color to a slightly contrasting color considering the theme background color. This would not break any current code that uses the existing syntax while also simplifying code for those who want alternating background without needing precise control over the exact background color chosen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions