mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-05-06 21:21:37 +00:00
misc: fix spelling mistakes detected by Typos workflow
This commit is contained in:
parent
c5e06c6b59
commit
484d2e6cca
|
@ -34,7 +34,7 @@ def rgb_to_hash(rgb) -> [str, float]:
|
|||
"""
|
||||
This function converts rgb or rgba-formatted color code to an hexadecimal code.
|
||||
|
||||
Alpha channel from RGBA color codes is passed without any convertion
|
||||
Alpha channel from RGBA color codes is passed without any conversion
|
||||
as a second return variable and is completely ignored in hexadecimal codes
|
||||
to remain compliant with web stantards.
|
||||
"""
|
||||
|
|
|
@ -103,7 +103,7 @@ class CLI:
|
|||
|
||||
monet_parser = subparsers.add_parser("monet", help="generate Material You preset from an image")
|
||||
monet_parser.add_argument("-n", "--preset-name", help="name for a generated preset", required=True)
|
||||
monet_parser.add_argument("-p", "--image-path", help="abosulte path to image", required=True)
|
||||
monet_parser.add_argument("-p", "--image-path", help="absolute path to image", required=True)
|
||||
monet_parser.add_argument("--tone", default=20, help="a tone for colors (default: 20)")
|
||||
monet_parser.add_argument("--theme", choices=["light", "dark"], default="light", help="choose whatever it should be a light or dark theme (default: light)")
|
||||
monet_parser.add_argument("-j", "--json", action="store_true", help="print out a result of this command directly in JSON format")
|
||||
|
|
|
@ -20,8 +20,8 @@ import os
|
|||
|
||||
def list_po():
|
||||
files = []
|
||||
for _, _, filesname in os.walk("po"):
|
||||
for file in filesname:
|
||||
for _, _, filenames in os.walk("po"):
|
||||
for file in filenames:
|
||||
if file.endswith(".po"):
|
||||
files.append(file.strip(".po"))
|
||||
return files
|
||||
|
|
Loading…
Reference in a new issue