elfisa-pharmacy/docs/WINUI-PLUGIN-SETUP.md
Magomed 14c4b08ad6 Polish modern UI shell, orders toolbar, and Fluent theme infrastructure.
Add status footer with logged-in user, improve FOrders filters layout, migrate dialogs to ModernButton, and extend theming with Fluent Win11 palette and auto button styles.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 13:59:58 +03:00

58 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# WinUI agent plugin (Microsoft) — setup for this repo
The [WinUI agent plugin](https://learn.microsoft.com/en-us/windows/apps/develop/ai-assisted/winui-agent-plugin) targets **GitHub Copilot CLI** and **Claude Code**. It does **not** plug into Cursor chat directly.
This WinForms project applies **Fluent Design tokens** from the plugin's `winui-design` skill in `Elfisa.UI` (`FluentWin11` theme).
## Prerequisites
```powershell
winget install Microsoft.winappcli --source winget
winget install GitHub.cli
```
GitHub Copilot subscription required for Copilot CLI.
## Install Copilot CLI + WinUI plugin
```powershell
gh auth login
gh extension install github/gh-copilot
gh copilot plugin install winui@awesome-copilot
gh copilot plugin list
```
## Use with Copilot CLI
```powershell
gh copilot -p "@winui-dev Review the WinForms shell in src/ElectronicPharmacy for Fluent alignment"
```
Interactive session:
```powershell
copilot
# then: @winui-dev Suggest toolbar layout improvements for FOrders
```
## WinForms adaptation (this repo)
| WinUI guidance | WinForms implementation |
|----------------|-------------------------|
| Semantic brushes, no hard-coded `#RRGGBB` in UI code | `ThemeColors` + `FluentWin11Palette` |
| Segoe UI typography | `Segoe UI` 1214 in palette fonts |
| 8px spacing grid | Toolbar layout in `FOrders.ApplyToolbarLayout` |
| Developer-tool silhouette | `ModernAppHeader` + `ModernDocumentTabStrip` |
| WinUI `AccentButton` / `Button` | `ModernButton` + `ModernButtonStyles.ApplyAuto` |
| Focus ring | keyboard focus outline in `ModernButton` |
| Disabled opacity | muted fill/text when `Enabled = false` |
Default theme: `ThemeVariant.FluentWin11` in `Program.cs`.
## Claude Code (optional)
```powershell
claude plugin marketplace add microsoft/win-dev-skills
claude plugin install winui@win-dev-skills
```