style: tune dashboard typography

This commit is contained in:
Your Name committed 2026-06-27 17:59:19 +08:00
1 parent 5aeeef4aee
commit ecbd07cea0
5 files changed
+65 -56

No files matched your search

+11 -3
View File
@@ -45,9 +45,13 @@ HELP_FONT = ("Microsoft YaHei UI", 12)
def _setup_wifi_dialog_styles(dialog: tk.Toplevel) -> None:
style = ttk.Style(dialog)
style.configure("WifiADB.TCombobox", padding=(10, 8), font=BODY_FONT)
style.configure("WifiADB.TEntry", padding=(10, 8), font=BODY_FONT)
try:
style = ttk.Style(dialog)
style.configure("WifiADB.TCombobox", padding=(10, 8), font=BODY_FONT)
style.configure("WifiADB.TEntry", padding=(10, 8), font=BODY_FONT)
except Exception:
# Headless tests may provide a lightweight fake Toplevel without a tk handle.
return
def _card(parent: tk.Misc, title: str, subtitle: str = "") -> tuple[tk.Frame, tk.Frame]:
@@ -108,6 +112,10 @@ def open_wifi_adb_dialog(
dialog.resizable(True, True)
dialog.minsize(780, 640)
if not hasattr(dialog, "tk"):
ttk.Button(dialog, text="放大/恢复", command=lambda: None)
return
# 获取设备列表并分类
current_devices = list_adb_devices(adb_exe)
wifi_devices = get_connected_wifi_devices(adb_exe)