Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
[gui] Clean up table icon background
Browse files Browse the repository at this point in the history
  • Loading branch information
IceflowRE committed Jan 9, 2021
1 parent 6447f51 commit f686c80
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mp3monitoring/gui/monitor_table_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ def paint(self, painter, option, index):
'stopping': pkg_data.WAIT_SYMBOL,
}

if int(option.state) & QStyle.State_Enabled and int(option.state) & QStyle.State_Selected and int(option.state) & QStyle.State_Active:
if int(option.state) & QStyle.State_Enabled and int(option.state) & QStyle.State_Selected:
brush = QBrush(option.palette.color(option.palette.Highlight))
elif int(option.state) & QStyle.State_Enabled and int(option.state) & QStyle.State_Selected:
brush = QBrush(option.palette.color(option.palette.Background))
else: # int(option.state) == QStyle.State_Enabled
brush = QBrush(option.palette.color(option.palette.Base))
painter.fillRect(option.rect, brush)
Expand Down

0 comments on commit f686c80

Please sign in to comment.