Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak command palette tooltip #5439

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ class App(Generic[ReturnType], DOMNode):
scrollbar-background-active: ansi_default;
scrollbar-color: ansi_blue;
scrollbar-color-active: ansi_bright_blue;
scrollbar-color-hover: ansi_bright_blue;
scrollbar-corner-color: ansi_default;
scrollbar-color-hover: ansi_bright_blue;
scrollbar-corner-color: ansi_default;
}

.bindings-table--key {
Expand All @@ -335,18 +335,18 @@ class App(Generic[ReturnType], DOMNode):
}

/* When a widget is maximized */
Screen.-maximized-view {
Screen.-maximized-view {
layout: vertical !important;
hatch: right $panel;
overflow-y: auto !important;
align: center middle;
.-maximized {
dock: initial !important;
dock: initial !important;
}
}
/* Fade the header title when app is blurred */
&:blur HeaderTitle {
text-opacity: 50%;
&:blur HeaderTitle {
text-opacity: 50%;
}
}
*:disabled:can-focus {
Expand Down Expand Up @@ -438,7 +438,7 @@ class MyApp(App[None]):
"""The default value of [Screen.ALLOW_IN_MAXIMIZED_VIEW][textual.screen.Screen.ALLOW_IN_MAXIMIZED_VIEW]."""

CLICK_CHAIN_TIME_THRESHOLD: ClassVar[float] = 0.5
"""The maximum number of seconds between clicks to upgrade a single click to a double click,
"""The maximum number of seconds between clicks to upgrade a single click to a double click,
a double click to a triple click, etc."""

BINDINGS: ClassVar[list[BindingType]] = [
Expand All @@ -465,7 +465,7 @@ class MyApp(App[None]):

ESCAPE_TO_MINIMIZE: ClassVar[bool] = True
"""Use escape key to minimize widgets (potentially overriding bindings).

This is the default value, used if the active screen's `ESCAPE_TO_MINIMIZE` is not changed from `None`.
"""

Expand Down Expand Up @@ -537,7 +537,7 @@ def __init__(

self._registered_themes: dict[str, Theme] = {}
"""Themes that have been registered with the App using `App.register_theme`.

This excludes the built-in themes."""

for theme in BUILTIN_THEMES.values():
Expand Down Expand Up @@ -739,7 +739,7 @@ def __init__(

self.theme_changed_signal: Signal[Theme] = Signal(self, "theme-changed")
"""Signal that is published when the App's theme is changed.

Subscribers will receive the new theme object as an argument to the callback.
"""

Expand Down Expand Up @@ -802,7 +802,7 @@ def __init__(
show=False,
key_display=self.COMMAND_PALETTE_DISPLAY,
priority=True,
tooltip="Open command palette",
tooltip="Open the command palette",
)
)

Expand Down
144 changes: 72 additions & 72 deletions tests/snapshot_tests/__snapshots__/test_snapshots/test_help_panel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading