{"id":47531049,"url":"https://github.com/NeverMorewd/Pipboy.Avalonia","last_synced_at":"2026-04-11T15:01:26.203Z","repository":{"id":343191874,"uuid":"1173741799","full_name":"NeverMorewd/Pipboy.Avalonia","owner":"NeverMorewd","description":"A Fallout 4 Pip-Boy inspired theme library for Avalonia UI.","archived":false,"fork":false,"pushed_at":"2026-03-24T14:47:27.000Z","size":1224,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T01:44:18.727Z","etag":null,"topics":["avaloniaui","claude-code","fallout","pipboy","retro"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NeverMorewd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-05T17:44:32.000Z","updated_at":"2026-03-31T07:44:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/NeverMorewd/Pipboy.Avalonia","commit_stats":null,"previous_names":["nevermorewd/pipboy.avalonia"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NeverMorewd/Pipboy.Avalonia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeverMorewd%2FPipboy.Avalonia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeverMorewd%2FPipboy.Avalonia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeverMorewd%2FPipboy.Avalonia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeverMorewd%2FPipboy.Avalonia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NeverMorewd","download_url":"https://codeload.github.com/NeverMorewd/Pipboy.Avalonia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeverMorewd%2FPipboy.Avalonia/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31684525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avaloniaui","claude-code","fallout","pipboy","retro"],"created_at":"2026-03-28T00:00:31.791Z","updated_at":"2026-04-11T15:01:26.197Z","avatar_url":"https://github.com/NeverMorewd.png","language":"C#","funding_links":[],"categories":["Libraries \u0026 Extensions"],"sub_categories":["Theme \u0026 Icons"],"readme":"﻿# Pipboy.Avalonia\n\n[![Built with Claude Code](https://img.shields.io/badge/Built%20with-Claude%20Code-blueviolet?logo=anthropic)](https://claude.ai/claude-code)\n[![NuGet](https://img.shields.io/nuget/v/Pipboy.Avalonia?logo=nuget)](https://www.nuget.org/packages/Pipboy.Avalonia)\n[![Live Demo](https://img.shields.io/badge/Live%20Demo-GitHub%20Pages-brightgreen?logo=github)](https://nevermorewd.github.io/Pipboy.Avalonia/)\n\nA Fallout 4 Pip-Boy inspired theme library for [Avalonia UI](https://avaloniaui.net/).\n\nSharp corners, monochromatic phosphor palette, retro terminal aesthetic — drop it in as your sole application theme and every standard control gets the Vault-Tec treatment.\n\n**[▶ Try the live WASM demo](https://nevermorewd.github.io/Pipboy.Avalonia/)** — runs entirely in the browser, no install needed.\n\n\u003e A significant portion of this codebase was written with [Claude Code](https://claude.ai/claude-code).\n\n---\n\n## Screenshots\n\n\u003c!-- Desktop --\u003e\n![Desktop overview](docs/images/screenshot-overview.png)\n\n\u003c!-- Runtime color switching --\u003e\n![Color switching](docs/images/screenshot-colors.png)\n\n![Color switching](docs/images/screenshot-map.png)\n---\n\n## Features\n\n- **Full control coverage** — Button, RepeatButton, HyperlinkButton, SplitButton, DropDownButton, TextBox, CheckBox, RadioButton, ToggleButton, ToggleSwitch, Slider, ProgressBar, ScrollBar, ListBox, ComboBox, TreeView, TabControl, Menu, ContextMenu, Expander, NumericUpDown, AutoCompleteBox, DatePicker, TimePicker, CalendarDatePicker, SplitView, GridSplitter, ToolTip, FlyoutPresenter, DataValidationErrors, Notification, and more.\n- **Runtime color switching** — change the primary color at any time; all brush resources and CRT effects update instantly — no layout passes triggered.\n- **Monochromatic palette** — the entire color system is derived from a single HSL primary color. Hover, pressed, selection, border, and background variants are computed automatically.\n- **Purpose-built controls** — `CrtDisplay`, `PipboyWindow`, `PipboyTitleBar`, `PipboyCountdown`, `PipboyPanel`, `SegmentedBar`, `RatedAttribute`, `BracketHighlight`, `PipboyTabStrip`, `TerminalPanel`, `BlinkText`, `ScanlineOverlay`.\n- **MVVM-ready** — all custom controls expose `ICommand` properties (`CompletedCommand`, `ClosedCommand`) alongside routed events for pure MVVM usage.\n- **No rounded corners** — all controls use `CornerRadius=\"0\"` by design.\n- **Zero third-party dependencies** — only `Avalonia` is referenced.\n- **AOT / trimming compatible** — compiled XAML bindings, `IsTrimmable`, and `IsAotCompatible` all enabled.\n- **`net10.0`** primary target.\n- **Multi-platform** — Desktop (Windows, macOS, Linux), Browser (WASM), Android, iOS.\n- **Typography utility classes** — `h1`, `h2`, `dim`, `accent`, `error`, `warning`, `success` for `TextBlock`; `pipboy-panel`, `pipboy-surface` for `Border`.\n\n---\n\n## Platform Support\n\n| Platform | Project suffix | Notes |\n|----------|---------------|-------|\n| Windows / macOS / Linux | `.Desktop` | `IClassicDesktopStyleApplicationLifetime` |\n| Browser (WASM) | `.Browser` | `net8.0-browser`, `Avalonia.Browser` |\n| Android | `.Android` | `net8.0-android` |\n| iOS | `.iOS` | `net8.0-ios` |\n\n---\n\n## Installation\n\n```\ndotnet add package Pipboy.Avalonia\n```\n\n---\n\n## Quick Start\n\n### 1. Apply the theme in `App.axaml`\n\n```xml\n\u003cApplication xmlns=\"https://github.com/avaloniaui\"\n             xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n             xmlns:pipboy=\"clr-namespace:Pipboy.Avalonia;assembly=Pipboy.Avalonia\"\n             x:Class=\"MyApp.App\"\u003e\n  \u003cApplication.Styles\u003e\n    \u003cpipboy:PipboyTheme /\u003e\n  \u003c/Application.Styles\u003e\n\u003c/Application\u003e\n```\n\n`PipboyTheme` is a self-contained `Styles` collection — no base Fluent/Simple theme required.\n\n### 2. (Optional) Set the primary color at startup\n\n```csharp\n// In App.axaml.cs or Program.cs — before the window is shown\nPipboyThemeManager.Instance.SetPrimaryColor(Color.Parse(\"#FFA500\")); // Amber\n```\n\nThe default color is phosphor green (`#4CAF50`-ish).\n\n### 3. (Optional) Change color at runtime\n\n```csharp\nPipboyThemeManager.Instance.SetPrimaryColor(Color.Parse(\"#00BFFF\")); // Blue\n```\n\nSubscribe to `ThemeColorChanged` if you need to react to changes:\n\n```csharp\nPipboyThemeManager.Instance.ThemeColorChanged += (_, e) =\u003e\n{\n    // e.Palette exposes all computed colors\n};\n```\n\n\n---\n\n## Typography Classes\n\nApply directly on `TextBlock`:\n\n| Class | Effect |\n|-------|--------|\n| `h1` | 20 px, bold, primary color |\n| `h2` | 16 px, bold, primary color |\n| `dim` | Dimmed foreground (`PipboyTextDimBrush`) |\n| `accent` | Primary color foreground |\n| `error` | Error red foreground |\n| `warning` | Warning amber foreground |\n| `success` | Success green foreground |\n\n```xml\n\u003cTextBlock Classes=\"h2\" Text=\"INVENTORY\"/\u003e\n\u003cTextBlock Classes=\"dim\" Text=\"Weight: 12.4 lbs\"/\u003e\n\u003cTextBlock Classes=\"error\" Text=\"ENCUMBERED\"/\u003e\n```\n\n## Layout Classes\n\nApply on `Border`:\n\n| Class | Effect |\n|-------|--------|\n| `pipboy-panel` | Elevated surface (`PipboySurfaceHighBrush`) with border + 8 px padding |\n| `pipboy-surface` | Flat surface (`PipboySurfaceBrush`) with border |\n\n```xml\n\u003cBorder Classes=\"pipboy-panel\"\u003e\n  \u003cTextBlock Text=\"SECTION CONTENT\"/\u003e\n\u003c/Border\u003e\n```\n\n---\n\n## Custom Controls\n\nPipboy.Avalonia ships purpose-built controls that go beyond Avalonia's built-in set.\n\n### SegmentedBar\n\nDisplays a value as discrete rectangular segments — the iconic Fallout HP/AP/RAD bar style.\n\n```xml\n\u003cpipboy:SegmentedBar Label=\"HP\" Value=\"78\" Maximum=\"100\" SegmentCount=\"20\" /\u003e\n```\n\n\u003c!-- SCREENSHOT PLACEHOLDER: docs/images/screenshot-segmentedbar.png --\u003e\n\n### RatedAttribute\n\nShows a named attribute with filled/empty dot indicators — S.P.E.C.I.A.L. style.\n\n```xml\n\u003cpipboy:RatedAttribute Label=\"STRENGTH\" Value=\"8\" Maximum=\"10\" /\u003e\n```\n\n\u003c!-- SCREENSHOT PLACEHOLDER: docs/images/screenshot-ratedattribute.png --\u003e\n\n### BlinkText\n\nWraps any content with a configurable blink animation (pure XAML — WASM safe).\n\n```xml\n\u003cpipboy:BlinkText IsBlinking=\"True\"\u003e\n    \u003cTextBlock Classes=\"accent\" Text=\"PRESS ENTER TO CONTINUE\" /\u003e\n\u003c/pipboy:BlinkText\u003e\n```\n\n\u003c!-- SCREENSHOT PLACEHOLDER: docs/images/screenshot-blinktext.png --\u003e\n\n### ScanlineOverlay\n\nA `Decorator` that draws repeating CRT-style horizontal scanlines over its child using `DrawingContext` (no unsafe code, WASM safe).\n\n```xml\n\u003cpipboy:ScanlineOverlay LineSpacing=\"4\" LineOpacity=\"0.08\"\u003e\n    \u003cBorder Classes=\"pipboy-panel\"\u003e\n        \u003cTextBlock Text=\"ROBCO INDUSTRIES\" /\u003e\n    \u003c/Border\u003e\n\u003c/pipboy:ScanlineOverlay\u003e\n```\n\n\u003c!-- SCREENSHOT PLACEHOLDER: docs/images/screenshot-scanlineoverlay.png --\u003e\n\n### BracketHighlight\n\nWraps content with animated `\u003e ... \u003c` bracket indicators on hover or when `IsSelected=true`.\n\n```xml\n\u003cpipboy:BracketHighlight IsSelected=\"True\"\u003e\n    \u003cTextBlock Text=\"INVENTORY\" /\u003e\n\u003c/pipboy:BracketHighlight\u003e\n```\n\n\u003c!-- SCREENSHOT PLACEHOLDER: docs/images/screenshot-brackethighlight.png --\u003e\n\n### PipboyTabStrip\n\nHorizontal tab-strip navigation with bracket indicators and D-Pad Left/Right keyboard support for gamepad use.\n\n```xml\n\u003cpipboy:PipboyTabStrip SelectedIndex=\"0\"\u003e\n    \u003cpipboy:PipboyTabStripItem Content=\"STAT\" /\u003e\n    \u003cpipboy:PipboyTabStripItem Content=\"INV\" /\u003e\n    \u003cpipboy:PipboyTabStripItem Content=\"DATA\" /\u003e\n    \u003cpipboy:PipboyTabStripItem Content=\"MAP\" /\u003e\n    \u003cpipboy:PipboyTabStripItem Content=\"RADIO\" /\u003e\n\u003c/pipboy:PipboyTabStrip\u003e\n```\n\n\u003c!-- SCREENSHOT PLACEHOLDER: docs/images/screenshot-pipboytabstrip.png --\u003e\n\n### TerminalPanel\n\nA container styled as a Fallout terminal screen. Supports `TypewriterEffect` for character-by-character text reveal using `DispatcherTimer` (WASM safe).\n\n```xml\n\u003cpipboy:TerminalPanel TypewriterEffect=\"True\" TypewriterDelayMs=\"40\"\n    Content=\"ACCESSING VAULT-TEC MAINFRAME...\u0026#x0a;CONNECTION ESTABLISHED.\" /\u003e\n```\n\n\u003c!-- SCREENSHOT PLACEHOLDER: docs/images/screenshot-terminalpanel.png --\u003e\n\n### CrtDisplay\n\nA `Panel` that layers animated CRT monitor effects over its content using only managed `DrawingContext` APIs — fully WASM-safe and AOT-compatible.\nEffects are independently toggleable: **scanlines**, **scan beam**, **static noise**, **vignette**, and **flicker**.\nThe scan beam color automatically follows the active theme by default; explicitly setting `ScanBeamColor` opts out of auto-tracking.\n\n```xml\n\u003cpipboy:CrtDisplay EnableScanBeam=\"True\" EnableScanlines=\"True\" EnableVignette=\"True\"\n                   EnableNoise=\"True\" ScanBeamSpeed=\"55\" VignetteIntensity=\"0.4\"\u003e\n    \u003cBorder Background=\"{DynamicResource PipboySurfaceBrush}\"\u003e\n        \u003c!-- your content --\u003e\n    \u003c/Border\u003e\n\u003c/pipboy:CrtDisplay\u003e\n```\n\n### PipboyWindow / PipboyTitleBar\n\nA custom `Window` with a fully themed chrome: draggable title bar with `TitleBarContent` injection slot, working Minimize/Maximize/Close buttons, and a right-click system menu (Minimize / Maximize·Restore / Close). `PipboyTitleBar` is the same chrome as a standalone control for embedding inside other layouts.\n\n```xml\n\u003cpipboy:PipboyWindow Title=\"VAULT-TEC OS\"\u003e\n    \u003cpipboy:PipboyWindow.TitleBarContent\u003e\n        \u003cpipboy:BlinkText IsBlinking=\"True\"\u003e\n            \u003cTextBlock Classes=\"accent\" FontSize=\"10\" Text=\"● ONLINE\" /\u003e\n        \u003c/pipboy:BlinkText\u003e\n    \u003c/pipboy:PipboyWindow.TitleBarContent\u003e\n    \u003c!-- window content --\u003e\n\u003c/pipboy:PipboyWindow\u003e\n```\n\n### PipboyCountdown\n\nA countdown timer control with configurable precision (Seconds / Minutes / Hours / Milliseconds), a label, and a `Completed` event plus `CompletedCommand` for MVVM.\n\n```xml\n\u003cpipboy:PipboyCountdown Duration=\"0:3:00\" Label=\"SELF DESTRUCT\"\n                         Precision=\"Seconds\" CompletedCommand=\"{Binding AlarmCommand}\" /\u003e\n```\n\n### PipboyPanel\n\nA titled, closable panel container. Raises a `Closed` routed event and `ClosedCommand` when the user dismisses it.\n\n```xml\n\u003cpipboy:PipboyPanel Header=\"SYSTEM ALERT\" Classes=\"warning\"\u003e\n    \u003cTextBlock Text=\"Reactor core temperature critical.\" /\u003e\n\u003c/pipboy:PipboyPanel\u003e\n```\n\n---\n\n## Design Tokens\n\nAll tokens are available as `{DynamicResource}` in XAML.\n\n### Brushes\n\n| Resource | Description |\n|----------|-------------|\n| `PipboyPrimaryBrush` | Primary brand color |\n| `PipboyPrimaryLightBrush` | Lighter variant (highlights) |\n| `PipboyPrimaryDarkBrush` | Darker variant (selected background) |\n| `PipboyBackgroundBrush` | Window / deepest background |\n| `PipboySurfaceBrush` | Card / panel background |\n| `PipboySurfaceHighBrush` | Elevated panel background |\n| `PipboyTextBrush` | Primary text |\n| `PipboyTextDimBrush` | Secondary / label text |\n| `PipboyBorderBrush` | Default control border |\n| `PipboyBorderFocusBrush` | Focused control border |\n| `PipboyHoverBrush` | Hover state background |\n| `PipboyPressedBrush` | Pressed state background |\n| `PipboySelectionBrush` | Selected item background |\n| `PipboyFocusBrush` | Focus ring color |\n| `PipboyDisabledBrush` | Disabled foreground |\n| `PipboyErrorBrush` | Error severity (hue-derived, near-white lightness) |\n| `PipboyWarningBrush` | Warning severity (hue-derived, bright lightness) |\n| `PipboySuccessBrush` | Success severity (hue-derived, mid lightness) |\n\n### Font Sizes\n\n| Resource | Value |\n|----------|-------|\n| `PipboyFontSizeSmall` | 11 |\n| `PipboyFontSize` | 13 |\n| `PipboyFontSizeLarge` | 16 |\n\n### Other\n\n| Resource | Description |\n|----------|-------------|\n| `PipboyFontFamily` | `Consolas, Courier New, monospace` |\n| `PipboyPrimaryColor` | Raw `Color` value of the primary |\n| `PipboyBackgroundColor` | Raw `Color` of the background |\n| `PipboyTextColor` | Raw `Color` of the text |\n\n---\n\n## Runtime Color Switching — How It Works\n\n`PipboyTheme` registers `SolidColorBrush` instances as `DynamicResource` entries. When `PipboyThemeManager.SetPrimaryColor()` is called, `PipboyColorPalette` computes the full HSL-derived palette and `OnThemeColorChanged` mutates each brush's `.Color` in place. Avalonia's reactive binding system propagates the change to every bound control automatically — no re-layout, no template re-application.\n\n```\nSetPrimaryColor(color)\n  └─ PipboyColorPalette(color)      — HSL-derive all palette colors\n       └─ ThemeColorChanged event\n            └─ PipboyTheme.OnThemeColorChanged()\n                 └─ brush.Color = newColor  (× 18 brushes)\n                      └─ DynamicResource invalidation → UI updates\n```\n\n`PipboyTheme` implements `IDisposable`. If you remove the theme from `Application.Styles` at runtime, call `Dispose()` to unsubscribe from `ThemeColorChanged` and avoid a memory leak.\n\n---\n\n\n## Supported Avalonia Version\n\n**11.3.12** (tested). Compatible with Avalonia 11.x.\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNeverMorewd%2FPipboy.Avalonia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNeverMorewd%2FPipboy.Avalonia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNeverMorewd%2FPipboy.Avalonia/lists"}