Bixby Developer Center

Guides
References

dark-theme

optionalvalue optional

An image to use when the UI's dark theme is enabled. The image is specified by URL. If this key is not specified, the image given in the url parent key will be used for the dark theme.

Example

url (icon-default.jpg) {
dark-theme (icon-dark.jpg)
}
Note

If you need to display a dynamic SVG image that is generated inside a capsule action, you can embed the SVG by converting the SVG data to an image source. Prefix image with data and use base64 to encode the SVG string:

var url = `data:image/svg+xml;base64,${base64.encode(pureSvg)}`

In your view file, you would call the URL normally:

content {
section {
image {
url(this.url)
}
}
}

This is useful, for example, if you want to display the current stock prices in a stock market capsule.

Child Keys

macro
optional
Defines a layout, a portion of a layout, or a dialog with a macro
template
optional
Text to be passed
template-macro
optional
Encapsulates dialog logic that normally would lead to duplication