Skip to content

Commit

Permalink
Remove panel override
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Nov 14, 2024
1 parent 478bb0b commit 842a27f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
6 changes: 2 additions & 4 deletions src/textual/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,7 @@ class SimpleCommand(NamedTuple):
"""The description of the command."""


CommandListItem: TypeAlias = (
"SimpleCommand | tuple[str, IgnoreReturnCallbackType, str | None] | tuple[str, IgnoreReturnCallbackType]"
)
CommandListItem: TypeAlias = "SimpleCommand | tuple[str, IgnoreReturnCallbackType, str | None] | tuple[str, IgnoreReturnCallbackType]"


class SimpleProvider(Provider):
Expand Down Expand Up @@ -570,7 +568,7 @@ class CommandPalette(SystemModalScreen[None]):
margin-top: 3;
height: 100%;
visibility: hidden;
background: $panel-darken-1;
background: $surface;
}
CommandPalette #--input {
Expand Down
9 changes: 0 additions & 9 deletions src/textual/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ def to_color_system(self) -> ColorSystem:
error="#ba3c5b",
success="#4EBF71",
foreground="#e0e0e0",
panel="#2f3236",
dark=True,
),
"textual-light": Theme(
name="textual-light",
Expand Down Expand Up @@ -103,7 +101,6 @@ def to_color_system(self) -> ColorSystem:
error="#BF616A",
surface="#3B4252",
panel="#434C5E",
dark=True,
variables={
"block-cursor-background": "#88C0D0",
"block-cursor-foreground": "#2E3440",
Expand All @@ -126,7 +123,6 @@ def to_color_system(self) -> ColorSystem:
background="#282828",
surface="#3c3836",
panel="#504945",
dark=True,
variables={
"block-cursor-foreground": "#fbf1c7",
"input-selection-background": "#689d6a40",
Expand All @@ -145,7 +141,6 @@ def to_color_system(self) -> ColorSystem:
background="#181825",
surface="#313244",
panel="#45475a",
dark=True,
variables={
"input-cursor-foreground": "#11111b",
"input-cursor-background": "#f5e0dc",
Expand Down Expand Up @@ -195,7 +190,6 @@ def to_color_system(self) -> ColorSystem:
surface="#2B2E3B",
panel="#313442",
foreground="#F8F8F2",
dark=True,
variables={
"button-color-foreground": "#282A36",
},
Expand All @@ -212,7 +206,6 @@ def to_color_system(self) -> ColorSystem:
background="#1A1B26", # Background
surface="#24283B", # Surface
panel="#414868", # Panel
dark=True,
variables={
"button-color-foreground": "#24283B",
},
Expand All @@ -229,7 +222,6 @@ def to_color_system(self) -> ColorSystem:
background="#272822",
surface="#2e2e2e",
panel="#3E3D32",
dark=True,
variables={
"foreground-muted": "#797979",
"input-selection-background": "#575b6190",
Expand All @@ -248,7 +240,6 @@ def to_color_system(self) -> ColorSystem:
surface="#1C1B1A", # base.950
panel="#282726", # base.900
foreground="#FFFCF0", # base.paper
dark=True,
variables={
"input-cursor-foreground": "#5E409D",
"input-cursor-background": "#FFFCF0",
Expand Down

0 comments on commit 842a27f

Please sign in to comment.