Skip to content
14 changes: 14 additions & 0 deletions trace/widgets/control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@ def __init__(self, theme_manager: ThemeManager = None):
pv_plot_button.clicked.connect(self.add_curve_from_line_edit)
pv_plotter_layout.addWidget(pv_plot_button)

# Style the plot button with blue accent color
if self.theme_manager:
blue_color = self.theme_manager.get_icon_color(IconColors.ACCENT)
text_color = "#FFFFFF"
pv_plot_button.setStyleSheet(
f"""
QPushButton {{
background-color: {blue_color};
color: {text_color};
}}
"""
)

self.axis_list = QtWidgets.QVBoxLayout()
frame = QtWidgets.QFrame()
frame.setLayout(self.axis_list)
Expand All @@ -99,6 +112,7 @@ def __init__(self, theme_manager: ThemeManager = None):
self.curve_list_changed.connect(self.formula_dialog.curve_model.refresh)

self.update_icons()
QTimer.singleShot(0, self.pv_line_edit.setFocus)

def update_icons(self) -> None:
"""Update all icons based on current theme."""
Expand Down
Loading