From c41599f4d690dc0c7caf1870016a30f97a3c6484 Mon Sep 17 00:00:00 2001 From: Benjamin Kirkbride Date: Sun, 31 May 2020 01:24:43 -0400 Subject: [PATCH] rf: use color for text --- pytiled_parser/tiled_object.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytiled_parser/tiled_object.py b/pytiled_parser/tiled_object.py index ca74e6b..c83fe12 100644 --- a/pytiled_parser/tiled_object.py +++ b/pytiled_parser/tiled_object.py @@ -5,7 +5,7 @@ from typing import Callable, Dict, List, Mapping, Optional, Union import attr from typing_extensions import TypedDict -from .common_types import OrderedPair, Size +from .common_types import Color, OrderedPair, Size from .properties import Properties from .template import Template @@ -126,7 +126,7 @@ class Text(TiledObject): font_family: str = "sans-serif" font_size: int = 16 wrap: bool = False - color: str = "#000000" + color: Color = "#000000" bold: bool = False italic: bool = False underline: bool = False