Skip to content

Commit

Permalink
Merge pull request #1091 from reupen/doc-fixes
Browse files Browse the repository at this point in the history
Make minor documentation improvements
  • Loading branch information
reupen authored Jan 21, 2025
2 parents 20a2d05 + 7e62d9e commit c680d2e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions docs/source/item-details/title-formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $set_format(
| `font-family` | \<font family name> \| `initial` |
| `font-size` | \<font size in points> \| `initial` |
| `font-weight` | \<1–999> \| `initial` |
| `font-stretch` | \<1–9> \| <percentage> \| `initial` |
| `font-stretch` | \<1–9> \| \<percentage> \| `initial` |
| `font-style` | `normal` \| `italic` \| `oblique` \| `initial` |
| `text-decoration` | `none` \| `underline` \| `initial` |

Expand All @@ -39,30 +39,30 @@ Percentages must use the suffix `%%` or `pc`, for example `150%%` or `150pc`

#### Examples

##### Change the font weight temporarily
##### Set all properties

```
$set_format(
font-weight: 700;
font-family: Segoe UI Variable;
font-size: 20;
font-weight: 300;
font-stretch: 100%%;
font-style: italic;
text-decoration: underline;
)
```

This text is in bold.
##### Change the font weight temporarily

```
$set_format(
font-weight: initial;
font-weight: 700;
)
```
##### Set all properties
This text is in bold.
```
$set_format(
font-family: Segoe UI Variable;
font-size: 20;
font-weight: 300;
font-stretch: 100%%;
font-style: italic;
text-decoration: underline;
font-weight: initial;
)
```

Expand Down
2 changes: 1 addition & 1 deletion docs/source/playlist-view/title-formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ variables scripts.
| `%_system_day_of_week%` | The current day of the week, as a number |
| `%_system_hour%` | The current hour |
| `%_system_julian_day%` | The current Julian day |
| `%_playlist_name%` | The name of the active playlist |
| `%playlist_name%` | The name of the active playlist |

0 comments on commit c680d2e

Please sign in to comment.