# chematic/lowbar architecture

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

- Interactive diagram: https://gitdiagram.com/chematic/lowbar
- Repository: https://github.com/chematic/lowbar

## Overview

LowBar is a Windows taskbar appearance utility. Its main workflow starts the single-instance app, loads settings, applies a selected taskbar style, and keeps that style protected from Explorer composition writes through an injected native hook. The tray menu also controls startup, language, and update checks; update installation is a separate capability. Edges follow the shown calls and README statements. Several runtime files were not excerpted, so their internal wiring is left out rather than inferred.

Main entry points: [`cmd/lowbar/main.go`](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/main.go) (App startup), [`cmd/lowbar/menu.go`](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/menu.go) (Tray commands), [`cmd/explorerhook/lowbar_explorer_hook.c`](https://github.com/chematic/lowbar/blob/main/cmd/explorerhook/lowbar_explorer_hook.c) (Composition hook), [`cmd/lowbar/explorer_integration.go`](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/explorer_integration.go) (Explorer integration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application runtime"]
  node_entry["App startup<br/>[main.go]"]
  node_process["Process setup<br/>[process.go]"]
  node_instance["Single instance<br/>[instance.go]"]
  node_tray["Tray interface<br/>[tray.go]"]
  node_menu["Tray commands<br/>[menu.go]"]
end

subgraph group_taskbar["Taskbar styling"]
  node_taskbar["Style application<br/>[taskbar.go]"]
end

subgraph group_explorer["Explorer protection"]
  node_explorer["Explorer integration"]
  node_hook["Composition hook"]
end

subgraph group_settings["Settings and controls"]
  node_config[("Local configuration<br/>[config.go]")]
  node_startup["Startup integration<br/>[startup.go]"]
  node_localization["Menu translations<br/>[localization.go]"]
  node_state["Runtime state<br/>[state.go]"]
end

subgraph group_updates["Update management"]
  node_updater["Update checks and install<br/>[updater.go]"]
end

node_user(("Windows user"))
node_windows_shell["Windows Explorer"]
node_releases["GitHub Releases"]

node_user -->|"controls"| node_tray
node_entry -->|"prepares"| node_process
node_entry -->|"checks instance"| node_instance
node_entry -->|"loads settings"| node_config
node_entry -->|"applies style"| node_taskbar
node_entry -->|"starts protection"| node_explorer
node_entry -->|"schedules checks"| node_updater
node_tray -.->|"opens"| node_menu
node_menu -->|"applies style"| node_taskbar
node_menu -->|"sets startup"| node_startup
node_menu -->|"starts checks"| node_updater
node_menu -->|"saves settings"| node_config
node_menu -->|"gets labels"| node_localization
node_explorer -->|"injects DLL"| node_hook
node_hook -->|"intercepts writes"| node_windows_shell
node_hook -->|"queries active state"| node_explorer
node_updater -->|"checks and downloads"| node_releases

click node_entry "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/main.go"
click node_process "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/process.go"
click node_instance "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/instance.go"
click node_tray "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/tray.go"
click node_menu "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/menu.go"
click node_taskbar "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/taskbar.go"
click node_explorer "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/explorer_integration.go"
click node_hook "https://github.com/chematic/lowbar/blob/main/cmd/explorerhook/lowbar_explorer_hook.c"
click node_config "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/config.go"
click node_startup "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/startup.go"
click node_localization "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/localization.go"
click node_state "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/state.go"
click node_updater "https://github.com/chematic/lowbar/blob/main/cmd/lowbar/updater.go"

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_entry,node_process,node_instance,node_tray,node_menu,node_user toneBlue
class node_taskbar toneAmber
class node_explorer,node_hook toneMint
class node_config,node_startup,node_localization,node_state toneRose
class node_updater,node_windows_shell,node_releases toneIndigo
```

## Components

### Application runtime

- [App startup](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/main.go): `cmd/lowbar/main.go`
- [Process setup](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/process.go): `cmd/lowbar/process.go`
- [Single instance](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/instance.go): `cmd/lowbar/instance.go`
- [Tray interface](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/tray.go): `cmd/lowbar/tray.go`
- [Tray commands](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/menu.go): `cmd/lowbar/menu.go`

### Taskbar styling

- [Style application](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/taskbar.go): `cmd/lowbar/taskbar.go`

### Explorer protection

- [Explorer integration](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/explorer_integration.go): `cmd/lowbar/explorer_integration.go`
- [Composition hook](https://github.com/chematic/lowbar/blob/main/cmd/explorerhook/lowbar_explorer_hook.c): `cmd/explorerhook/lowbar_explorer_hook.c`

### Settings and controls

- [Local configuration](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/config.go): `cmd/lowbar/config.go`
- [Startup integration](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/startup.go): `cmd/lowbar/startup.go`
- [Menu translations](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/localization.go): `cmd/lowbar/localization.go`
- [Runtime state](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/state.go): `cmd/lowbar/state.go`

### Update management

- [Update checks and install](https://github.com/chematic/lowbar/blob/main/cmd/lowbar/updater.go): `cmd/lowbar/updater.go`

### Other components

- **Windows user**
- **Windows Explorer**
- **GitHub Releases**

## Connections

- Windows user → Tray interface: controls (evidence: `README.md`)
- App startup → Process setup: prepares (evidence: `cmd/lowbar/main.go`)
- App startup → Single instance: checks instance (evidence: `cmd/lowbar/main.go`)
- App startup → Local configuration: loads settings (evidence: `cmd/lowbar/main.go`)
- App startup → Style application: applies style (evidence: `cmd/lowbar/main.go`)
- App startup → Explorer integration: starts protection (evidence: `cmd/lowbar/main.go`)
- App startup → Update checks and install: schedules checks (evidence: `cmd/lowbar/main.go`)
- Tray interface → Tray commands: opens
- Tray commands → Style application: applies style (evidence: `cmd/lowbar/menu.go`)
- Tray commands → Startup integration: sets startup (evidence: `cmd/lowbar/menu.go`)
- Tray commands → Update checks and install: starts checks (evidence: `cmd/lowbar/menu.go`)
- Tray commands → Local configuration: saves settings (evidence: `cmd/lowbar/menu.go`)
- Tray commands → Menu translations: gets labels (evidence: `cmd/lowbar/menu.go`)
- Explorer integration → Composition hook: injects DLL (evidence: `README.md`)
- Composition hook → Windows Explorer: intercepts writes (evidence: `README.md`)
- Composition hook → Explorer integration: queries active state (evidence: `README.md`)
- Update checks and install → GitHub Releases: checks and downloads (evidence: `cmd/lowbar/updater.go`)
