mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fixed typos
This commit is contained in:
@@ -48,9 +48,9 @@ Note how the combined height of the widget is three rows in the terminal. This i
|
|||||||
|
|
||||||
## Colors
|
## Colors
|
||||||
|
|
||||||
There are a number of style attributes which accept colors. The most commonly used are [color](../styles/color.md) which sets the default color of text on a widget, and [background](..styles/background/md) which sets the background color (beneath the text).
|
There are a number of style attributes which accept colors. The most commonly used are [color](../styles/color.md) which sets the default color of text on a widget, and [background](../styles/background.md) which sets the background color (beneath the text).
|
||||||
|
|
||||||
You can set a color value to one of a number of pre-defined color constants, such as `"crimson"`, `"lime"`, and `"palegreen"`. You can find a full list in the [Color reference](../reference/color.md#textual.color--named-colors).
|
You can set a color value to one of a number of pre-defined color constants, such as `"crimson"`, `"lime"`, and `"palegreen"`. You can find a full list in the [Color API](../api/color.md#textual.color--named-colors).
|
||||||
|
|
||||||
Here's how you would set the screen background to lime:
|
Here's how you would set the screen background to lime:
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ height: 10;
|
|||||||
height: 50%;
|
height: 50%;
|
||||||
|
|
||||||
/* Automatic height */
|
/* Automatic height */
|
||||||
width: auto
|
height: auto
|
||||||
```
|
```
|
||||||
|
|
||||||
## Python
|
## Python
|
||||||
|
|||||||
Reference in New Issue
Block a user