Command palette changes

This commit is contained in:
Darren Burns
2024-10-22 10:16:15 +01:00
parent c739b1fcd8
commit 2113a4fe66
2 changed files with 10 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ from typing import Any
from textual._on import on
from textual.app import App, ComposeResult
from textual.binding import Binding
from textual.containers import Horizontal, Vertical, VerticalScroll
from textual.containers import Grid, Horizontal, VerticalScroll
from textual.widgets import (
Button,
Collapsible,
@@ -129,7 +129,9 @@ class ChangingThemeApp(App[None]):
#palette {
height: auto;
grid-size: 3;
margin: 1 2;
border-bottom: solid $border;
}
#widget-list {
& > OptionList {
@@ -219,7 +221,7 @@ class ChangingThemeApp(App[None]):
print(theme_name)
def compose(self) -> ComposeResult:
with Vertical(id="palette"):
with Grid(id="palette"):
theme = self.get_theme(self.theme)
for variable, value in vars(theme).items():
if variable not in {