gui.palette.Badge(background, foreground, label)
The colours of one badge: a background and the text colour on it.
Attributes
| background |
str |
Hex colour of the background. |
| foreground |
str |
Hex colour of the text. |
| label |
str |
The word printed in the badge, for example "ERROR". |
Examples
from spotregen.gui.palette import badge_for
print(badge_for("error"))
Badge(background='#D55E00', foreground='#000000', label='ERROR')