Skip to content

Commit 6c42d7c

Browse files
feat: Add darkmode to ruler
1 parent b6ec15d commit 6c42d7c

File tree

1 file changed

+5
-1
lines changed
  • src/ansys/tools/visualization_interface/backends/pyvista/widgets

1 file changed

+5
-1
lines changed

src/ansys/tools/visualization_interface/backends/pyvista/widgets/ruler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,18 @@ def callback(self, state: bool) -> None:
7171
self.plotter.remove_actor(self._actor)
7272
self._actor = None
7373
else:
74+
if self._dark_mode:
75+
color = "white"
76+
else:
77+
color = "black"
7478
self._actor = self.plotter.show_bounds(
7579
grid="front",
7680
location="outer",
7781
all_edges=False,
7882
show_xaxis=True,
7983
show_yaxis=True,
8084
show_zaxis=True,
81-
color="black",
85+
color=color,
8286
xtitle="X Axis [m]",
8387
ytitle="Y Axis [m]",
8488
ztitle="Z Axis [m]",

0 commit comments

Comments
 (0)