Skip to content

Commit

Permalink
fix snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed May 22, 2024
1 parent 97d11b8 commit 70549c8
Show file tree
Hide file tree
Showing 4 changed files with 2,201 additions and 2,194 deletions.
2 changes: 1 addition & 1 deletion src/textual/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def _get_unicode_name_from_key(key: str) -> str:
This function can be seen as a pseudo-inverse of the function `_character_to_key`.
"""
return KEY_TO_UNICODE_NAME.get(key, key.upper())
return KEY_TO_UNICODE_NAME.get(key, key)


def _get_key_aliases(key: str) -> list[str]:
Expand Down
17 changes: 13 additions & 4 deletions src/textual/widgets/_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ class MarkdownH1(MarkdownHeader):
MarkdownH1 {
content-align: center middle;
text-style: bold;
color: $accent;
color: $success;
&:light {color: $primary;}
}
"""

Expand All @@ -257,7 +258,8 @@ class MarkdownH2(MarkdownHeader):
MarkdownH2 {
text-style: underline;
color: $accent;
color: $success;
&:light {color: $primary;}
}
"""
Expand All @@ -270,7 +272,8 @@ class MarkdownH3(MarkdownHeader):
MarkdownH3 {
text-style: bold;
color: $accent;
color: $success;
&:light {color: $primary;}
margin: 1 0;
width: auto;
}
Expand Down Expand Up @@ -344,10 +347,13 @@ class MarkdownBlockQuote(MarkdownBlock):
DEFAULT_CSS = """
MarkdownBlockQuote {
background: $boost;
border-left: outer $primary;
border-left: outer $success-darken-2;
margin: 1 0;
padding: 0 1;
}
MarkdownBlockQuote:light {
border-left: outer $primary;
}
MarkdownBlockQuote > BlockQuote {
margin-left: 2;
margin-top: 1;
Expand Down Expand Up @@ -541,6 +547,9 @@ class MarkdownBullet(Widget):
width: auto;
color: $success;
text-style: bold;
&:light {
color: $primary;
}
}
"""

Expand Down
Loading

0 comments on commit 70549c8

Please sign in to comment.