From d619b8094c2bbc12d7718f29a80fd763827405e6 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Mon, 7 Oct 2024 14:42:18 +0100 Subject: [PATCH] Updating change theme text in cmd palette, fix snapshots --- src/textual/app.py | 2 +- .../test_snapshots/test_system_commands.svg | 156 +++++++++--------- 2 files changed, 79 insertions(+), 79 deletions(-) diff --git a/src/textual/app.py b/src/textual/app.py index 03ee3fcc29..daf13f9c37 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -1111,7 +1111,7 @@ def get_system_commands(self, screen: Screen) -> Iterable[SystemCommand]: # self.action_toggle_dark, # ) yield SystemCommand( - "Theme", + "Change theme", "Change the current theme", self.action_change_theme, ) diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_system_commands.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_system_commands.svg index 503faf7554..3b0fafed5c 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_system_commands.svg +++ b/tests/snapshot_tests/__snapshots__/test_snapshots/test_system_commands.svg @@ -19,166 +19,166 @@ font-weight: 700; } - .terminal-1255970630-matrix { + .terminal-1396217553-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-1255970630-title { + .terminal-1396217553-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-1255970630-r1 { fill: #161616 } -.terminal-1255970630-r2 { fill: #0b3a5f } -.terminal-1255970630-r3 { fill: #c5c8c6 } -.terminal-1255970630-r4 { fill: #e0e0e0 } -.terminal-1255970630-r5 { fill: #004578 } -.terminal-1255970630-r6 { fill: #dfe1e2 } -.terminal-1255970630-r7 { fill: #00ff00 } -.terminal-1255970630-r8 { fill: #000000 } -.terminal-1255970630-r9 { fill: #1e1e1e } -.terminal-1255970630-r10 { fill: #697278 } -.terminal-1255970630-r11 { fill: #dfe1e2;font-weight: bold } -.terminal-1255970630-r12 { fill: #8b9296 } -.terminal-1255970630-r13 { fill: #646464 } + .terminal-1396217553-r1 { fill: #161616 } +.terminal-1396217553-r2 { fill: #0b3a5f } +.terminal-1396217553-r3 { fill: #c5c8c6 } +.terminal-1396217553-r4 { fill: #e0e0e0 } +.terminal-1396217553-r5 { fill: #004578 } +.terminal-1396217553-r6 { fill: #dfe1e2 } +.terminal-1396217553-r7 { fill: #00ff00 } +.terminal-1396217553-r8 { fill: #000000 } +.terminal-1396217553-r9 { fill: #1e1e1e } +.terminal-1396217553-r10 { fill: #697278 } +.terminal-1396217553-r11 { fill: #dfe1e2;font-weight: bold } +.terminal-1396217553-r12 { fill: #8b9296 } +.terminal-1396217553-r13 { fill: #646464 } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - SimpleApp + SimpleApp - - - - ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ - -▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ -▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ - -🔎Search for commands… - - -  Light mode                                                                                         -Switch to a light background -  Maximize                                                                                           -Maximize the focused widget -  Quit the application                                                                               -Quit the application as soon as possible -  Save screenshot                                                                                    -Save an SVG 'screenshot' of the current screen -  Show keys and help panel                                                                           -Show help for the focused widget and a summary of available keys -▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ - - - - - - - - - - + + + + ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ + +▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ + +🔎Search for commands… + + +  Change theme                                                                                       +Change the current theme +  Maximize                                                                                           +Maximize the focused widget +  Quit the application                                                                               +Quit the application as soon as possible +  Save screenshot                                                                                    +Save an SVG 'screenshot' of the current screen +  Show keys and help panel                                                                           +Show help for the focused widget and a summary of available keys +▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ + + + + + + + + + +