Popup border color is red

This commit is contained in:
Yohann D'ANELLO
2020-11-27 17:52:26 +01:00
parent b7f61d9485
commit fb8d8f033b
3 changed files with 14 additions and 7 deletions

View File

@ -1,5 +1,6 @@
# Copyright (C) 2020 by ÿnérant, eichhornchen, nicomarg, charlse
# SPDX-License-Identifier: GPL-3.0-or-later
import curses
from squirrelbattle.display.display import Box, Display
@ -12,7 +13,7 @@ class MessageDisplay(Display):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.box = Box(*args, **kwargs)
self.box = Box(fg_border_color=curses.COLOR_RED, *args, **kwargs)
self.message = ""
self.pad = self.newpad(1, 1)