Skip to content

Commit 5db71d4

Browse files
author
V1LE
authored
Update main.py
1 parent f539570 commit 5db71d4

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

app/main.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def on_mount(self) -> None:
5555
class PanthaTerminal(App):
5656
TITLE = "Pantha Terminal"
5757
SUB_TITLE = "Official Pantha Terminal v1.1.2"
58-
CSS_PATH = Path(__file__).parent / "styles.tcss" # <-- Load your styles.tcss automatically
58+
CSS_PATH = "app/styles.tcss" # <-- Use a string path relative to main.py
5959

6060
status_text: reactive[str] = reactive("Ready")
6161
NOTES_FILE = user_data_dir() / "notes.json"
@@ -89,16 +89,12 @@ def compose(self) -> ComposeResult:
8989
yield Footer()
9090

9191
def on_mount(self) -> None:
92-
# Load the styles.tcss explicitly (optional but ensures styles applied immediately)
93-
css_file = Path(__file__).parent / "styles.tcss"
94-
if css_file.exists():
95-
self.load_stylesheet(css_file.read_text())
96-
9792
log = self.query_one("#log", RichLog)
98-
log.write("[bold #ff4dff]Pantha Terminal Online with Styles Loaded.[/]")
93+
log.write("[bold #ff4dff]Pantha Terminal Online.[/]")
9994
log.write("[#b066ff]Type [bold]pantham[/] to awaken the core.[/]")
10095
self.focus_input()
10196

97+
10298
# --------------------------------------------------
10399
# INPUT / HOTKEYS
104100
# --------------------------------------------------

0 commit comments

Comments
 (0)