Fix details in fixed aspect ratio labels.

This commit is contained in:
alessandro90
2019-05-05 11:45:53 +02:00
parent 175cb66c76
commit 36f941131c
6 changed files with 306 additions and 263 deletions

View File

@@ -8,16 +8,14 @@ class FixedAspectRatioLabel(QLabel):
self.pixmap = None
def set_default_stylesheet(self):
self.setStyleSheet("border: 3px;")
# self.setStyleSheet("""
# color: #ffffff;
# background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,stop:0 #304352 ,stop: 1 #d7d2cc);
# """)
self.setStyleSheet("""border-width: 1px;
border-style: solid;
border-color: black;"""
)
def make_transparent(self):
self.setText('')
self.setStyleSheet("border: 0px;")
# self.setStyleSheet("background-color: transparent;")
self.setStyleSheet("border-width: 0px;")
def apply_pixmap(self):
if self.pixmap: