This commit is contained in:
Auric Vente 2024-07-25 08:22:26 -06:00
parent a4004c8f9d
commit d060d4d2df
1 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@ from PySide6.QtGui import QCursor # type: ignore
from PySide6.QtGui import QMouseEvent from PySide6.QtGui import QMouseEvent
from PySide6.QtGui import QPixmap from PySide6.QtGui import QPixmap
from PySide6.QtGui import QAction from PySide6.QtGui import QAction
from PySide6.QtCore import QSize
from PySide6.QtCore import QTimer # type: ignore from PySide6.QtCore import QTimer # type: ignore
from PySide6.QtCore import Qt from PySide6.QtCore import Qt
@ -220,7 +221,8 @@ class Game:
) )
image_label.setPixmap(scaled_pixmap) image_label.setPixmap(scaled_pixmap)
image_label.setFixedSize(scaled_pixmap.size()) adjusted_size = scaled_pixmap.size() + QSize(4, 4)
image_label.setFixedSize(adjusted_size)
if color: if color:
rgb = Utils.get_rgb(color) rgb = Utils.get_rgb(color)