File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,10 @@ def __init__(self, parent):
133133
134134 class Label (QLabel ):
135135 def __init__ (self , parent ):
136+ palette : QPalette = QApplication .instance ().palette ()
137+ palette .setColor (QPalette .ColorRole .Link ,
138+ palette .color (QPalette .ColorRole .WindowText ))
139+ QApplication .instance ().setPalette (palette )
136140 super ().__init__ (
137141 f'<a href="{ __website__ } "><b>EF*CK</b></a>' ,
138142 textFormat = Qt .TextFormat .RichText ,
@@ -141,10 +145,6 @@ def __init__(self, parent):
141145 openExternalLinks = True ,
142146 parent = parent ,
143147 )
144- palette : QPalette = self .palette ()
145- palette .setColor (QPalette .ColorRole .Link ,
146- palette .color (QPalette .ColorRole .WindowText ))
147- self .setPalette (palette )
148148
149149 self .layout ().addWidget (Label (self ))
150150
You can’t perform that action at this time.
0 commit comments