Rename data/tags.yml to scheme/default.yml.

This commit is contained in:
Sergey Vartanov 2021-05-07 01:21:11 +03:00
parent cbbd7bcf05
commit 0f3888430b
7 changed files with 5 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

Before After
Before After

View file

@ -127,7 +127,7 @@ def draw_element(target: str, tags_description: str):
comma, key from value is separated by equals sign.
"""
tags = dict([x.split("=") for x in tags_description.split(",")])
scheme = Scheme("data/tags.yml")
scheme = Scheme("scheme/default.yml")
icon_extractor = IconExtractor("icons/icons.svg")
icon, priority = scheme.get_icon(icon_extractor, tags)
is_for_node: bool = target == "node"

View file

@ -27,7 +27,7 @@ def draw_all_icons(
:param columns: the number of columns in grid
:param step: horizontal and vertical distance between icons
"""
tags_file_name: str = "data/tags.yml"
tags_file_name: str = "scheme/default.yml"
scheme: Scheme = Scheme(tags_file_name)
to_draw: List[Set[str]] = []

View file

@ -22,7 +22,7 @@ from roentgen.point import Occupied, Point
from roentgen.scheme import Scheme
ICONS_FILE_NAME: str = "icons/icons.svg"
TAGS_FILE_NAME: str = "data/tags.yml"
TAGS_FILE_NAME: str = "scheme/default.yml"
MISSING_TAGS_FILE_NAME: str = "missing_tags.yml"
AUTHOR_MODE = "user-coloring"

View file

@ -16,7 +16,7 @@ def test_icons() -> None:
def get_icon(tags: Dict[str, str]):
scheme = Scheme("data/tags.yml")
scheme = Scheme("scheme/default.yml")
icon_extractor = IconExtractor("icons/icons.svg")
icon, _ = scheme.get_icon(icon_extractor, tags)
return icon

View file

@ -5,7 +5,7 @@ from roentgen.scheme import Scheme
def get_text(tags):
scheme = Scheme("data/tags.yml")
scheme = Scheme("scheme/default.yml")
return scheme.construct_text(tags, True)