Skip to content

highlight no effected when use customize choice title style #151

@ThanrayTian

Description

@ThanrayTian

if isinstance(choice.title, list):
tokens.extend(choice.title)
elif selected:
tokens.append(
("class:selected", "{}{}".format(shortcut, choice.title))
)
elif index == self.pointed_at:
tokens.append(
("class:highlighted", "{}{}".format(shortcut, choice.title))
)

maybe merge class:highlighted to every item better.

example:
title = [ ("class:a", "user"), ("class:b", "age") ]
after merge:
title = [ ("class:a class:highlighted", "user"), ("class:b class:highlighted", "age") ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions