building-mewui-apps

Solid

Creates MewUI applications with proper setup, windows, theming, and controls. Use when starting a new MewUI project, understanding application lifecycle, using built-in controls, or styling with themes.

Web & Frontend 40 stars 6 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
54
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

## Minimal App ```csharp using MewUI; using MewUI.Controls; var window = new Window() .Title("My App") .Width(800).Height(600) .Content(new Label().Text("Hello, MewUI!")); Application.Run(window); // Static method ``` --- ## Application Setup ```csharp // Set defaults BEFORE Run() Application.DefaultGraphicsBackend = GraphicsBackend.Direct2D; // or Gdi, OpenGL var window = new Window().Title("My App").Content(mainContent); Application.Run(window); // Access current app AFTER Run() starts // Application.Current.SetTheme(ThemeVariant.Light); ``` --- ## Common Controls ```csharp new Label().Text("Display text").BindText(observable) new TextBox().BindText(observable).Placeholder("Hint") new Button().Content("Click").OnClick(() => DoAction()) new CheckBox().Text("Option").BindIsChecked(observable) // Note: .Text() not .Content() new ComboBox().Items("A", "B", "C").BindSelectedIndex(observable) new ListBox().Items("X", "Y", "Z").BindSelectedIndex(observable) new Slider().Minimum(0).Maximum(100).BindValue(observable) new ProgressBar().Minimum(0).Maximum(100).BindValue(observable) new Image().SourceFile("path.png").StretchMode(ImageStretch.Uniform) // Note: SourceFile, StretchMode ``` --- ## Theming ```csharp // Access theme in controls var bg = Theme.Palette.ControlBackground; var accent = Theme.Palette.Accent; // Note: Accent, not AccentColor var radius = Theme.Metrics.ControlCornerRadius; // Visual states var color = _isPressed ? Theme.Palette.Butto...

Details

Author
christian289
Repository
christian289/dotnet-with-claudecode
Created
7 months ago
Last Updated
6 days ago
Language
C#
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category