This repository was archived by the owner on Jun 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ def resizeEvent(self, event):
6565 @logger .catch
6666 def update_image (self ):
6767 """Update the image based on the theme and resize event."""
68+
6869 if (
6970 "latte" in self .current_theme ["name" ].lower ()
7071 or "light" in self .current_theme ["name" ].lower ()
@@ -74,15 +75,13 @@ def update_image(self):
7475 image_path = "docs/_static/ManimStudioLogoDark.png"
7576
7677 pixmap = QPixmap (image_path )
77- # Ensure the pixmap is valid
7878 if not pixmap .isNull ():
79- # This will maintain the aspect ratio of the image
8079 scaledPixmap = pixmap .scaled (
8180 self .ui .label .size (), Qt .KeepAspectRatio , Qt .SmoothTransformation
8281 )
83-
8482 self .ui .label .setPixmap (scaledPixmap )
85- self .ui .label .setAlignment (Qt .AlignCenter )
83+
84+ self .ui .label .setAlignment (Qt .AlignCenter )
8685
8786 @logger .catch
8887 def apply_stylesheet (self ):
Original file line number Diff line number Diff line change 99 <rect >
1010 <x >0</x >
1111 <y >0</y >
12- <width >420 </width >
13- <height >240 </height >
12+ <width >626 </width >
13+ <height >328 </height >
1414 </rect >
1515 </property >
1616 <property name =" sizePolicy" >
542542 <pixmap >docs/_static/ManimStudioLogoDark.png</pixmap >
543543 </property >
544544 <property name =" scaledContents" >
545- <bool >true </bool >
545+ <bool >false </bool >
546546 </property >
547547 <property name =" alignment" >
548548 <set >Qt::AlignCenter</set >
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def setupUi(self, Main):
2323 if not Main .objectName ():
2424 Main .setObjectName (u"Main" )
2525 Main .setWindowModality (Qt .WindowModal )
26- Main .resize (420 , 240 )
26+ Main .resize (626 , 328 )
2727 sizePolicy = QSizePolicy (QSizePolicy .Preferred , QSizePolicy .Preferred )
2828 sizePolicy .setHorizontalStretch (0 )
2929 sizePolicy .setVerticalStretch (0 )
@@ -137,7 +137,7 @@ def setupUi(self, Main):
137137 font .setPointSize (1 )
138138 self .label .setFont (font )
139139 self .label .setPixmap (QPixmap (u"docs/_static/ManimStudioLogoDark.png" ))
140- self .label .setScaledContents (True )
140+ self .label .setScaledContents (False )
141141 self .label .setAlignment (Qt .AlignCenter )
142142 self .label .setWordWrap (False )
143143 self .label .setMargin (0 )
You can’t perform that action at this time.
0 commit comments