From b3d08f0840cf9c7fa8eb3001e309971af3cfbfad Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Sat, 16 Nov 2024 22:34:27 +0000 Subject: [PATCH] New themes --- src/posting/app.py | 6 +-- src/posting/posting.scss | 9 +++- src/posting/themes.py | 106 +++++++++++++++++++++++++++++++++------ 3 files changed, 101 insertions(+), 20 deletions(-) diff --git a/src/posting/app.py b/src/posting/app.py index 2b8ff42d..2de921ec 100644 --- a/src/posting/app.py +++ b/src/posting/app.py @@ -870,9 +870,9 @@ def __init__( unwanted_themes = [ "textual-ansi", - "catppuccin-latte", - "solarized-light", - "textual-light", + # "catppuccin-latte", + # "solarized-light", + # "textual-light", ] for theme_name in unwanted_themes: diff --git a/src/posting/posting.scss b/src/posting/posting.scss index 2f2ae0f7..c7bd538c 100644 --- a/src/posting/posting.scss +++ b/src/posting/posting.scss @@ -157,6 +157,13 @@ UrlBar { & #method-selector { width: 11; + + &:blur SelectCurrent { + background: $primary-muted; + #label { + color: $text-primary; + } + } } & #trace-markers { @@ -458,7 +465,7 @@ Select { height: 1; border: none; padding: 0 1; - background: $surface-lighten-1; + background: $surface; .arrow { color: $text-disabled; diff --git a/src/posting/themes.py b/src/posting/themes.py index cec66ab7..355615ef 100644 --- a/src/posting/themes.py +++ b/src/posting/themes.py @@ -401,6 +401,68 @@ def load_user_themes() -> dict[str, TextualTheme]: "footer-background": "transparent", }, ), + "nebula": TextualTheme( + name="nebula", + primary="#4A9CFF", + secondary="#66D9EF", + warning="#FFB454", + error="#FF5555", + success="#50FA7B", + accent="#FF79C6", + surface="#193549", + panel="#1F4662", + background="#0D2137", + dark=True, + variables={ + "input-selection-background": "#4A9CFF 35%", + }, + ), + "sunset": TextualTheme( + name="sunset", + primary="#FF7E5F", + secondary="#FEB47B", + warning="#FFD93D", + error="#FF5757", + success="#98D8AA", + accent="#B983FF", + background="#2B2139", + surface="#362C47", + panel="#413555", + dark=True, + variables={ + "input-cursor-background": "#FF7E5F", + "input-selection-background": "#FF7E5F 35%", + "footer-background": "transparent", + "button-color-foreground": "#2B2139", + "method-get": "#FF7E5F", + }, + ), + "aurora": TextualTheme( + name="aurora", + primary="#45FFB3", + secondary="#A1FCDF", + accent="#DF7BFF", + warning="#FFE156", + error="#FF6B6B", + success="#64FFDA", + background="#0A1A2F", + surface="#142942", + panel="#1E3655", + dark=True, + variables={ + "input-cursor-background": "#45FFB3", + "input-selection-background": "#45FFB3 35%", + "footer-background": "transparent", + "button-color-foreground": "#0A1A2F", + "method-get": "#45FFB3", + "method-post": "#DF7BFF", + "method-put": "#A1FCDF", + "method-delete": "#FF6B6B", + "method-patch": "#DF7BFF", + "method-options": "#FFE156", + "method-head": "#7BB2FF", + }, + ), "nautilus": TextualTheme( name="nautilus", primary="#0077BE", @@ -430,22 +492,6 @@ def load_user_themes() -> dict[str, TextualTheme]: "input-selection-background": "#4A9CFF 35%", }, ), - "nebula": TextualTheme( - name="nebula", - primary="#4A9CFF", - secondary="#66D9EF", - warning="#FFB454", - error="#FF5555", - success="#50FA7B", - accent="#FF79C6", - surface="#193549", - panel="#1F4662", - background="#0D2137", - dark=True, - variables={ - "input-selection-background": "#4A9CFF 35%", - }, - ), "twilight": TextualTheme( name="twilight", primary="#367588", @@ -481,4 +527,32 @@ def load_user_themes() -> dict[str, TextualTheme]: "method-head": "#00FF66", }, ), + "manuscript": TextualTheme( + name="manuscript", + primary="#2C4251", # Ink blue + secondary="#6B4423", # Aged leather brown + accent="#8B4513", # Rich leather accent + warning="#B4846C", # Faded sepia + error="#A94442", # Muted red ink + success="#2D5A27", # Library green + background="#F5F1E9", # Aged paper + surface="#EBE6D9", # Textured paper + panel="#E0DAC8", # Parchment + dark=False, + variables={ + "input-cursor-background": "#2C4251", + "input-selection-background": "#2C4251 25%", + "footer-background": "#2C4251", + "footer-key-foreground": "#F5F1E9", + "footer-description-foreground": "#F5F1E9", + "button-color-foreground": "#F5F1E9", + "method-get": "#2C4251", # Ink blue + "method-post": "#2D5A27", # Library green + "method-put": "#6B4423", # Leather brown + "method-delete": "#A94442", # Red ink + "method-patch": "#8B4513", # Rich leather + "method-options": "#4A4A4A", # Dark gray ink + "method-head": "#5C5C5C", # Gray ink + }, + ), }