Support chinese variant, QQ object in launcher and some code optimizations
This commit is contained in:
@ -3,7 +3,7 @@ class Background:
|
||||
|
||||
Note that the `background` variable is an url to the background image,
|
||||
while the `url` variable contains an empty string, so it seems that the
|
||||
`url` and `icon` variables are used by the official launcher itself.
|
||||
`url` and `icon` variables are not used by the official launcher itself.
|
||||
|
||||
Also, the launcher background checksum is using an algorithm which I
|
||||
haven't found out yet, so you better not rely on it but instead rely
|
||||
@ -16,8 +16,9 @@ class Background:
|
||||
- :class:`str` url: The url variable.
|
||||
- :class:`str` version: The launcher background version.
|
||||
- :class:`str` bg_checksum: The launcher background checksum.
|
||||
- :class:`dict` raw: The launcher background raw information in dict.
|
||||
- :class:`dict` raw: The launcher background raw information.
|
||||
"""
|
||||
|
||||
def __init__(self, background, icon, url, version, bg_checksum, raw):
|
||||
"""Inits the launcher background class"""
|
||||
self.background = background
|
||||
@ -31,4 +32,4 @@ class Background:
|
||||
def from_dict(data) -> 'Background':
|
||||
"""Creates a launcher background from a dictionary."""
|
||||
return Background(data["background"], data["icon"], data["url"],
|
||||
data["version"], data["bg_checksum"], data)
|
||||
data["version"], data["bg_checksum"], data)
|
||||
|
||||
Reference in New Issue
Block a user