Separate project tree icons from the rest

This commit is contained in:
Veronica Berglyd Olsen
2025-01-08 22:22:09 +01:00
parent 5650792be8
commit a0fea3c025
23 changed files with 215 additions and 138 deletions
+15 -9
View File
@@ -27,8 +27,6 @@ from pathlib import Path
from lxml import etree
MATERIAL_REPO = "https://github.com/google/material-design-icons.git"
GRADE = ""
ICON_MAP = {
"alert_error": "error",
"alert_info": "info",
@@ -48,10 +46,17 @@ ICON_MAP = {
"cls_trash": "delete",
"cls_world": "globe",
"prj_folder": "folder",
"prj_document": "news",
"prj_title": "news",
"prj_chapter": "news",
"prj_scene": "news",
"prj_note": "sticky_note_2",
"fmt_bold": "format_bold",
"fmt_italic": "format_italic",
"fmt_mark": "format_ink_highlighter",
"fmt_strike": "format_strikethrough",
"fmt_strike": "strikethrough_s",
"fmt_subscript": "subscript",
"fmt_superscript": "superscript",
"fmt_underline": "format_underlined",
@@ -76,7 +81,7 @@ ICON_MAP = {
"bookmarks": "bookmarks",
"browse": "folder_open",
"cancel": "cancel",
"checked": "select_check_box",
"checked": "check_box",
"chevron_down": "keyboard_arrow_down",
"chevron_left": "arrow_back_ios",
"chevron_right": "arrow_forward_ios",
@@ -84,10 +89,10 @@ ICON_MAP = {
"close": "close",
"copy": "content_copy",
"document_add": "note_add",
"document": "description",
"document": "docs",
"edit": "edit",
"exclude": "do_not_disturb_on",
"export": "share_windows",
"export": "file_export",
"filter": "filter_alt",
"fit_height": "fit_page_height",
"fit_width": "fit_page_width",
@@ -109,7 +114,7 @@ ICON_MAP = {
"noncheckable": "indeterminate_check_box",
"novel_view": "book_4_spark",
"open": "open_in_new",
"outline": "table",
"outline": "summarize",
"panel": "dock_to_bottom",
"pin": "keep",
"project_copy": "folder_copy",
@@ -121,6 +126,7 @@ ICON_MAP = {
"settings": "settings",
"star": "star",
"stats": "bar_chart",
"text": "subject",
"timer_off": "timer_off",
"timer": "timer",
"unchecked": "disabled_by_default",
@@ -161,8 +167,8 @@ def processMaterialIcons(workDir: Path, iconsDir: Path, jobs: dict) -> None:
icons.write("# This file is automatically generated. Do not edit.\n\n")
icons.write("# Meta\n")
icons.write(f"meta:name = {name}\n")
icons.write("meta:author = Google\n")
icons.write("meta:license = Apache License Version 2.0\n")
icons.write("meta:author = Google Inc\n")
icons.write("meta:license = Apache 2.0\n")
icons.write("\n")
icons.write("# Icons\n")
iconSrc = srcRepo / "symbols" / "web"