Skip to content

Commit 842a27f

Browse files
committed
Remove panel override
1 parent 478bb0b commit 842a27f

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/textual/command.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,7 @@ class SimpleCommand(NamedTuple):
330330
"""The description of the command."""
331331

332332

333-
CommandListItem: TypeAlias = (
334-
"SimpleCommand | tuple[str, IgnoreReturnCallbackType, str | None] | tuple[str, IgnoreReturnCallbackType]"
335-
)
333+
CommandListItem: TypeAlias = "SimpleCommand | tuple[str, IgnoreReturnCallbackType, str | None] | tuple[str, IgnoreReturnCallbackType]"
336334

337335

338336
class SimpleProvider(Provider):
@@ -570,7 +568,7 @@ class CommandPalette(SystemModalScreen[None]):
570568
margin-top: 3;
571569
height: 100%;
572570
visibility: hidden;
573-
background: $panel-darken-1;
571+
background: $surface;
574572
}
575573
576574
CommandPalette #--input {

src/textual/theme.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ def to_color_system(self) -> ColorSystem:
7272
error="#ba3c5b",
7373
success="#4EBF71",
7474
foreground="#e0e0e0",
75-
panel="#2f3236",
76-
dark=True,
7775
),
7876
"textual-light": Theme(
7977
name="textual-light",
@@ -103,7 +101,6 @@ def to_color_system(self) -> ColorSystem:
103101
error="#BF616A",
104102
surface="#3B4252",
105103
panel="#434C5E",
106-
dark=True,
107104
variables={
108105
"block-cursor-background": "#88C0D0",
109106
"block-cursor-foreground": "#2E3440",
@@ -126,7 +123,6 @@ def to_color_system(self) -> ColorSystem:
126123
background="#282828",
127124
surface="#3c3836",
128125
panel="#504945",
129-
dark=True,
130126
variables={
131127
"block-cursor-foreground": "#fbf1c7",
132128
"input-selection-background": "#689d6a40",
@@ -145,7 +141,6 @@ def to_color_system(self) -> ColorSystem:
145141
background="#181825",
146142
surface="#313244",
147143
panel="#45475a",
148-
dark=True,
149144
variables={
150145
"input-cursor-foreground": "#11111b",
151146
"input-cursor-background": "#f5e0dc",
@@ -195,7 +190,6 @@ def to_color_system(self) -> ColorSystem:
195190
surface="#2B2E3B",
196191
panel="#313442",
197192
foreground="#F8F8F2",
198-
dark=True,
199193
variables={
200194
"button-color-foreground": "#282A36",
201195
},
@@ -212,7 +206,6 @@ def to_color_system(self) -> ColorSystem:
212206
background="#1A1B26", # Background
213207
surface="#24283B", # Surface
214208
panel="#414868", # Panel
215-
dark=True,
216209
variables={
217210
"button-color-foreground": "#24283B",
218211
},
@@ -229,7 +222,6 @@ def to_color_system(self) -> ColorSystem:
229222
background="#272822",
230223
surface="#2e2e2e",
231224
panel="#3E3D32",
232-
dark=True,
233225
variables={
234226
"foreground-muted": "#797979",
235227
"input-selection-background": "#575b6190",
@@ -248,7 +240,6 @@ def to_color_system(self) -> ColorSystem:
248240
surface="#1C1B1A", # base.950
249241
panel="#282726", # base.900
250242
foreground="#FFFCF0", # base.paper
251-
dark=True,
252243
variables={
253244
"input-cursor-foreground": "#5E409D",
254245
"input-cursor-background": "#FFFCF0",

0 commit comments

Comments
 (0)