refactor(ui): replace neon palette and ad-hoc echo with minimal design system

- reduce color palette to red/cyan/white/gray; alias legacy vars onto CYAN
- add show_box_top/mid/bottom, show_separator, show_menu_item, show_prompt helpers to lib/common.sh
- update apps/index.sh and tools/index.sh to use new UI helpers instead of inline echo/ANSI
- drop BLINK, REV escape codes and remove hardcoded prompt strings from callers
This commit is contained in:
2026-05-12 22:20:36 -04:00
parent ade8e76a68
commit c7dcaed0bf
4 changed files with 141 additions and 72 deletions
+13 -11
View File
@@ -35,7 +35,7 @@ run_sibling() {
local temp_file exit_code
temp_file=$(mktemp "/tmp/lxs.${script_name%.*}.XXXXXX.sh")
echo -e "${MAGENTA}[··] Fetching ${BOLD}${script_name}${NC}${MAGENTA}...${NC}"
echo -e "${CYAN}[..] Fetching ${BOLD}${script_name}${NC}${CYAN}...${NC}"
if curl -fsSL -H "Cache-Control: no-cache" -o "${temp_file}" "${LXS_RAW_BASE}/${script_path}"; then
echo -e "${GREEN}[OK] Payload acquired${NC}"
chmod +x "${temp_file}"
@@ -53,18 +53,20 @@ run_sibling() {
menu_tools() {
while true; do
clear
show_title "TOOLS" "SYS_DAEMONS"
show_box_top "TOOLS" "SYS_DAEMONS"
echo ""
echo -e " ${YELLOW}◢ 01${NC} ${GRAY}${NC} ${WHITE}System Infos${NC}"
echo -e " ${YELLOW}◢ 02${NC} ${GRAY}${NC} ${WHITE}Server Benchmark${NC}"
echo -e " ${YELLOW}◢ 03${NC} ${GRAY}${NC} ${WHITE}Harden Server${NC}"
echo -e " ${YELLOW}◢ 04${NC} ${GRAY}${NC} ${WHITE}Change Root Password${NC}"
echo -e " ${YELLOW}◢ 05${NC} ${GRAY}${NC} ${WHITE}Update Server${NC}"
echo -e " ${YELLOW}◢ 06${NC} ${GRAY}${NC} ${WHITE}Root SSH Password Login${NC}"
echo -e " ${YELLOW}◢ 07${NC} ${GRAY}${NC} ${WHITE}Welcome Message (MOTD)${NC}"
echo -e " ${RED}◢ 00${NC} ${GRAY}${NC} ${WHITE}BACK${NC}"
show_menu_item "01" "System Infos"
show_menu_item "02" "Server Benchmark"
show_menu_item "03" "Harden Server"
show_menu_item "04" "Change Root Password"
show_menu_item "05" "Update Server"
show_menu_item "06" "Root SSH Password Login"
show_menu_item "07" "Welcome Message (MOTD)"
show_menu_item "00" "BACK" "" exit
echo ""
echo -e -n "${YELLOW}${NC}${MAGENTA}_${NC} "
show_box_bottom
echo ""
show_prompt
read -r choice
case $choice in