Skip to content

Commit a1ff845

Browse files
authored
CLI: Remove background from license information (#32)
2 parents 3ffc4c1 + 24df518 commit a1ff845

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "searchcode"
3-
version = "0.4.3"
3+
version = "0.4.4"
44
description = "Simple, comprehensive code search."
55
authors = ["Ritchie Mwewa <rly0nheart@duck.com>"]
66
license = "GPLv3+"

searchcode/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from .api import Searchcode
2121

2222
__pkg__ = "searchcode"
23-
__version__ = "0.4.3"
23+
__version__ = "0.4.4"
2424
__author__ = "Ritchie Mwewa"
2525

2626

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)