1
0
Fork 0
mirror of synced 2024-06-18 02:24:43 +12:00

IconGameWidget: Make icons slightly smaller by using the Library preset

Previously the Display and Library presets were equal. Make the
icons smaller by making the Library preset ~75% of the Display.preset
This commit is contained in:
loathingKernel 2023-12-14 13:47:03 +02:00
parent cfbb6ea578
commit dfa12a0138
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ class IconGameWidget(GameWidget):
def __init__(self, rgame: RareGame, parent=None):
super().__init__(rgame, parent)
self.setObjectName(f"{rgame.app_name}")
self.setFixedSize(ImageSize.Display)
self.setFixedSize(ImageSize.Library)
self.ui = IconWidget()
self.ui.setupUi(self)

View file

@ -70,15 +70,15 @@ class ImageSize:
DisplayWide = Preset(1, 1, Orientation.Wide, base=ImageWide)
"""! @brief Size and pixel ratio for wide 16/9 image display"""
Wide = DisplayWide
LibraryWide = Preset(1.33, 1, Orientation.Wide, base=ImageWide)
Normal = Display
Library = Preset(1.33, 1, base=Image)
"""! @brief Same as Display"""
Small = Preset(3, 1, base=Image)
"""! @brief Small image size for displaying"""
SmallWide = Preset(1, 1, Orientation.Wide, base=ImageWide)
SmallWide = Preset(3, 1, Orientation.Wide, base=ImageWide)
"""! @brief Small image size for displaying"""
Smaller = Preset(4, 1, base=Image)