From cead69c23f54f7f54c5839812589b431675ee247 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Thu, 17 Oct 2024 13:27:15 +0100 Subject: [PATCH] Theme changes --- src/textual/theme.py | 27 ++++++++++++++------------- src/textual/widgets/_list_view.py | 1 + 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/textual/theme.py b/src/textual/theme.py index 14f1ea5e5f..2783948a15 100644 --- a/src/textual/theme.py +++ b/src/textual/theme.py @@ -81,6 +81,20 @@ def to_color_system(self) -> ColorSystem: success="#4EBF71", dark=False, ), + "nord": Theme( + name="nord", + primary="#88C0D0", # Nord8 - Frost + secondary="#81A1C1", # Nord9 - Frost + warning="#EBCB8B", # Nord13 - Aurora (yellow) + error="#BF616A", # Nord11 - Aurora (red) + success="#A3BE8C", # Nord14 - Aurora (green) + accent="#B48EAD", # Nord15 - Aurora (purple) + background="#2E3440", # Nord0 - Polar Night + surface="#3B4252", # Nord1 - Polar Night + panel="#434C5E", # Nord2 - Polar Night + foreground="#D8DEE9", # Nord4 - Snow Storm + dark=True, + ), "gruvbox": Theme( name="gruvbox", primary="#A89A85", @@ -202,19 +216,6 @@ def to_color_system(self) -> ColorSystem: surface="#eee8d5", panel="#eee8d5", ), - "alpine": Theme( - name="alpine", - primary="#4A90E2", # Clear Sky Blue - secondary="#81A1C1", # Misty Blue - warning="#EBCB8B", # Soft Sunlight - error="#BF616A", # Muted Red - success="#A3BE8C", # Alpine Meadow Green - accent="#5E81AC", # Mountain Lake Blue - dark=True, - background="#2E3440", # Dark Slate Grey - surface="#3B4252", # Darker Blue-Grey - panel="#434C5E", # Lighter Blue-Grey - ), "cobalt": Theme( name="cobalt", primary="#334D5C", # Deep Cobalt Blue diff --git a/src/textual/widgets/_list_view.py b/src/textual/widgets/_list_view.py index dd88391b8b..e1efe831f6 100644 --- a/src/textual/widgets/_list_view.py +++ b/src/textual/widgets/_list_view.py @@ -29,6 +29,7 @@ class ListView(VerticalScroll, can_focus=True, can_focus_children=False): ListView { background: transparent; & > ListItem.--highlight { + color: $text; background: $highlight-cursor-blurred; } &:focus-within {