fix
This commit is contained in:
4 files changed
-49
No files matched your search
@@ -262,28 +262,6 @@ def generate_templates(
|
||||
with open(new_path, "w") as f:
|
||||
f.write(template)
|
||||
|
||||
for file in ready_templates:
|
||||
_template = ""
|
||||
for color in vars(MaterialDynamicColors).keys():
|
||||
color_name = getattr(MaterialDynamicColors, color)
|
||||
if hasattr(color_name, "get_hct"):
|
||||
rgba = color_name.get_hct(scheme).to_rgba()
|
||||
hex_color = rgb_to_hex(rgba)
|
||||
rgb_color = rgba_to_rgb(rgba)
|
||||
new_line = ready_templates[file].format(
|
||||
name=color, hex=hex_color, rgb=rgb_color
|
||||
)
|
||||
_template += new_line
|
||||
if color in additional:
|
||||
new_line = ready_templates[file].format(
|
||||
name=additional[color], hex=hex_color, rgb=rgb_color
|
||||
)
|
||||
_template += new_line
|
||||
|
||||
new_path = join(output_folder, os.path.basename(file))
|
||||
with open(new_path, "w") as f:
|
||||
f.write(_template)
|
||||
|
||||
|
||||
def run_hooks(folder: str):
|
||||
if not os.path.exists(folder):
|
||||
@@ -365,13 +343,6 @@ def main(
|
||||
generate_templates(
|
||||
f"{script_dir}/templates", cache_path, scheme, color_scheme, image_path
|
||||
)
|
||||
generate_templates(
|
||||
f"{script_dir}/templates/svg",
|
||||
join(cache_path, "svg/"),
|
||||
scheme,
|
||||
color_scheme,
|
||||
image_path,
|
||||
)
|
||||
|
||||
if is_dark:
|
||||
subprocess.run(["sh", join(script_dir, "gtk-material.sh")])
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
[general]
|
||||
import = [
|
||||
"<output-folder>/alacritty-<color-scheme>.toml"
|
||||
]
|
||||
[font]
|
||||
normal = { family = "MesloLGS NF", style = "Regular" }
|
||||
bold = { family = "MesloLGS NF", style = "Bold" }
|
||||
italic = { family = "MesloLGS NF", style = "Italic" }
|
||||
bold_italic = { family = "MesloLGS NF", style = "Bold Italic" }
|
||||
size = 12.0
|
||||
@@ -1,5 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px"
|
||||
fill="<onPrimary>">
|
||||
<path
|
||||
d="M480-72 360-192H192v-168L72-480l120-120v-168h168l120-120 120 120h168v168l120 120-120 120v168H600L480-72Zm.23-216Q560-288 616-344.23q56-56.22 56-136Q672-560 615.77-616q-56.22-56-136-56Q400-672 344-615.77q-56 56.22-56 136Q288-400 344.23-344q56.22 56 136 56ZM480-480Zm0 306 90-90h126v-126l90-90-90-90v-126H570l-90-90-90 90H264v126l-90 90 90 90v126h126l90 90Zm0-306Z" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 514 B |
@@ -1,5 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px"
|
||||
fill="<onPrimary>">
|
||||
<path
|
||||
d="M480-72 360-192H192v-168L72-480l120-120v-168h168l120-120 120 120h168v168l120 120-120 120v168H600L480-72Zm0-216q80 0 136-56.23 56-56.22 56-136Q672-560 615.84-616 559.68-672 480-672v384Zm0 114 90-90h126v-126l90-90-90-90v-126H570l-90-90-90 90H264v126l-90 90 90 90v126h126l90 90Zm0-306Z" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 430 B |
Reference in new issue
Block a user