# mk4kard/genshadow architecture

> Architecture diagram of the GitHub repository mk4kard/genshadow, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mk4kard/genshadow
- Repository: https://github.com/mk4kard/genshadow

## Overview

GenShadow appears to be a WPF desktop UI, with pages named for light, shadow, and texture. The README provides no workflow details, and the sampled code shows no page navigation or connection to a generation engine. ShadowPage exposes three change-notifying properties and a button that displays a message; the other sampled page classes only initialize their views. The user-to-window relationship is shown as unverified because the available evidence does not establish startup or navigation wiring.

Main entry points: [`GenShadow_UI/MainWindow.xaml.cs`](https://github.com/mk4kard/genshadow/blob/master/GenShadow_UI/MainWindow.xaml.cs) (Main window)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_app["WPF application<br/>[App.xaml.cs]"]
  node_window["Main window<br/>[MainWindow.xaml.cs]"]
end

subgraph group_pages["Generator pages"]
  node_light["Light page<br/>[LightPage.xaml.cs]"]
  node_shadow["Shadow page<br/>[ShadowPage.xaml.cs]"]
  node_texture["Texture page"]
end

node_user(("User"))

node_user -.->|"uses UI"| node_window

click node_app "https://github.com/mk4kard/genshadow/blob/master/GenShadow_UI/App.xaml.cs"
click node_window "https://github.com/mk4kard/genshadow/blob/master/GenShadow_UI/MainWindow.xaml.cs"
click node_light "https://github.com/mk4kard/genshadow/blob/master/GenShadow_UI/Pages/LightPage.xaml.cs"
click node_shadow "https://github.com/mk4kard/genshadow/blob/master/GenShadow_UI/Pages/ShadowPage.xaml.cs"
click node_texture "https://github.com/mk4kard/genshadow/blob/master/GenShadow_UI/Pages/TexturePage.xaml.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_window,node_user toneBlue
class node_light,node_shadow,node_texture toneAmber
```

## Components

### Application shell

- [WPF application](https://github.com/mk4kard/genshadow/blob/master/GenShadow_UI/App.xaml.cs): `GenShadow_UI/App.xaml.cs`
- [Main window](https://github.com/mk4kard/genshadow/blob/master/GenShadow_UI/MainWindow.xaml.cs): `GenShadow_UI/MainWindow.xaml.cs`

### Generator pages

- [Light page](https://github.com/mk4kard/genshadow/blob/master/GenShadow_UI/Pages/LightPage.xaml.cs): `GenShadow_UI/Pages/LightPage.xaml.cs`
- [Shadow page](https://github.com/mk4kard/genshadow/blob/master/GenShadow_UI/Pages/ShadowPage.xaml.cs): `GenShadow_UI/Pages/ShadowPage.xaml.cs`
- [Texture page](https://github.com/mk4kard/genshadow/blob/master/GenShadow_UI/Pages/TexturePage.xaml.cs): `GenShadow_UI/Pages/TexturePage.xaml.cs`

### Other components

- **User**

## Connections

- User → Main window: uses UI
