-
-
Notifications
You must be signed in to change notification settings - Fork 23
ShapeTitleCard
Cards of this style feature a diamond shape surrounding the text. The shape is intersected by the title text. This card allows the text (and shape) to be positioned at various points around the image.
This card type is used whenever card_type
is specified as shape
.
Below is a table of all valid series extras parsed by this card. These are described in greater detail below.
Label | Default Value | Description |
---|---|---|
hide_shape |
false |
Whether to hide the shape |
italicize_season_text |
false |
Whether to italicize the season text |
season_text_color |
Matches the shape color | Color of the season text |
season_text_font_size |
1.0 |
Scalar to use for the font size |
season_text_position |
below |
Where to position the season text relative to the title text |
shape |
diamond |
The type of shape to add to the Card |
shape_color |
skyblue |
Color of the shape |
shape_inset |
75 |
How far to inset the shape from the edge of the Card |
shape_side_length |
200 |
How long each side of the shape is |
shape_width |
10 |
Width of the shape |
stroke_color |
black |
Color to use for the text stroke |
text_position |
lower left |
Where on the image to position the shape and text |
omit_gradient |
false |
Whether to omit the gradient overlay |
The color of the shape can be customized via the shape_color
extra. This defaults to skyblue
. The color of the season text will match this by default.
The shape can be removed from the Card by specifying hide_shape: true
as an extra. This will only remove the shape, all text positioning will remain the same.
There are two variations of season text - an italicized and non-italicized font. Specifying italicize_season_text: true
will use the italicized variation.