From a5801c62e17bb3171dc531cb2763e96527eb4c66 Mon Sep 17 00:00:00 2001 From: ATATC Date: Thu, 22 Feb 2024 14:18:33 -0500 Subject: [PATCH] Added a fault light system. (#59) --- leads_gui/config.py | 2 +- leads_vec/cli.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/leads_gui/config.py b/leads_gui/config.py index 4a9f6d79..2da851c5 100644 --- a/leads_gui/config.py +++ b/leads_gui/config.py @@ -12,7 +12,7 @@ def __init__(self, base: dict[str, _Any]) -> None: self.no_title_bar: bool = False self.manual_mode: bool = False self.refresh_rate: int = 30 - self.font_size_small: int = 12 + self.font_size_small: int = 14 self.font_size_medium: int = 24 self.font_size_large: int = 40 self.font_size_x_large: int = 56 diff --git a/leads_vec/cli.py b/leads_vec/cli.py index 3008c990..2a63cd58 100644 --- a/leads_vec/cli.py +++ b/leads_vec/cli.py @@ -78,7 +78,7 @@ def switch_ecs_mode(mode): selected_hover_color=c) manager["ecs"] = CTkSegmentedButton(manager.root(), values=["STANDARD", "AGGRESSIVE", "SPORT"], - variable=ecs, command=switch_ecs_mode) + variable=ecs, command=switch_ecs_mode, font=("Arial", cfg.font_size_small)) uim = initialize(window, render, ctx, get_controller(MAIN_CONTROLLER)) @@ -149,7 +149,8 @@ def post_suspend(self, e: SuspensionEvent) -> None: ["m1", "m2", "m3"], ["dtcs_status", "abs_status", "ebi_status", "atbs_status", "comm_status"], list(map(lambda s: s.lower(), SystemLiteral)), - ["record_lap", "ecs"] + ["record_lap", "ecs"], + [CTkLabel(uim.root(), image=WheelSpeed, text="")] ] uim.layout(layout) placeholder_row = len(layout)