Skip to main content

Basic

These styles define foundations for look and feel of the viewer.

Theme​

Basic color and styles

Foreground​

AttributeTypeDefaultDescription
common.theme.foreground.colorcolor0xFFFFFFForeground color
common.theme.foreground.alphapercent1Foreground opacity

Background​

AttributeTypeDefaultDescription
common.theme.background.colorcolor0x000000Background color
common.theme.background.alphapercent1Background opacity

Border​

info

Inherit from common.theme.foreground

AttributeTypeDefaultDescription
common.theme.border.colorcolor0xFFFFFFBorder color
common.theme.border.sizeinteger0Border thickness

In pixels

common.theme.border.alphapercent1Border opacity
common.theme.border.radiusinteger4Corner radius

In pixels

Shadow​

AttributeTypeDefaultDescription
common.theme.shadow.colorcolor0x000000Shadow color
common.theme.shadow.sizeinteger8Shadow size

In pixels

common.theme.shadow.angleinteger45Shadow angle

In degrees starting from the right and going clockwise

common.theme.shadow.alphapercent0.5Shadow opacity

Text​

All the texts in the viewer inherit from this formatting.

info

Inherit from common.theme.foreground

AttributeTypeDefaultDescription
common.text.fontselectdefaultText font
common.text.sizeinteger12Text size
common.text.colorcolorText color
common.text.alphapercent0Text opacity
common.text.boldbooleanfalseUse bold text
common.text.italicbooleanfalseUse italic text

Background​

Background of the publication.

AttributeTypeDefaultDescription
common.background.colorcolorBackground color
common.background.resizeselectfillBackground image resize mode.
common.background.blurinteger0Background image blur
common.background.grayscalepercent0Background image grayscale

Context​

These styles define context management configuration for the viewer.

Margins​

AttributeTypeDefaultDescription
common.context.margin.popupinteger8Margin for popups and other UI elements

In pixels

common.context.margin.tooltipinteger8Margin for the tooltips

In pixels

common.context.margin.zoominteger0Margin for the zoom mode

In pixels

Screen size​

Minimum screen size to automatically switch to mini mode when no mode is defined

AttributeTypeDefaultDescription
common.context.mini.widthinteger300Minimum width

In pixels

common.context.mini.heightinteger240Minimum height

In pixels

Resize​

AttributeTypeDefaultDescription
common.context.resize.delayinteger200Delay before resizing the viewer context

In milliseconds

Zoom​

AttributeTypeDefaultDescription
common.context.zoom.maxinteger450Maximum zoom percent value
common.context.zoom.modeselectcursorBehavior of the zoom.