mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-30 17:36:27 +02:00
Fix background color function.
This commit is contained in:
parent
8aa06c7d70
commit
1197a60bac
2 changed files with 4 additions and 3 deletions
|
@ -79,7 +79,8 @@ class MapConfiguration:
|
|||
"""Whether drawing mode is special."""
|
||||
return self.drawing_mode != DrawingMode.NORMAL
|
||||
|
||||
def backghround_color(self) -> Optional[Color]:
|
||||
def background_color(self) -> Optional[Color]:
|
||||
"""Get background map color based on drawing mode."""
|
||||
if self.drawing_mode not in (DrawingMode.NORMAL, DrawingMode.BLACK):
|
||||
return Color("#111111")
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue