Skip to content

Commit

Permalink
fix appearance of message type edit button in dark themes
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed Apr 20, 2019
1 parent 7c0bcac commit 2eb33b1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/urh/ui/delegates/MessageTypeButtonDelegate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from PyQt5.QtCore import pyqtSlot
from PyQt5.QtGui import QIcon, QPixmap, QPainter, QColor, QPen, QFontMetrics, QBrush
from PyQt5.QtWidgets import QStyledItemDelegate, QToolButton
from PyQt5.QtWidgets import QStyledItemDelegate, QPushButton

from urh.ui.views.MessageTypeTableView import MessageTypeTableView
from urh.util import util
Expand All @@ -14,8 +14,8 @@ def __init__(self, parent=None):
super().__init__(parent)

def createEditor(self, parent, option, index):
button = QToolButton(parent)
button.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
button = QPushButton(parent)
button.setFlat(True)

num_rules = self.parent().model().get_num_active_rules_of_message_type_at(index.row())

Expand All @@ -25,7 +25,6 @@ def createEditor(self, parent, option, index):
icon = self.draw_indicator(indicator=num_rules)

button.setIcon(icon)
button.setText("...")
button.clicked.connect(self.on_btn_clicked)
return button

Expand Down

0 comments on commit 2eb33b1

Please sign in to comment.