@@ -27,24 +27,23 @@ def __init__(self, view, model):
2727 app_icon_pixmap .scaled (self .app_icon_label .size (), Qt .AspectRatioMode .KeepAspectRatio ,
2828 Qt .SmoothTransformation ))
2929 self .label = QLabel (self )
30- self .label .setGeometry (QRect (100 , 20 , 140 , 16 ))
31- # self.label.setTextFormat(Qt.PlainText)
30+ self .label .setGeometry (QRect (100 , 20 , 150 , 16 ))
3231 self .label_2 = QLabel (self )
3332 self .label_2 .setGeometry (QRect (100 , 170 , 301 , 16 ))
3433 self .label_2 .setOpenExternalLinks (True )
3534 self .label_3 = QLabel (self )
36- self .label_3 .setGeometry (QRect (100 , 94 , 90 , 71 ))
35+ self .label_3 .setGeometry (QRect (100 , 93 , 90 , 71 ))
3736 self .label_4 = QLabel (self )
3837 self .label_4 .setGeometry (QRect (20 , 100 , 47 , 13 ))
3938 self .label_5 = QLabel (self )
40- self .label_5 .setGeometry (QRect (100 , 40 , 47 , 13 ))
39+ self .label_5 .setGeometry (QRect (100 , 40 , 57 , 13 ))
4140 self .label_6 = QLabel (self )
4241 self .label_6 .setGeometry (QRect (20 , 170 , 41 , 13 ))
4342 self .groupBox = QGroupBox (self )
4443 self .groupBox .setGeometry (QRect (20 , 270 , 380 , 221 ))
4544 self .groupBox .setAlignment (Qt .AlignCenter )
4645 self .groupBox .setCheckable (False )
47- self .groupBox .setStyleSheet ("QGroupBox::title {"
46+ self .groupBox .setStyleSheet ("QGroupBox{background-color: transparent;};QGroupBox ::title {"
4847 "subcontrol-origin: margin;"
4948 "subcontrol-position: top center;}" )
5049 self .groupBox .setTitle ('MIT License' )
@@ -58,6 +57,7 @@ def __init__(self, view, model):
5857 self .scrollAreaWidgetContents = QWidget ()
5958 self .scrollAreaWidgetContents .setGeometry (QRect (0 , 0 , 322 , 513 ))
6059 self .verticalLayout = QVBoxLayout (self .scrollAreaWidgetContents )
60+
6161 self .label_7 = QLabel (self .scrollAreaWidgetContents )
6262 self .label_7 .setEnabled (True )
6363 self .label_7 .setInputMethodHints (Qt .ImhNone )
@@ -74,10 +74,6 @@ def __init__(self, view, model):
7474 self .label_9 .setGeometry (QRect (100 , 240 , 151 , 16 ))
7575 self .label_9 .setTextFormat (Qt .MarkdownText )
7676 self .label_9 .setOpenExternalLinks (True )
77- self .label_10 = QLabel (self )
78- self .label_10 .setGeometry (QRect (270 , 200 , 131 , 16 ))
79- self .label_10 .setTextFormat (Qt .MarkdownText )
80- self .label_10 .setOpenExternalLinks (True )
8177 self .label_11 = QLabel (self )
8278 self .label_11 .setGeometry (QRect (255 , 240 , 126 , 16 ))
8379 self .label_11 .setTextFormat (Qt .MarkdownText )
@@ -101,14 +97,19 @@ def __init__(self, view, model):
10197 self .label .setText ("Sitting Posture Detector" )
10298 self .label_3 .setText ("<html><head/><body>Niklas Hoefflin<br/>Tim Spulak<br/>Jan B\u00f6 sch<br/>Pascal "
10399 "Gerber</body></html>" )
100+ self .label_3 .setStyleSheet ('QLabel{font-weight: normal}' )
104101 self .label_4 .setText ("Authors:" )
102+ self .label_4 .setStyleSheet ('QLabel{font-weight: normal;}' )
105103 self .label_5 .setText ("Commit:" )
106104 self .label_15 .setText ('{}' .format (model .commit_hash ))
107105 self .label_6 .setText ("GitHub:" )
106+ self .label_6 .setStyleSheet ('QLabel{font-weight: normal;}' )
108107 self .label_2 .setText ("<html><head/><body><p><a href=\" https://github.com/itakurah/SittingPostureDetection"
109108 "\" ><span style=\" text-decoration: underline; "
110109 "color:#4269b9;\" >https://github.com/itakurah/SittingPostureDetection</span></a></p"
111110 "></body></html>" )
111+ self .label_2 .setStyleSheet ('QLabel{font-weight: normal;}' )
112+ self .label_7 .setStyleSheet ('QLabel{font-weight: normal;}' )
112113 self .label_7 .setText (
113114 "<html><head/><body><p><span style=\" font-family:'Courier New';\" >MIT License</span></p><p><span "
114115 "style=\" font-family:'Courier New';\" >Copyright (c) 2023 Niklas Hoefflin</span></p><p><span style=\" "
@@ -125,30 +126,32 @@ def __init__(self, view, model):
125126 "OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN "
126127 "CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span></p></body></html>" )
127128 self .label_8 .setText ("Icons:" )
129+ self .label_8 .setStyleSheet ('QLabel{font-weight: normal;}' )
128130 self .label_9 .setText ("<html><head/><body><p><a href=\" https://icons8.com/icon/37303/informationen\" ><span "
129131 "style=\" text-decoration: underline; color:#4269b9;\" >Information</span></a> icon by <a "
130132 "href=\" https://icons8.com\" ><span style=\" text-decoration: underline; "
131133 "color:#4269b9;\" >Icons8</span></a></p></body></html>" )
132- self .label_10 .setText ("<html><head/><body><p><a href=\" https://icons8.com/icon/14296/refresh\" ><span "
133- "style=\" text-decoration: underline; color:#4269b9;\" >Refresh</span></a> icon by <a "
134- "href=\" https://icons8.com\" ><span style=\" text-decoration: underline; "
135- "color:#4269b9;\" >Icons8</span></a></p></body></html>" )
134+ self .label_9 .setStyleSheet ('QLabel{font-weight: normal;}' )
136135 self .label_11 .setText ("<html><head/><body><p><a href=\" https://icons8.com/icon/37308/rotate\" ><span style=\" "
137136 "text-decoration: underline; color:#4269b9;\" >Rotate</span></a> icon by <a "
138137 "href=\" https://icons8.com\" ><span style=\" text-decoration: underline; "
139138 "color:#4269b9;\" >Icons8</span></a></p></body></html>" )
139+ self .label_11 .setStyleSheet ('QLabel{font-weight: normal;}' )
140140 self .label_12 .setText ("<html><head/><body><p><a href=\" https://icons8.com/icon/8183/expand\" ><span style=\" "
141141 "text-decoration: underline; color:#4269b9;\" >Expand</span></a> icon by <a "
142142 "href=\" https://icons8.com\" ><span style=\" text-decoration: underline; "
143143 "color:#4269b9;\" >Icons8</span></a></p></body></html>" )
144+ self .label_12 .setStyleSheet ('QLabel{font-weight: normal;}' )
144145 self .label_13 .setText ("<html><head/><body><p><a href=\" https://icons8.com/icon/8162/flip-horizontal\" ><span "
145146 "style=\" text-decoration: underline; color:#4269b9;\" >Flip Horizontal</span></a> icon "
146147 "by <a href=\" https://icons8.com\" ><span style=\" text-decoration: underline; "
147148 "color:#4269b9;\" >Icons8</span></a></p></body></html>" )
149+ self .label_13 .setStyleSheet ('QLabel{font-weight: normal;}' )
148150 self .label_14 .setText ("<html><head/><body><p><a href=\" https://icons8.com/icon/8171/flip-vertical\" ><span "
149151 "style=\" text-decoration: underline; color:#4269b9;\" >Flip Vertical</span></a> icon by "
150152 "<a href=\" https://icons8.com\" ><span style=\" text-decoration: underline; "
151153 "color:#4269b9;\" >Icons8</span></a></p></body></html>" )
154+ self .label_14 .setStyleSheet ('QLabel{font-weight: normal;}' )
152155
153156 def showEvent (self , event ):
154157 # Calculate the center position based on the parent window
0 commit comments