mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
New style for event result menu
This commit is contained in:
parent
834ee30c86
commit
1d73affa08
@ -76,9 +76,9 @@ class EventResultsMenu(Menu):
|
|||||||
else:
|
else:
|
||||||
row = 0
|
row = 0
|
||||||
if self.event.is_successfull(self.debriefing):
|
if self.event.is_successfull(self.debriefing):
|
||||||
header("Operation success")
|
header("Operation success", "title-green")
|
||||||
else:
|
else:
|
||||||
header("Operation failed")
|
header("Operation failed", "title-red")
|
||||||
|
|
||||||
header("Player losses")
|
header("Player losses")
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@ PADDING_Y = 5
|
|||||||
FG_COLOR = "white"
|
FG_COLOR = "white"
|
||||||
FG_COLOR_LIGHT = "#dddddd"
|
FG_COLOR_LIGHT = "#dddddd"
|
||||||
BG_COLOR = "#4E5760"
|
BG_COLOR = "#4E5760"
|
||||||
BTN_COLOR = "#699245"
|
GREEN = "#699245"
|
||||||
YELLOW = "#BF9A46"
|
YELLOW = "#BF9A46"
|
||||||
RED = "#D0232E"
|
RED = "#D0232E"
|
||||||
BG_TITLE_COLOR = "#2D3E50"
|
BG_TITLE_COLOR = "#2D3E50"
|
||||||
@ -36,8 +36,10 @@ STYLES["italic"] = {"bg": BG_COLOR, "fg": FG_COLOR, "padx": PADDING_X, "pady": P
|
|||||||
STYLES["radiobutton"] = {"bg": BG_COLOR, "fg": "black", "padx": PADDING_X, "pady": PADDING_Y, "font": DEFAULT_FONT,
|
STYLES["radiobutton"] = {"bg": BG_COLOR, "fg": "black", "padx": PADDING_X, "pady": PADDING_Y, "font": DEFAULT_FONT,
|
||||||
"activebackground": BG_COLOR, "highlightbackground": BG_COLOR, "selectcolor": "white"}
|
"activebackground": BG_COLOR, "highlightbackground": BG_COLOR, "selectcolor": "white"}
|
||||||
STYLES["title"] = {"bg": BG_TITLE_COLOR, "fg": FG_COLOR, "padx": PADDING_X, "pady": PADDING_Y, "font": TITLE_FONT}
|
STYLES["title"] = {"bg": BG_TITLE_COLOR, "fg": FG_COLOR, "padx": PADDING_X, "pady": PADDING_Y, "font": TITLE_FONT}
|
||||||
|
STYLES["title-green"] = {"bg": GREEN, "fg": FG_COLOR, "padx": PADDING_X, "pady": PADDING_Y, "font": TITLE_FONT}
|
||||||
|
STYLES["title-red"] = {"bg": RED, "fg": FG_COLOR, "padx": PADDING_X, "pady": PADDING_Y, "font": TITLE_FONT}
|
||||||
STYLES["header"] = {"bg": BG_TITLE_COLOR}
|
STYLES["header"] = {"bg": BG_TITLE_COLOR}
|
||||||
|
|
||||||
STYLES["btn-primary"] = {"bg": BTN_COLOR, "fg": FG_COLOR, "padx": PADDING_X, "pady": 2, "font": DEFAULT_FONT}
|
STYLES["btn-primary"] = {"bg": GREEN, "fg": FG_COLOR, "padx": PADDING_X, "pady": 2, "font": DEFAULT_FONT}
|
||||||
STYLES["btn-danger"] = {"bg": RED, "fg": FG_COLOR, "padx": PADDING_X, "pady": 2, "font": DEFAULT_FONT}
|
STYLES["btn-danger"] = {"bg": RED, "fg": FG_COLOR, "padx": PADDING_X, "pady": 2, "font": DEFAULT_FONT}
|
||||||
STYLES["btn-warning"] = {"bg": YELLOW, "fg": FG_COLOR, "padx": PADDING_X, "pady": 2, "font": DEFAULT_FONT}
|
STYLES["btn-warning"] = {"bg": YELLOW, "fg": FG_COLOR, "padx": PADDING_X, "pady": 2, "font": DEFAULT_FONT}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user