Skip to content

Commit

Permalink
fix: Fix rendering icons in colormap preview (#1040)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Style**
- Updated icons throughout the application to have a consistent black
color for improved visibility and aesthetics.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
Czaki committed Dec 4, 2023
1 parent 43c0be1 commit fb4a266
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/PartSeg/common_gui/channel_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def paintEvent(self, a0: QPaintEvent) -> None:
painter.setPen(QColor("white"))
painter.setBrush(QColor("white"))
painter.drawRect(self.rect() - self.margin)
icon: QIcon = qta.icon("fa5s.lock")
icon: QIcon = qta.icon("fa5s.lock", color="black")
icon.paint(painter, self.rect() - self.margin * 2)
painter.restore()

Expand All @@ -701,7 +701,7 @@ def paintEvent(self, a0: QPaintEvent) -> None:
painter.setPen(QColor("white"))
painter.setBrush(QColor("white"))
painter.drawRect(self.rect() - self.margin)
icon: QIcon = qta.icon("mdi.blur")
icon: QIcon = qta.icon("mdi.blur", color="black")
icon.paint(painter, self.rect())
painter.restore()

Expand All @@ -721,6 +721,6 @@ def paintEvent(self, a0: QPaintEvent) -> None:
painter.setPen(QColor("white"))
painter.setBrush(QColor("white"))
painter.drawRect(self.rect() - self.margin)
icon: QIcon = qta.icon("mdi.chart-bell-curve-cumulative")
icon: QIcon = qta.icon("mdi.chart-bell-curve-cumulative", color="black")
icon.paint(painter, self.rect())
painter.restore()

0 comments on commit fb4a266

Please sign in to comment.