From 318f5fd662c143dd5374ad0ebcbaae4dae6535a2 Mon Sep 17 00:00:00 2001 From: Chris Graf Date: Wed, 24 May 2023 22:06:43 -0500 Subject: [PATCH] Fix QCssParser::parseColorValue warnings about alpha channel harvesters-gui currently prints this warning to the console when it starts: ''' WARNING: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 0%' ''' Set the style sheet background property with `rgba` to fix the warning (explicitly sets the alpha channel). --- src/harvesters_gui/_private/frontend/pyqt5/about.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/harvesters_gui/_private/frontend/pyqt5/about.py b/src/harvesters_gui/_private/frontend/pyqt5/about.py index de1c02f..72e4165 100644 --- a/src/harvesters_gui/_private/frontend/pyqt5/about.py +++ b/src/harvesters_gui/_private/frontend/pyqt5/about.py @@ -57,7 +57,7 @@ def __init__(self, text): self.setReadOnly(True) self.setFont(get_system_font()) - self.setStyleSheet('background: rgb(0, 0, 0, 0%)') + self.setStyleSheet('background: rgba(0, 0, 0, 0%)') self.setFrame(False) @@ -68,7 +68,7 @@ def __init__(self, text): self.setReadOnly(True) self.setFont(get_system_font()) - self.setStyleSheet('background: rgb(0, 0, 0, 0%)') + self.setStyleSheet('background: rgba(0, 0, 0, 0%)') self.setLineWrapMode(True) self.setFrameStyle(QFrame.NoFrame) self.setAlignment(Qt.AlignCenter)