@@ -540,22 +540,12 @@ async def take_screenshot(self) -> None:
540540 # Save screenshot as SVG (textual's built-in screenshot format)
541541 self .save_screenshot (screenshot_path )
542542
543- # Update controls title to show success
544- controls_title = self .query_one ("#controls-title" , Label )
545- original_text = "Controls"
546- controls_title .update (f"✅ Screenshot saved to { screenshot_path } " )
547-
548- # Reset title after 3 seconds
549- self .set_timer (3.0 , lambda : controls_title .update (original_text ))
543+ # Show success notification
544+ self .notify (f"Screenshot saved to { screenshot_path } " , title = "Screenshot Success" , severity = "information" )
550545
551546 except Exception as e :
552- # Update controls title to show error
553- controls_title = self .query_one ("#controls-title" , Label )
554- original_text = "Controls"
555- controls_title .update (f"❌ Screenshot failed: { str (e )} " )
556-
557- # Reset title after 3 seconds
558- self .set_timer (3.0 , lambda : controls_title .update (original_text ))
547+ # Show error notification
548+ self .notify (f"Screenshot failed: { str (e )} " , title = "Screenshot Error" , severity = "error" )
559549
560550 async def quit_application (self ) -> None :
561551 """Gracefully quit the application"""
0 commit comments