Basic
These styles define foundations for look and feel of the viewer.
Theme
Basic color and styles
Foreground
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | 0xFFFFFF | Foreground color |
| percent | 1 | Foreground opacity |
Background
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | 0x000000 | Background color |
| percent | 1 | Background opacity |
Border
info
Inherits from common.theme.foreground
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | 0xFFFFFF | Border color |
| integer | 0 | Border thickness In pixels |
| percent | 1 | Border opacity |
| integer | 4 | Corner radius In pixels |
Shadow
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | 0x000000 | Shadow color |
| integer | 8 | Shadow size In pixels |
| integer | 45 | Shadow angle In degrees starting from the right and going clockwise |
| percent | 0.5 | Shadow opacity |
Text
All the texts in the viewer inherit from this formatting.
info
Inherits from common.theme.foreground
| Attribute | Type | Default | Description |
|---|---|---|---|
| select | default | Text font |
| integer | 12 | Text size |
| color | Text color | |
| percent | 0 | Text opacity |
| boolean | false | Use bold text |
| boolean | false | Use italic text |
Background
Background of the publication.
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Background color | |
| select | fill | Background image resize mode. |
| integer | 0 | Background image blur |
| percent | 0 | Background image grayscale |
Context
These styles define context management configuration for the viewer.
Margins
| Attribute | Type | Default | Description |
|---|---|---|---|
| integer | 8 | Margin for popups and other UI elements In pixels |
| integer | 8 | Margin for the tooltips In pixels |
| integer | 0 | Margin for the zoom mode In pixels |
Screen size
Minimum screen size to automatically switch to mini mode when no mode is defined
| Attribute | Type | Default | Description |
|---|---|---|---|
| integer | 300 | Minimum width In pixels |
| integer | 240 | Minimum height In pixels |
Resize
| Attribute | Type | Default | Description |
|---|---|---|---|
| integer | 200 | Delay before resizing the viewer context In milliseconds |
Zoom
| Attribute | Type | Default | Description |
|---|---|---|---|
| integer | 450 | Maximum zoom percent value |
| select | cursor | Behavior of the zoom. |