Skip to content

Latest commit

 

History

History
77 lines (47 loc) · 1.93 KB

File metadata and controls

77 lines (47 loc) · 1.93 KB

Theme

To provide a theme, you can create a theme json file, or respond theme as json.

Writing Theme

Commandline

In this example, we create a theme file named: theme.json in commandline demo plugin.

The content is as follows:

theme.json

HTTP

In this example, you need expose an endpoint /theme in your web server, we'll use post method to request you.

And you can refer our sample code in http demo plugin.

Python

In this example we create a theme file named theme.json, and writing the following content:

theme.json

QLExpress

In this example we create a theme file named theme.json, and writing the following content:

theme.json

Adding To Specification File

Add the following content to plugin-spec.yml:

Commandline

themes:
  - service: ./theme.json
    name-bundle-id: Demo Theme

HTTP

themes:
  - service: "{entry}/theme"
    name-bundle-id: Demo Theme

Python

themes:
  - service: ./theme.json
    name-bundle-id: Demo Theme

QLExpress

themes:
  - service: ./theme.json
    name-bundle-id: Demo Theme

Read theme explanation.