Fix and tweak scrollbar corner color reference.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-05 10:33:42 +00:00
parent 3ebc78260b
commit c81a046c0c

View File

@@ -22,11 +22,11 @@ The `scrollbar-corner-color` sets the color of the gap between the horizontal an
## Example
The example below sets the scrollbar corner (bottom-right of the screen) to white.
The example below sets the scrollbar corner (bottom-right corner of the screen) to white.
=== "Output"
```{.textual path="docs/examples/styles/scrollbar_corner_color.py"}
```{.textual path="docs/examples/styles/scrollbar_corner_color.py" lines=5}
```
=== "scrollbar_corner_color.py"
@@ -44,11 +44,11 @@ The example below sets the scrollbar corner (bottom-right of the screen) to whit
## CSS
```css
scrollbar-color: cyan;
scrollbar-corner-color: white;
```
## Python
```py
widget.styles.scrollbar_color = "cyan"
widget.styles.scrollbar_corner_color = "white"
```