feat(theme): Integrate NERV theme and visual effects into main GUI

This commit is contained in:
2026-03-09 00:58:22 -04:00
parent d9495f6e23
commit afcb1bf758
2 changed files with 18 additions and 0 deletions
+8
View File
@@ -10,6 +10,7 @@ Scale uses imgui.get_style().font_scale_main.
from imgui_bundle import imgui, hello_imgui
from typing import Any, Optional
import src.theme_nerv
# ------------------------------------------------------------------ palettes
@@ -22,6 +23,7 @@ def _c(r: int, g: int, b: int, a: int = 255) -> tuple[float, float, float, float
_PALETTES: dict[str, dict[int, tuple]] = {
"ImGui Dark": {}, # empty = use imgui dark defaults
"NERV": {},
"10x Dark": {
imgui.Col_.window_bg: _c( 34, 32, 28),
imgui.Col_.child_bg: _c( 30, 28, 24),
@@ -239,6 +241,9 @@ _child_transparency: float = 1.0
def get_current_palette() -> str:
return _current_palette
def is_nerv_active() -> bool:
return _current_palette == "NERV"
def get_current_font_path() -> str:
return _current_font_path
@@ -270,6 +275,9 @@ def apply(palette_name: str) -> None:
"""
global _current_palette
_current_palette = palette_name
if palette_name == 'NERV':
src.theme_nerv.apply_nerv()
return
# 1. Apply base colors
if palette_name in _PALETTES: