Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Listitem label style is ignored #55

Open
tekbec opened this issue Oct 13, 2023 · 0 comments
Open

Listitem label style is ignored #55

tekbec opened this issue Oct 13, 2023 · 0 comments

Comments

@tekbec
Copy link

tekbec commented Oct 13, 2023

Text styling on Listitem label is ignored. The issues is here:

    @label.setter
    def label(self, label):  # type: (str) -> None
        self.listitem.setLabel(label)
        unformatted_label = strip_formatting("", label)
        self.params["_title_"] = unformatted_label
        self.info["title"] = unformatted_label

Before setting the listitem title, the styling is removed by the strip_formatting() function. I don't know if this is the expected behavior, but the only way I found to keep the styling is the workaround below:

listitem = Listitem.from_dict(game_links, label, params={'game_id': game['id']})
listitem.info.title = label
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant