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.color
color0xFFFFFFForeground color
common.theme.foreground.alpha
percent1Foreground opacity

Background​

AttributeTypeDefaultDescription
common.theme.background.color
color0x000000Background color
common.theme.background.alpha
percent1Background opacity

Border​

info

Inherits from common.theme.foreground

AttributeTypeDefaultDescription
common.theme.border.color
color0xFFFFFFBorder color
common.theme.border.size
integer0Border thickness

In pixels

common.theme.border.alpha
percent1Border opacity
common.theme.border.radius
integer4Corner radius

In pixels

Shadow​

AttributeTypeDefaultDescription
common.theme.shadow.color
color0x000000Shadow color
common.theme.shadow.size
integer8Shadow size

In pixels

common.theme.shadow.angle
integer45Shadow angle

In degrees starting from the right and going clockwise

common.theme.shadow.alpha
percent0.5Shadow opacity

Text​

All the texts in the viewer inherit from this formatting.

info

Inherits from common.theme.foreground

AttributeTypeDefaultDescription
common.text.font
selectdefaultText font
common.text.size
integer12Text size
common.text.color
colorText color
common.text.alpha
percent0Text opacity
common.text.bold
booleanfalseUse bold text
common.text.italic
booleanfalseUse italic text

Background​

Background of the publication.

AttributeTypeDefaultDescription
common.background.color
colorBackground color
common.background.resize
selectfillBackground image resize mode.
common.background.blur
integer0Background image blur
common.background.grayscale
percent0Background image grayscale

Context​

These styles define context management configuration for the viewer.

Margins​

AttributeTypeDefaultDescription
common.context.margin.popup
integer8Margin for popups and other UI elements

In pixels

common.context.margin.tooltip
integer8Margin for the tooltips

In pixels

common.context.margin.zoom
integer0Margin 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.width
integer300Minimum width

In pixels

common.context.mini.height
integer240Minimum height

In pixels

Resize​

AttributeTypeDefaultDescription
common.context.resize.delay
integer200Delay before resizing the viewer context

In milliseconds

Zoom​

AttributeTypeDefaultDescription
common.context.zoom.max
integer450Maximum zoom percent value
common.context.zoom.mode
selectcursorBehavior of the zoom.