From e4af15c0d3b16fbbbf6cf3c85215c13aee0a82d3 Mon Sep 17 00:00:00 2001 From: Jaipal001 <105307427+BhJaipal@users.noreply.github.com> Date: Sat, 5 Oct 2024 16:37:09 +0530 Subject: [PATCH] Create App menu --- scripts/src/__init__.py | 69 +++++++++++++---------------------------- 1 file changed, 21 insertions(+), 48 deletions(-) diff --git a/scripts/src/__init__.py b/scripts/src/__init__.py index 70caca4..17b7b73 100644 --- a/scripts/src/__init__.py +++ b/scripts/src/__init__.py @@ -284,64 +284,37 @@ def createApp(): ) print( term.royalblue_on_lightblue( - " " * (((term.width - (len("NamePath") + 5)) // 2) - 1) - ), - end="", - ) - print( - term.royalblue_on_lightblue("┌"), - end="", - ) - print( - term.bold_royalblue_on_lightblue( - "─" * (len("Name") + 2) + "ᚁ" + "─" * (len("Path") + 2) - ), - end="", - ) - print( - term.royalblue_on_lightblue("┐"), - end="", - ) - print( - term.royalblue_on_lightblue( - " " * (((term.width - (len("NamePath") + 5)) // 2) - 1) + " " * (((term.width - (len("NamePath") + 5)) // 2) - 2) ) - ) - print( - term.royalblue_on_lightblue( + + term.royalblue_on_lightblue("🬕") + + term.bold_royalblue_on_lightblue( + "🬂" * ((len("Name") // 2) + 1) + "🬨 🬕" + "🬂" * ((len("Path") // 2) + 1) + ) + + term.royalblue_on_lightblue("🬨") + + term.royalblue_on_lightblue( " " * (((term.width - (len("NamePath") + 5)) // 2) - 1) - ), - end="", + ) ) - print(term.bold_royalblue_on_lightblue("│ Name │ Path │"), end="") print( term.royalblue_on_lightblue( + " " * (((term.width - (len("NamePath") + 5)) // 2) - 2) + ) + + term.bold_royalblue_on_lightblue("▌ Name ▐ ▌ Path ▐") + + term.royalblue_on_lightblue( " " * (((term.width - (len("NamePath") + 5)) // 2) - 1) ), ) print( term.royalblue_on_lightblue( - " " * (((term.width - (len("NamePath") + 4)) // 2) - 1) - ), - end="", - ) - print( - term.royalblue_on_lightblue("└"), - end="", - ) - print( - term.bold_royalblue_on_lightblue( - "─" * (len("Name") + 2) + "ᚆ" + "─" * (len("Path") + 2) - ), - end="", - ) - print( - term.royalblue_on_lightblue("┘"), - end="", - ) - print( - term.royalblue_on_lightblue( - " " * (((term.width - (len("NamePath") + 5)) // 2) - 1) + " " * (((term.width - (len("NamePath") + 4)) // 2) - 2) + ) + + term.royalblue_on_lightblue("🬲") + + term.bold_royalblue_on_lightblue( + "🬭" * ((len("Name") // 2) + 1) + "🬷 🬲" + "🬭" * ((len("Path") // 2) + 1) + ) + + term.royalblue_on_lightblue("🬷") + + term.royalblue_on_lightblue( + " " * (((term.width - (len("NamePath") + 5)) // 2) - 2) ) ) print(term.royalblue_on_lightblue(lineSpace(1 / 2)))