添加深色模式
This commit is contained in:
@@ -149,12 +149,12 @@ class PQAutomationApp(
|
||||
self.log_visible = False
|
||||
|
||||
# 创建左侧面板
|
||||
self.left_frame = ttk.Frame(self.main_frame, width=180)
|
||||
self.left_frame = ttk.Frame(self.main_frame, width=208)
|
||||
self.left_frame.pack(side=tk.LEFT, fill=tk.Y, padx=0, pady=5)
|
||||
self.left_frame.pack_propagate(False)
|
||||
|
||||
# 创建左侧导航栏
|
||||
self.sidebar_frame = ttk.Frame(self.left_frame, bootstyle="primary")
|
||||
self.sidebar_frame = ttk.Frame(self.left_frame, style="Sidebar.TFrame")
|
||||
self.sidebar_frame.pack(fill=tk.BOTH, expand=True, padx=0, pady=5)
|
||||
# self.sidebar_frame.pack_propagate(False)
|
||||
|
||||
@@ -824,8 +824,10 @@ class PQAutomationApp(
|
||||
def main():
|
||||
try:
|
||||
setup_logging()
|
||||
# root = tk.Tk()
|
||||
# 先以浅色主题启动 Window,再根据用户偏好(含自定义 Calman 深色主题)切换
|
||||
root = ttk.Window(themename="yeti")
|
||||
from app.views.theme_manager import apply_initial_theme
|
||||
apply_initial_theme()
|
||||
app = PQAutomationApp(root)
|
||||
# GUI 创建完成后,把 logging 记录同步到日志面板
|
||||
if hasattr(app, "log_gui"):
|
||||
|
||||
Reference in New Issue
Block a user