Branding

class appstream_python.Branding.BrandingColor(kind: Literal['primary'] = 'primary', scheme_preference: Literal['light', 'dark'] | None = None, color: str = '')

Represents a Color

Parameters:
  • kind (Literal['primary'])

  • scheme_preference (Literal['light', 'dark'] | None)

  • color (str)

kind: Literal['primary'] = 'primary'
scheme_preference: Literal['light', 'dark'] | None = None
color: str = ''
class appstream_python.Branding.Branding(initlist=None)

Represents a list of BrandingColor

get_color(kind: Literal['primary'], schema_preference: Literal['light', 'dark'] | None) BrandingColor | None

Returns the color that matches the filter

Parameters:
  • kind (Literal['primary'])

  • schema_preference (Literal['light', 'dark'] | None)

Return type:

BrandingColor | None