Skip to content

Commit

Permalink
fix circle styling
Browse files Browse the repository at this point in the history
  • Loading branch information
droumis committed Aug 31, 2024
1 parent 2ab69c2 commit e178e16
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions holonote/app/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,24 @@ def _create_visible_widget(self):

def _update_stylesheet(self):
self.stylesheet = """
option {
position: relative;
padding-left: 20px;
}
option:after {
content: "";
width: 8px;
height: 8px;
position: absolute;
border-radius: 50%;
left: 1px;
border: 1px solid black;
opacity: 0.5;
}"""
content: "";
width: 8px;
height: 8px;
position: absolute;
border-radius: 50%;
left: 5px;
top: 50%; /* Align vertically */
transform: translateY(-50%); /* Align vertically */
border: 1px solid black;
opacity: 0.60;
}
"""
for _, (option, color) in enumerate(sorted(self.colormap.items())):
self.stylesheet += f"""
option[value="{option}"]:after {{
Expand Down

0 comments on commit e178e16

Please sign in to comment.