Skip to content

Commit 1dc8bc9

Browse files
Merge pull request #136 from ChristopherMayes/dark_mode_wavefront_fix
Fix for dark mode
2 parents 6488399 + 2184cff commit 1dc8bc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

beamphysics/wavefront/wavefront.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,10 +654,10 @@ def _repr_html_(self):
654654
fmt = ""
655655

656656
html = f"""
657-
<div style="font-family: monospace; border: 1px solid #ccc; padding: 10px; max-width: 600px;">
657+
<div style="font-family: monospace; border: 1px solid rgba(128,128,128,0.3); padding: 10px; max-width: 600px;">
658658
<h4 style="margin-top: 0;">{self.__class__.__name__}</h4>
659659
<table style="width: 100%; border-collapse: collapse;">
660-
<tr style="background-color: #f0f0f0;">
660+
<tr style="background-color: rgba(128,128,128,0.1);">
661661
<td><b>wavelength</b></td>
662662
<td>{self.wavelength:{fmt}} m</td>
663663
</tr>
@@ -666,15 +666,15 @@ def _repr_html_(self):
666666
<td><b>grid shape</b></td>
667667
<td>{self.shape}</td>
668668
</tr>
669-
<tr style="background-color: #f0f0f0;">
669+
<tr style="background-color: rgba(128,128,128,0.1);">
670670
<td><b>dx</b></td>
671671
<td>{self.dx:{fmt}} m</td>
672672
</tr>
673673
<tr>
674674
<td><b>dy</b></td>
675675
<td>{self.dy:{fmt}} m</td>
676676
</tr>
677-
<tr style="background-color: #f0f0f0;">
677+
<tr style="background-color: rgba(128,128,128,0.1);">
678678
<td><b>dz</b></td>
679679
<td>{self.dz:{fmt}} m</td>
680680
</tr>

0 commit comments

Comments
 (0)