""" Nautical color theme — day and night modes. """ from PyQt5.QtGui import QColor, QFont # ── Day palette ──────────────────────────────────────────────────────────── BG = QColor('#07090F') PANEL_BG = QColor('#0C1020') BEZEL_DARK = QColor('#10141E') BEZEL_MID = QColor('#1A2030') CARD_BG = QColor('#0A0D18') GOLD = QColor('#C9A84C') GOLD_BRIGHT = QColor('#F0C040') GOLD_DIM = QColor('#6A5820') WHITE = QColor('#E8E8E0') WHITE_DIM = QColor('#7A8A9A') CREAM = QColor('#F5F0E0') RED = QColor('#CC2222') # north marker + lubber line BLUE = QColor('#4A9EFF') # COG marker GREEN = QColor('#44CC88') # GPS valid ORANGE = QColor('#FF8844') # warning DIVIDER = QColor('#1A2030') # ── Night palette ────────────────────────────────────────────────────────── N_BG = QColor('#060708') N_GOLD = QColor('#6A4A10') N_WHITE = QColor('#5A6A55') N_RED = QColor('#661111') N_BLUE = QColor('#1A3A66') def is_night(night: bool): return { 'bg': N_BG if night else BG, 'gold': N_GOLD if night else GOLD, 'bright': N_GOLD if night else GOLD_BRIGHT, 'white': N_WHITE if night else WHITE, 'dim': N_WHITE if night else WHITE_DIM, 'red': N_RED if night else RED, 'blue': N_BLUE if night else BLUE, } # ── AR Electronics brand palette ──────────────────────────────────────────── # Additivos — no reemplazan la paleta operacional náutica. BRAND_NAVY = QColor('#0D1B2A') BRAND_BLUE_ELECTRIC = QColor('#2563EB') BRAND_BLUE_NEON = QColor('#4A9FE8') BRAND_TEXT = QColor('#E2E8F0') BRAND_SILVER = QColor('#C8D2DC') def mono(size: int, bold: bool = False) -> QFont: f = QFont('Courier New', size) f.setBold(bold) return f def sans(size: int, bold: bool = False) -> QFont: f = QFont('Arial', size) f.setBold(bold) return f