Private
Public Access
0
0
Files
manual_slop/src/ui_shared.py
T
ed 9d6fca0e42 fix(gui): Resolve Markdown squashing, MiniMax compression error, and UI import issues
- Modularize discussion entry rendering to src/discussion_entry_renderer.py to fix layout squashing.
- Fix MiniMax compression routing with robust case-insensitive check and synced base URL.
- Implement src/ui_shared.py to resolve circular imports and consolidate shared UI helpers.
- Finalize Structural File Editor integration and state unification.
2026-06-02 03:28:09 -04:00

14 lines
508 B
Python

from __future__ import annotations
from imgui_bundle import imgui
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from src.gui_2 import App
def render_text_viewer(app: 'App', label: str, content: str, text_type: str = 'text', force_open: bool = False, id_suffix: str = "") -> None:
if imgui.button(f"[+]##{id_suffix or str(id(content))}") or force_open:
app.text_viewer_type = text_type
app.show_windows["Text Viewer"] = True
app.text_viewer_title = label
app.text_viewer_content = content