屏模组添加colorinfo设置、修改配置项UI样式

This commit is contained in:
xinzhu.yin
2026-05-28 10:20:17 +08:00
parent c63b9ef615
commit f8f2d471e5
8 changed files with 752 additions and 155 deletions

View File

@@ -45,11 +45,7 @@ def load_icon(png_path):
def backgroud_style_set():
style = ttk.Style()
# 移除背景色设置,使用默认背景色
style.configure(
"SidebarSelected.TButton",
# anchor="w",
padding=10,
background="#005470",
)
style = ttk.Style() # noqa: F841 - 保持原副作用:确保 Style 实例化
# 现代化样式集中注册Card / ConfigHeader / Toolbar / StatusBar / Sidebar 等)
from app.views.modern_styles import apply_modern_styles
apply_modern_styles()