修改深色模式下结果图片显示异常
This commit is contained in:
@@ -600,7 +600,6 @@ def create_connection_content(self: "PQAutomationApp"):
|
||||
com_frame, width=15, height=15, bg="gray", highlightthickness=0
|
||||
)
|
||||
self.ucd_status_indicator.grid(row=0, column=2, padx=(10, 20))
|
||||
self.ucd_status_indicator.config(bg="gray")
|
||||
|
||||
# 添加按钮框架
|
||||
button_frame = ttk.Frame(com_frame)
|
||||
@@ -669,7 +668,8 @@ def create_connection_content(self: "PQAutomationApp"):
|
||||
com_frame, width=15, height=15, bg="gray", highlightthickness=0
|
||||
)
|
||||
self.ca_status_indicator.grid(row=1, column=2, padx=(10, 20))
|
||||
self.ca_status_indicator.config(bg="gray")
|
||||
|
||||
self.refresh_connection_indicators()
|
||||
|
||||
# 添加CA通道设置
|
||||
ttk.Label(com_frame, text="CA通道:").grid(
|
||||
@@ -808,6 +808,11 @@ def _on_toggle_theme(self: "PQAutomationApp") -> None:
|
||||
toggle_theme()
|
||||
# apply_modern_styles()
|
||||
_refresh_theme_toggle_label(self)
|
||||
if hasattr(self, "refresh_connection_indicators"):
|
||||
try:
|
||||
self.refresh_connection_indicators()
|
||||
except Exception:
|
||||
pass
|
||||
if hasattr(self, "apply_result_chart_theme"):
|
||||
try:
|
||||
self.apply_result_chart_theme()
|
||||
|
||||
Reference in New Issue
Block a user