mirror of
https://github.com/lutris/lutris
synced 2024-10-14 19:53:53 +00:00
Add two new sizes for itch.io banners
"banner_med" is 60% size (189, 150) "banner_small" is 30% size (95, 75) The original (315, 250) is still "banner" for compatibility.
This commit is contained in:
parent
efba4a7a53
commit
e5e1c64c17
|
@ -42,6 +42,16 @@ class ItchIoCover(ServiceMedia):
|
|||
return
|
||||
|
||||
|
||||
class ItchIoCoverMedium(ItchIoCover):
|
||||
"""itch.io game cover, at 60% size"""
|
||||
size = (189, 150)
|
||||
|
||||
|
||||
class ItchIoCoverSmall(ItchIoCover):
|
||||
"""itch.io game cover, at 30% size"""
|
||||
size = (95, 75)
|
||||
|
||||
|
||||
class ItchIoGame(ServiceGame):
|
||||
"""itch.io Game"""
|
||||
service = "itchio"
|
||||
|
@ -82,6 +92,8 @@ class ItchIoService(OnlineService):
|
|||
drm_free = True
|
||||
has_extras = True
|
||||
medias = {
|
||||
"banner_small": ItchIoCoverSmall,
|
||||
"banner_med": ItchIoCoverMedium,
|
||||
"banner": ItchIoCover,
|
||||
}
|
||||
default_format = "banner"
|
||||
|
|
Loading…
Reference in a new issue