feat(theme): Integrate NERV theme and visual effects into main GUI
This commit is contained in:
10
src/gui_2.py
10
src/gui_2.py
@@ -15,6 +15,7 @@ from src import session_logger
|
||||
from src import project_manager
|
||||
from src import paths
|
||||
from src import theme_2 as theme
|
||||
from src import theme_nerv_fx as theme_fx
|
||||
from src import api_hooks
|
||||
import numpy as np
|
||||
from src import log_registry
|
||||
@@ -130,6 +131,9 @@ class App:
|
||||
self._token_stats: dict[str, Any] = {}
|
||||
self._token_stats_dirty: bool = True
|
||||
self.perf_history: dict[str, list] = {"frame_time": [0.0] * 100, "fps": [0.0] * 100}
|
||||
self._nerv_scanlines = theme_fx.ScanlineOverlay()
|
||||
self._nerv_alert = theme_fx.AlertPulsing()
|
||||
self._nerv_flicker = theme_fx.StatusFlicker()
|
||||
|
||||
def _handle_approve_tool(self, user_data=None) -> None:
|
||||
"""UI-level wrapper for approving a pending tool execution ask."""
|
||||
@@ -293,6 +297,12 @@ class App:
|
||||
if bg.enabled:
|
||||
ws = imgui.get_io().display_size
|
||||
bg.render(ws.x, ws.y)
|
||||
|
||||
if theme.is_nerv_active():
|
||||
ws = imgui.get_io().display_size
|
||||
self._nerv_alert.update(self.ai_status)
|
||||
self._nerv_alert.render(ws.x, ws.y)
|
||||
self._nerv_scanlines.render(ws.x, ws.y)
|
||||
|
||||
pushed_prior_tint = False
|
||||
if self.perf_profiling_enabled: self.perf_monitor.start_component("_gui_func")
|
||||
|
||||
Reference in New Issue
Block a user