Skip to content

Commit 90b4c65

Browse files
committed
Remove background from license information (CLI)
1 parent f904ae3 commit 90b4c65

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

searchcode/cli.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,11 @@ def licence(
6767
console.print(
6868
License.terms_and_conditions,
6969
justify="center",
70-
style="on #272822", # monokai themed background :)
7170
)
7271
elif warranty:
7372
console.print(
7473
License.warranty,
7574
justify="center",
76-
style="on #272822",
7775
)
7876
else:
7977
click.echo(ctx.get_help())
@@ -179,7 +177,9 @@ def code(id: int):
179177
if code_data:
180178
status.update("Determining code language")
181179
language = guess_language_all_methods(code=code_data)
182-
syntax = Syntax(code=code_data, lexer=language, line_numbers=True)
180+
syntax = Syntax(
181+
code=code_data, lexer=language, line_numbers=True, theme="dracula"
182+
)
183183
console.print(syntax)
184184

185185

@@ -228,7 +228,11 @@ def extract_code_string_with_linenumbers(lines_dict: t.Dict[str, str]) -> str:
228228
)
229229

230230
syntax = Syntax(
231-
code=code_string, lexer=language, word_wrap=False, indent_guides=True
231+
code=code_string,
232+
lexer=language,
233+
word_wrap=False,
234+
indent_guides=True,
235+
theme="dracula",
232236
)
233237

234238
panel = Panel(

0 commit comments

Comments
 (0)