diff --git a/ui/opensnitch/customwidgets/colorizeddelegate.py b/ui/opensnitch/customwidgets/colorizeddelegate.py index e4add17fe1..7b75046fe8 100644 --- a/ui/opensnitch/customwidgets/colorizeddelegate.py +++ b/ui/opensnitch/customwidgets/colorizeddelegate.py @@ -48,6 +48,7 @@ def paint(self, painter, option, index): defaultPen = painter.pen() defaultBrush = painter.brush() + self._style = QApplication.style() # get default margins in order to respect them. # option.widget is the QTableView hmargin = self._style.pixelMetric(