Files
server-manager/gui/about_dialog.py
chrome-storm-c442 4959004a3f v1.8.52: icons module, Windows SSH sanitization, embedded RDP improvements, UI polish
- Add core/icons.py — centralized icon text helper with emoji/symbol support
- Add Windows SSH command sanitization in ssh.py (Linux→Windows auto-translation)
- Improve embedded RDP: launch tab connect/disconnect, fullscreen toggle
- Refactor sidebar: cleaner server type badges
- Update server_dialog: adaptive fields per server type
- Add setup_openssh.bat tool
- Update skill-ssh.md and CLAUDE.md docs for Windows SSH support
- Cleanup old releases, add v1.8.48-v1.8.52

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 14:37:37 -05:00

87 lines
2.7 KiB
Python

"""
About dialog — application info, features, quick start.
"""
import customtkinter as ctk
from version import __version__, __author__
from core.i18n import t
class AboutDialog(ctk.CTkToplevel):
def __init__(self, master):
super().__init__(master)
self.title(f"{t('about_title')}{t('version')} {__version__}")
self.geometry("500x480")
self.resizable(False, False)
self.transient(master)
self.grab_set()
self.focus_force()
self.protocol("WM_DELETE_WINDOW", self._on_close)
# ── Header ──
ctk.CTkLabel(
self, text=t("about_title"),
font=ctk.CTkFont(size=24, weight="bold")
).pack(padx=20, pady=(25, 2))
ctk.CTkLabel(
self, text=f"v{__version__}",
font=ctk.CTkFont(size=13), text_color="#9ca3af"
).pack()
ctk.CTkLabel(
self, text=f"by {__author__}",
font=ctk.CTkFont(size=11), text_color="#6b7280"
).pack(pady=(0, 10))
# ── Separator ──
ctk.CTkFrame(self, height=1, fg_color="gray40").pack(fill="x", padx=30, pady=5)
# ── Description ──
ctk.CTkLabel(
self, text=t("about_desc"),
font=ctk.CTkFont(size=12), text_color="#9ca3af",
justify="center", wraplength=440
).pack(padx=20, pady=(8, 5))
# ── Separator ──
ctk.CTkFrame(self, height=1, fg_color="gray40").pack(fill="x", padx=30, pady=5)
# ── Features ──
ctk.CTkLabel(
self, text=t("about_features_title"),
font=ctk.CTkFont(size=14, weight="bold"), anchor="w"
).pack(fill="x", padx=35, pady=(8, 3))
ctk.CTkLabel(
self, text=t("about_features"),
font=ctk.CTkFont(size=12), anchor="w", justify="left"
).pack(fill="x", padx=40, pady=(0, 5))
# ── Separator ──
ctk.CTkFrame(self, height=1, fg_color="gray40").pack(fill="x", padx=30, pady=5)
# ── Quick Start ──
ctk.CTkLabel(
self, text=t("about_howto_title"),
font=ctk.CTkFont(size=14, weight="bold"), anchor="w"
).pack(fill="x", padx=35, pady=(8, 3))
ctk.CTkLabel(
self, text=t("about_howto"),
font=ctk.CTkFont(size=12), anchor="w", justify="left"
).pack(fill="x", padx=40, pady=(0, 10))
# ── Close button ──
ctk.CTkButton(
self, text=t("close"), width=120, command=self._on_close
).pack(pady=(10, 20))
def _on_close(self):
try:
self.grab_release()
except Exception:
pass
self.destroy()