mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-02 00:00:29 +02:00
Refactor entry point.
This commit is contained in:
parent
cbfdb4de78
commit
9555a5d74f
9 changed files with 400 additions and 266 deletions
|
@ -100,7 +100,7 @@ class MapCSSWriter:
|
|||
:param matcher: tag matcher of Röntgen scheme
|
||||
:param prefix: tag prefix
|
||||
:param opacity: icon opacity
|
||||
:return:
|
||||
:return: string representation of selector
|
||||
"""
|
||||
elements: dict[str, str] = {}
|
||||
|
||||
|
@ -190,7 +190,10 @@ def ui(options) -> None:
|
|||
)
|
||||
collection: IconCollection = IconCollection.from_scheme(scheme, extractor)
|
||||
collection.draw_icons(
|
||||
icons_with_outline_path, color=Color("black"), outline=True
|
||||
icons_with_outline_path,
|
||||
color=Color("black"),
|
||||
outline=True,
|
||||
outline_opacity=0.5,
|
||||
)
|
||||
mapcss_writer: MapCSSWriter = MapCSSWriter(
|
||||
scheme,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue