# dominicvan2004/skin-masher architecture

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

- Interactive diagram: https://gitdiagram.com/dominicvan2004/skin-masher
- Repository: https://github.com/dominicvan2004/skin-masher

## Overview

Skin-Masher is a small PyQt desktop tool for browsing and customizing OSU! skins. The user scans a skin folder, chooses an element category, views matching images, and can copy an image into a selected skin. The sampled code shows the UI, JSON catalog, and image widget behavior; it does not show broader skin-management capabilities beyond those operations.

Main entry points: [`uiedit.py`](https://github.com/dominicvan2004/skin-masher/blob/main/uiedit.py) (Main Window), [`classes.py`](https://github.com/dominicvan2004/skin-masher/blob/main/classes.py) (Image Widget), [`untitled.ui`](https://github.com/dominicvan2004/skin-masher/blob/main/untitled.ui) (Window Layout), [`test.json`](https://github.com/dominicvan2004/skin-masher/blob/main/test.json) (Element Catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop UI"]
  node_main_ui["Main Window<br/>[uiedit.py]"]
  node_ui_layout["Window Layout<br/>[untitled.ui]"]
  node_image_widget["Image Widget<br/>[classes.py]"]
end

subgraph group_skin_data["Skin Data"]
  node_catalog["Element Catalog<br/>[test.json]"]
  node_skin_folders["Skin Folders"]
end

node_user(("User"))

node_user -->|"scans or selects"| node_main_ui
node_main_ui -->|"loads layout"| node_ui_layout
node_main_ui -->|"reads and writes"| node_catalog
node_main_ui -->|"scans files"| node_skin_folders
node_main_ui -->|"creates widgets"| node_image_widget
node_image_widget -->|"copies image"| node_skin_folders

click node_main_ui "https://github.com/dominicvan2004/skin-masher/blob/main/uiedit.py"
click node_ui_layout "https://github.com/dominicvan2004/skin-masher/blob/main/untitled.ui"
click node_image_widget "https://github.com/dominicvan2004/skin-masher/blob/main/classes.py"
click node_catalog "https://github.com/dominicvan2004/skin-masher/blob/main/test.json"

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_main_ui,node_ui_layout,node_image_widget,node_user toneBlue
class node_catalog,node_skin_folders toneAmber
```

## Components

### Desktop UI

- [Main Window](https://github.com/dominicvan2004/skin-masher/blob/main/uiedit.py): `uiedit.py`
- [Window Layout](https://github.com/dominicvan2004/skin-masher/blob/main/untitled.ui): `untitled.ui`
- [Image Widget](https://github.com/dominicvan2004/skin-masher/blob/main/classes.py): `classes.py`

### Skin Data

- [Element Catalog](https://github.com/dominicvan2004/skin-masher/blob/main/test.json): `test.json`
- **Skin Folders**

### Other components

- **User**

## Connections

- User → Main Window: scans or selects (evidence: `uiedit.py`)
- Main Window → Window Layout: loads layout (evidence: `uiedit.py`)
- Main Window → Element Catalog: reads and writes (evidence: `uiedit.py`)
- Main Window → Skin Folders: scans files (evidence: `uiedit.py`)
- Main Window → Image Widget: creates widgets (evidence: `uiedit.py`)
- Image Widget → Skin Folders: copies image (evidence: `classes.py`)
