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>
1.1 KiB
1.1 KiB
Copilot instructions — Электронная Фармация
Stack
- WinForms (.NET Framework 4.7.2), not WinUI 3
- UI library:
src/Elfisa.UI(custom Modern* controls + theming) - Apply Fluent Design principles from
winui-designvia theme tokens, not XAML
Design rules (from winui-design, adapted)
- Use
ThemeManager.Colors/UiThemeHelper— never hard-code colors in forms. - Typography: Segoe UI 12–14; icons: Segoe Fluent Icons via
FluentFonts. - Spacing: 8px grid (8, 16, 24, 32).
- App shape: developer tool — top nav + document tabs + content cards/grids.
- Feedback:
ToastNotification/UiDialogs, not blockingMessageBoxfor routine messages. - Data grids: styled
ModernDataGridView; no WPF DataGrid patterns.
When changing UI
- Prefer editing
Elfisa.UItheme/palette over per-form colors. - Test light theme (
FluentWin11) after visual changes. - Keep business logic in
ElectronicPharmacy; keep visuals inElfisa.UI.
WinUI plugin
See docs/WINUI-PLUGIN-SETUP.md for winui@awesome-copilot install and CLI usage.