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:
parent
cfbb6ea578
commit
dfa12a0138
|
@ -15,7 +15,7 @@ class IconGameWidget(GameWidget):
|
||||||
def __init__(self, rgame: RareGame, parent=None):
|
def __init__(self, rgame: RareGame, parent=None):
|
||||||
super().__init__(rgame, parent)
|
super().__init__(rgame, parent)
|
||||||
self.setObjectName(f"{rgame.app_name}")
|
self.setObjectName(f"{rgame.app_name}")
|
||||||
self.setFixedSize(ImageSize.Display)
|
self.setFixedSize(ImageSize.Library)
|
||||||
self.ui = IconWidget()
|
self.ui = IconWidget()
|
||||||
self.ui.setupUi(self)
|
self.ui.setupUi(self)
|
||||||
|
|
||||||
|
|
|
@ -70,15 +70,15 @@ class ImageSize:
|
||||||
DisplayWide = Preset(1, 1, Orientation.Wide, base=ImageWide)
|
DisplayWide = Preset(1, 1, Orientation.Wide, base=ImageWide)
|
||||||
"""! @brief Size and pixel ratio for wide 16/9 image display"""
|
"""! @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"""
|
"""! @brief Same as Display"""
|
||||||
|
|
||||||
Small = Preset(3, 1, base=Image)
|
Small = Preset(3, 1, base=Image)
|
||||||
"""! @brief Small image size for displaying"""
|
"""! @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"""
|
"""! @brief Small image size for displaying"""
|
||||||
|
|
||||||
Smaller = Preset(4, 1, base=Image)
|
Smaller = Preset(4, 1, base=Image)
|
||||||
|
|
Loading…
Reference in a new issue