From 2eb33b125c8407964cd1092843cde5010eb88aae Mon Sep 17 00:00:00 2001 From: Johannes Pohl Date: Sat, 20 Apr 2019 10:21:55 +0200 Subject: [PATCH] fix appearance of message type edit button in dark themes --- src/urh/ui/delegates/MessageTypeButtonDelegate.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/urh/ui/delegates/MessageTypeButtonDelegate.py b/src/urh/ui/delegates/MessageTypeButtonDelegate.py index 8d88a0e9d9..5eaa3a751a 100644 --- a/src/urh/ui/delegates/MessageTypeButtonDelegate.py +++ b/src/urh/ui/delegates/MessageTypeButtonDelegate.py @@ -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 @@ -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()) @@ -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