-
Notifications
You must be signed in to change notification settings - Fork 27
ImageBlock
Michael Palmos edited this page Aug 21, 2020
·
4 revisions
This block shows images in notification data, like album artwork and stuff like that.
Name | Type | Description | Example |
---|---|---|---|
image_type |
ImageType |
The type of image that this block should display, either App or Hint . Hint images usually show things such as album artwork and display pictures, while App images are usually for app icons or user defined images. |
image_type: Hint |
padding |
Padding |
Padding around the block, which is applied before hooking. | padding: Padding(left: 7.0, right: 7.0, top: 7.0, bottom: 7.0) |
rounding |
float |
Rounding of the corners of the image. | rounding: 3.0 |
scale_width |
int |
If an image exists, its width will be scaled to this size (in pixels). | scale_width: 64 |
scale_height |
int |
If an image exists, its height will be scaled to this size (in pixels). | scale_height: 64 |
filter_mode |
FilterMode |
The scaling algorithm used when resizing images. Either Nearest , Triangle , CatmullRom , Gaussian or Lanczos3 .See here for a comparison of the different filter modes. |
filter_mode: Triangle |
Name | Type | Description | Example |
---|---|---|---|
min_width |
int |
If no image exists, this width will be used. Default: 0
|
min_width: 0 |
min_height |
int |
If no image exists, this height will be used. Default: 0
|
min_height: 0 |
TODO: image of imageblock.