From 8cf85db94a222d44853bea4ddaa482d7ae824589 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" Date: Sat, 1 Jun 2019 19:14:25 +0200 Subject: [PATCH] Made timeline view labels transparent, and changed red to blue --- nw/gui/timelineview.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nw/gui/timelineview.py b/nw/gui/timelineview.py index c70ccc68..05a041a3 100644 --- a/nw/gui/timelineview.py +++ b/nw/gui/timelineview.py @@ -14,7 +14,7 @@ import logging import nw from PyQt5.QtCore import Qt -from PyQt5.QtGui import QIcon, QColor, QBrush, QPixmap +from PyQt5.QtGui import QIcon, QColor, QPixmap from PyQt5.QtWidgets import ( QDialog, QVBoxLayout, QHBoxLayout, QTableWidget, QTableWidgetItem, QDialogButtonBox, QLabel, QPushButton, QHeaderView @@ -108,13 +108,15 @@ class GuiTimeLineView(QDialog): lblNew = QLabel() lblNew.setPixmap(pxNew) lblNew.setAlignment(Qt.AlignCenter) + lblNew.setAttribute(Qt.WA_TranslucentBackground) self.mainTable.setCellWidget(n, nCol, lblNew) elif theCols[n] == 2: pxNew = QPixmap(10,10) - pxNew.fill(QColor(120,0,0)) + pxNew.fill(QColor(0,0,120)) lblNew = QLabel() lblNew.setPixmap(pxNew) lblNew.setAlignment(Qt.AlignCenter) + lblNew.setAttribute(Qt.WA_TranslucentBackground) self.mainTable.setCellWidget(n, nCol, lblNew) nCol += 1