mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-06 04:41:54 +02:00
Fix documentation and code style.
This commit is contained in:
parent
0e62e4ac90
commit
836caf7138
6 changed files with 17 additions and 14 deletions
|
@ -12,6 +12,8 @@ from map_machine.scheme import Scheme
|
|||
__author__ = "Sergey Vartanov"
|
||||
__email__ = "me@enzet.ru"
|
||||
|
||||
DARK_BACKGROUND: Color = Color("#111111")
|
||||
|
||||
|
||||
class DrawingMode(Enum):
|
||||
"""Map drawing mode."""
|
||||
|
@ -91,7 +93,7 @@ class MapConfiguration:
|
|||
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 DARK_BACKGROUND
|
||||
return None
|
||||
|
||||
def get_icon(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue