theme

New in version 0.9.1.

Contents

class ooodev.theme.ThemeBasic(theme_name='')[source]

Theme Basic Properties.

The properties are populated from LibreOffice theme colors.

Automatic color values are returned with a value of -1. All other values are positive numbers.

Parameters:

theme_name (ThemeKind | str) –

__init__(theme_name='')

Constructor

Parameters:

theme_name (ThemeKind | str, optional) – Theme Name. If omitted then the current LibreOffice Theme is used.

Return type:

None

get_theme_color_kind()

Get Theme Color Kind from configuration.

Returns:

Theme Color Kind

Return type:

ThemeColorKind

property comment_color: int

Comment color.

Return type:

int

property error_color: int

Error color.

Return type:

int

property identifier_color: int

Identifier color.

Return type:

int

property keyword_color: int

Keyword color.

Return type:

int

property number_color: int

Number color.

Return type:

int

property operator_color: int

Operator color.

Return type:

int

property string_color: int

String color.

Return type:

int

property theme_name: str

Get theme name

Return type:

str

class ooodev.theme.ThemeCalc(theme_name='')[source]

Theme Calc Properties.

The properties are populated from LibreOffice theme colors.

Automatic color values are returned with a value of -1. All other values are positive numbers.

Parameters:

theme_name (ThemeKind | str) –

__init__(theme_name='')

Constructor

Parameters:

theme_name (ThemeKind | str, optional) – Theme Name. If omitted then the current LibreOffice Theme is used.

Return type:

None

get_theme_color_kind()

Get Theme Color Kind from configuration.

Returns:

Theme Color Kind

Return type:

ThemeColorKind

property detective_color: int

Detective color.

Return type:

int

property detective_error_color: int

Detective Error color.

Return type:

int

property formula_color: int

Formula color.

Return type:

int

property grid_color: int

Grid color.

Return type:

int

property hidden_col_row_color: int

Hidden column/row color.

Return type:

int

property hidden_col_row_visible: bool

Hidden column/row visible.

Return type:

bool

property notes_background_color: int

Notes background color.

Return type:

int

property page_break_auto_color: int

Page Break Automatic color.

Return type:

int

property page_break_manual_color: int

Page Break Manual color.

Return type:

int

property protected_background_color: int

Calc Protected Background color.

Return type:

int

property reference_color: int

Reference color.

Return type:

int

property text_color: int

Text color.

Return type:

int

property theme_name: str

Get theme name

Return type:

str

property value_color: int

Value color.

Return type:

int

class ooodev.theme.ThemeColorKind(value)[source]

An enumeration.

DARK = 2
LIGHT = 1
SYSTEM = 0
UNKNOWN = -1
class ooodev.theme.ThemeDraw(theme_name='')[source]

Theme Draw Properties.

The properties are populated from LibreOffice theme colors.

Automatic color values are returned with a value of -1. All other values are positive numbers.

Parameters:

theme_name (ThemeKind | str) –

__init__(theme_name='')

Constructor

Parameters:

theme_name (ThemeKind | str, optional) – Theme Name. If omitted then the current LibreOffice Theme is used.

Return type:

None

get_theme_color_kind()

Get Theme Color Kind from configuration.

Returns:

Theme Color Kind

Return type:

ThemeColorKind

property grid_color: int

Grid color.

Return type:

int

property grid_visible: bool

Grid visible.

Return type:

bool

property theme_name: str

Get theme name

Return type:

str

class ooodev.theme.ThemeGeneral(theme_name='')[source]

Theme General Properties.

The properties are populated from LibreOffice theme colors.

Automatic color values are returned with a value of -1. All other values are positive numbers.

Parameters:

theme_name (ThemeKind | str) –

__init__(theme_name='')

Constructor

Parameters:

theme_name (ThemeKind | str, optional) – Theme Name. If omitted then the current LibreOffice Theme is used.

Return type:

None

get_theme_color_kind()

Get Theme Color Kind from configuration.

Returns:

Theme Color Kind

Return type:

ThemeColorKind

property background_color: int

Background color.

Return type:

int

property font_color: int

Font color.

Return type:

int

Links color.

Return type:

int

Links visible.

Return type:

bool

Links visited color.

Return type:

int

Links visited visible.

Return type:

bool

property object_boundaries_color: int

Object boundaries color.

Return type:

int

property object_boundaries_visible: bool

Object boundaries visible.

Return type:

bool

property shadow_color: int

Shadow color.

Return type:

int

property shadow_visible: bool

Shadow visible.

Return type:

bool

property smart_tags_color: int

Smart Tags color.

Return type:

int

property spell_color: int

Spelling mistakes color.

Return type:

int

property table_boundaries_color: int

Table Boundaries color.

Return type:

int

property table_boundaries_visible: bool

Table Boundaries visible.

Return type:

bool

property theme_name: str

Get theme name

Return type:

str

class ooodev.theme.ThemeHtml(theme_name='')[source]

Theme HTML properties.

The properties are populated from LibreOffice theme colors.

