added a line numbers option

This commit is contained in:
SpookyDervish
2025-10-31 07:34:52 +11:00
parent ff3137419a
commit 084d7b4dff
3 changed files with 18 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class Berry(App):
first_tab,
id="file-tabs"
)
yield TextArea.code_editor(placeholder="This file is empty.", theme="css", id="code-editor", disabled=True, soft_wrap=True)
yield TextArea.code_editor(placeholder="This file is empty.", theme="css", id="code-editor", disabled=True, soft_wrap=True, show_line_numbers=bool(int(self.config_handler.get("editor", "line_numbers"))))
#if os.name == "nt":
#with Vertical(id="console-container"):