AppStream.Branding

g AppStream.Branding AppStream.Branding GObject.Object GObject.Object GObject.Object->AppStream.Branding

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_color (kind, scheme_kind)

remove_color (kind, scheme_preference)

set_color (kind, scheme_preference, colorcode)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class AppStream.Branding(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

AppStream.BrandingClass

classmethod new()
Returns:

a AppStream.Branding

Return type:

AppStream.Branding

Creates a new AppStream.Branding.

New in version 0.10.

get_color(kind, scheme_kind)
Parameters:
Returns:

The HTML color code of the found color, or None if no color was found.

Return type:

str or None

Retrieve a color of the given kind that matches scheme_kind. If a color has no scheme preference defined, it will be returned for either scheme type, unless a more suitable color was found.

New in version 0.15.2.

remove_color(kind, scheme_preference)
Parameters:

Deletes a color that matches the given type and scheme preference.

New in version 0.15.2.

set_color(kind, scheme_preference, colorcode)
Parameters:

Sets a new accent color. If a color of the given kind with the given scheme preference already exists, it will be overriden with the new color code.

New in version 0.15.2.