Add fancy ASCII art title to status display
- Replaced simple text header with large block-style 'PINAIL' ASCII art - Enhanced visual presentation with colored borders and better spacing - Cyan colored top banner makes the display more eye-catching - Deployed and verified on Pi
This commit is contained in:
@@ -225,19 +225,38 @@ class StatusDisplay:
|
|||||||
"""Draw the complete status display frame."""
|
"""Draw the complete status display frame."""
|
||||||
lines = []
|
lines = []
|
||||||
|
|
||||||
# Title
|
# ASCII Art Title
|
||||||
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
|
||||||
lines.append("")
|
lines.append("")
|
||||||
lines.append("{}{}═════════════════════════════════════════════════════{}".format(
|
lines.append("{}{}".format(Colors.BRIGHT_CYAN + Colors.BOLD,
|
||||||
Colors.BOLD + Colors.CYAN,
|
" ____ _ _ _ _ _ _ _ "))
|
||||||
" piNail2 STATUS DISPLAY ",
|
lines.append("{}".format(
|
||||||
|
" | _ \\| | | | / \\ | | | | | | | "))
|
||||||
|
lines.append("{}".format(
|
||||||
|
" | |_) | | | |/ _ \\ | |_| | | | | "))
|
||||||
|
lines.append("{}".format(
|
||||||
|
" | __/| |_| / ___ \\| _ | |_| | "))
|
||||||
|
lines.append("{}".format(
|
||||||
|
" |_| \\___/_/ \\_\\_| |_|\\___/ "))
|
||||||
|
lines.append("{}".format(Colors.RESET))
|
||||||
|
|
||||||
|
# Timestamp and border
|
||||||
|
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||||
|
lines.append("{}{}═══════════════════════════════════════════════════════{}".format(
|
||||||
|
Colors.BRIGHT_CYAN,
|
||||||
|
"═",
|
||||||
Colors.RESET
|
Colors.RESET
|
||||||
))
|
))
|
||||||
lines.append("{}═════════════════════════════════════════════════════{}".format(
|
lines.append("{}STATUS DISPLAY{} {}{}".format(
|
||||||
Colors.CYAN,
|
Colors.CYAN,
|
||||||
|
Colors.RESET,
|
||||||
|
Colors.DIM,
|
||||||
|
timestamp
|
||||||
|
))
|
||||||
|
lines.append("{}═══════════════════════════════════════════════════════{}".format(
|
||||||
|
Colors.BRIGHT_CYAN,
|
||||||
|
"═",
|
||||||
Colors.RESET
|
Colors.RESET
|
||||||
))
|
))
|
||||||
lines.append("{}{}{}".format(Colors.DIM, timestamp, Colors.RESET))
|
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Get data safely
|
# Get data safely
|
||||||
|
|||||||
Reference in New Issue
Block a user