Skip to content

Commit 998f0cb

Browse files
committed
Rename misleading variable name
Also, all color_names are valid, no need to filter them.
1 parent e1c32fa commit 998f0cb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/textual_dev/previews/colors.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66

77
class ColorButtons(VerticalScroll):
88
def compose(self) -> ComposeResult:
9-
for border in ColorSystem.COLOR_NAMES:
10-
if border:
11-
yield Button(border, id=border)
9+
for color_name in ColorSystem.COLOR_NAMES:
10+
yield Button(color_name, id=color_name)
1211

1312

1413
class ColorBar(Static):

0 commit comments

Comments
 (0)