How memati8383/tengri-theme works
TENGRİ Theme is a Windows Dear ImGui monochrome UI theme and reusable application-shell starter. The principal workflow is Win32/DX11 startup, theme initialization, shell frame construction and page dispatch into either the starter app or the showcase; widgets and drawing assets produce the visible result. The README documents additional theme capabilities preserved here, including typography, effects, icons, branding, and notifications. Edges are limited to excerpted imports/calls and README statements; unsampled implementations are not inferred beyond those documented links.
Main entry points: main.cpp Win32 host · shell.cpp Application shell · demo.cpp Theme showcase · theme.cpp Style and typography
Components 19
Window and rendering
- Win32 host
src/main.cpp - Window hit testing
src/window_hit.hpp
Application content
- Application shell
src/app/shell.cpp - Content contract
src/app/shell.hpp - Starter pages
src/app/my_app.cpp - Theme showcase
src/demo.cpp
Theme and drawing
- Style and typography
src/gui/theme.cpp - Embedded Inter fonts
src/gui/font_data.cpp - Controls and toasts
src/gui/widgets.cpp - Background effects
src/gui/fx.cpp - Vector icons
src/gui/icons.cpp - Brand icon paths
src/gui/brand_icons.cpp - Brand image
src/gui/logo.cpp - Embedded logo data
src/gui/logo_data.cpp
UI foundation
- Dear ImGui core
third_party/imgui/imgui.cpp - Win32 backend
third_party/imgui/backends/imgui_impl_win32.cpp - DX11 backend
third_party/imgui/backends/imgui_impl_dx11.cpp
Other components
- App user
- Windows and DX11
Connections 30
- App user → Win32 host: starts app
README.md - Win32 host → Windows and DX11: creates window and device
src/main.cpp - Win32 host → Win32 backend: handles Win32 events
src/main.cpp - Win32 host → DX11 backend: renders with DX11
src/main.cpp - Win32 host → Dear ImGui core: runs UI context
README.md - Win32 host → Window hit testing: uses hit testing
src/main.cpp - Win32 host → Application shell: initializes and frames
src/main.cpp - Win32 host → Style and typography: initializes theme
src/main.cpp - Win32 host → Brand image: initializes logo
src/main.cpp - Application shell → Content contract: uses content contract
src/app/shell.cpp - Starter pages → Content contract: provides content
README.md - Theme showcase → Content contract: provides content
src/demo.cpp - Application shell → Controls and toasts: draws shell controls
src/app/shell.cpp - Application shell → Background effects: draws background
src/app/shell.cpp - Application shell → Style and typography: uses tokens
src/app/shell.cpp - Application shell → Vector icons: uses navigation icons
src/app/shell.cpp - Application shell → Brand image: draws branding
src/app/shell.cpp - Starter pages → Controls and toasts: builds pages with
src/app/my_app.cpp - Starter pages → Background effects: edits effect settings
src/app/my_app.cpp - Starter pages → Style and typography: uses typography
src/app/my_app.cpp - Theme showcase → Controls and toasts: showcases controls
src/demo.cpp - Theme showcase → Background effects: showcases primitives
src/demo.cpp - Theme showcase → Style and typography: shows theme tokens
src/demo.cpp - Theme showcase → Vector icons: shows icons
src/demo.cpp - Theme showcase → Brand image: shows brand image
src/demo.cpp - Controls and toasts → Style and typography: uses style tokens
src/gui/widgets.cpp - Controls and toasts → Background effects: draws gradients
src/gui/widgets.cpp - Style and typography → Embedded Inter fonts: loads embedded fonts
src/gui/theme.cpp - Vector icons → Brand icon paths: draws brand glyphs
src/gui/icons.cpp - Brand image → Embedded logo data: loads logo resource
src/gui/logo.cpp