File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def on_mount(self) -> None:
5555class 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 # --------------------------------------------------
You can’t perform that action at this time.
0 commit comments