mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
@@ -98,6 +98,7 @@ class Footer(Widget):
|
|||||||
highlight_style = self.get_component_rich_style("footer--highlight")
|
highlight_style = self.get_component_rich_style("footer--highlight")
|
||||||
highlight_key_style = self.get_component_rich_style("footer--highlight-key")
|
highlight_key_style = self.get_component_rich_style("footer--highlight-key")
|
||||||
key_style = self.get_component_rich_style("footer--key")
|
key_style = self.get_component_rich_style("footer--key")
|
||||||
|
description_style = self.get_component_rich_style("footer--description")
|
||||||
|
|
||||||
bindings = [
|
bindings = [
|
||||||
binding
|
binding
|
||||||
@@ -122,7 +123,7 @@ class Footer(Widget):
|
|||||||
(f" {key_display} ", highlight_key_style if hovered else key_style),
|
(f" {key_display} ", highlight_key_style if hovered else key_style),
|
||||||
(
|
(
|
||||||
f" {binding.description} ",
|
f" {binding.description} ",
|
||||||
highlight_style if hovered else base_style,
|
highlight_style if hovered else base_style + description_style,
|
||||||
),
|
),
|
||||||
meta={
|
meta={
|
||||||
"@click": f"app.check_bindings('{binding.key}')",
|
"@click": f"app.check_bindings('{binding.key}')",
|
||||||
|
|||||||
Reference in New Issue
Block a user