Automatic color values are returned with a value of -1. All other values are positive numbers.

Parameters:

theme_name (ThemeKind | str) –

__init__(theme_name='')

Constructor

Parameters:

theme_name (ThemeKind | str, optional) – Theme Name. If omitted then the current LibreOffice Theme is used.

Return type:

None

get_theme_color_kind()

Get Theme Color Kind from configuration.

Returns:

Theme Color Kind

Return type:

ThemeColorKind

property comment_color: int

Comment color.

Return type:

int

property keyword_color: int

Keyword color.

Return type:

int

property sgml_color: int

SGML syntax highlighting color.

Return type:

int

property theme_name: str

Get theme name

Return type:

str

property unknown_color: int

Unknown color.

Return type:

int

class ooodev.theme.ThemeKind(value)[source]

Theme Kind Lookup

AUTOMATIC = 'COLOR_SCHEME_LIBREOFFICE_AUTOMATIC'
LIBRE_OFFICE = 'LibreOffice'
LIBRE_OFFICE_DARK = 'LibreOffice Dark'
class ooodev.theme.ThemeRptBuilder(theme_name='')[source]

Theme Report Builder properties

The properties are populated from LibreOffice theme colors.

Automatic color values are returned with a value of -1. All other values are positive numbers.

Parameters:

theme_name (ThemeKind | str) –

__init__(theme_name='')

Constructor

Parameters:

theme_name (ThemeKind | str, optional) – Theme Name. If omitted then the current LibreOffice Theme is used.

Return type:

None

get_theme_color_kind()

Get Theme Color Kind from configuration.

Returns:

Theme Color Kind

Return type:

ThemeColorKind

Column Footer color.

Return type:

int

property column_header_color: int

Column Header color.

Return type:

int

property detail_color: int

Detail color.

Return type:

int

Group Footer color.

Return type:

int

property group_header_color: int

Group Header color.

Return type:

int

property overlap_control_color: int

Overlapped control color.

Return type:

int

Page Footer color.

Return type:

int

property page_header_color: int

Page Header color.

Return type:

int

Report Footer color.

Return type:

int

property report_header_color: int

Report Header color.

Return type:

int

property text_box_bound_content_color: int

Text Box Bound Content color.

Return type:

int

property theme_name: str

Get theme name

Return type:

str

class ooodev.theme.ThemeSql(theme_name='')[source]

Theme SQL Properties.

The properties are populated from LibreOffice theme colors.

Automatic color values are returned with a value of -1. All other values are positive numbers.

Parameters:

theme_name (ThemeKind | str) –

__init__(theme_name='')

Constructor

Parameters:

theme_name (ThemeKind | str, optional) – Theme Name. If omitted then the current LibreOffice Theme is used.

Return type:

None

get_theme_color_kind()

Get Theme Color Kind from configuration.

Returns:

Theme Color Kind

Return type:

ThemeColorKind

property comment_color: int

Comment color.

Return type:

int

property identifier_color: int

Identifier color.

Return type:

int

property keyword_color: int

Keyword color.

Return type:

int

property number_color: int

Keyword color.

Return type:

int

property operator_color: int

Operator color.

Return type:

int

property parameter_color: int

Parameter color.

Return type:

int

property string_color: int

String color.

Return type:

int

property theme_name: str

Get theme name

Return type:

str

class ooodev.theme.ThemeTextDoc(theme_name='')[source]

Theme Text Doc (Writer) Properties.

The properties are populated from LibreOffice theme colors.

Automatic color values are returned with a value of -1. All other values are positive numbers.

Parameters:

theme_name (ThemeKind | str) –

__init__(theme_name='')

Constructor

Parameters:

theme_name (ThemeKind | str, optional) – Theme Name. If omitted then the current LibreOffice Theme is used.

Return type:

None

get_theme_color_kind()

Get Theme Color Kind from configuration.

Returns:

Theme Color Kind

Return type:

ThemeColorKind

property boundaries_color: int

Boundaries color.

Return type:

int

property boundaries_visible: bool

Boundaries visible.

Return type:

bool

property direct_cursor_color: int

Direct Cursor color.

Return type:

int

property direct_cursor_visible: bool

Direct Cursor visible.

Return type:

bool

property doc_color: int

Document color.

Return type:

int

property field_shadings_color: int

Field Shadings color.

Return type:

int

property grammar_color: int

Grammar mistakes color.

Return type:

int

property grid_color: int

Grid color.

Return type:

int

Header and footer delimiter color.

Return type:

int

property index_table_shadings_color: int

Index and Table Shadings color.

Return type:

int

property index_table_shadings_visible: bool

Index and Table Shadings visible.

Return type:

bool

property page_columns_breaks_color: int

Page and Columns breaks color.

Return type:

int

property script_indicator_color: int

Script Indicator color.

Return type:

int

property section_boundaries_color: int

Section Boundaries color.

Return type:

int

property section_boundaries_visible: bool

Direct Cursor visible.

Return type:

bool

property theme_name: str

Get theme name

Return type:

str