You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(start-menu): StartMenuOptions as class with init properties
Replace positional record with class using object initializer syntax.
Add color customization via ColorResolver (background, foreground,
highlight colors). Add gradient background to DemoApp start menu.
Update all doc examples to use initializer syntax.
Copy file name to clipboardExpand all lines: docs/CONFIGURATION.md
+33-15Lines changed: 33 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,15 +146,35 @@ Configuration for status bars and Start Menu system.
146
146
|`StartMenuShortcutKey`|`ConsoleKey`|`Spacebar`| Keyboard shortcut key (Ctrl+Space by default) |
147
147
|`StartMenuShortcutModifiers`|`ConsoleModifiers`|`Control`| Keyboard modifiers (Ctrl, Alt, Shift, or combinations) |
148
148
149
-
#### Start Menu Content
149
+
#### Start Menu Options
150
+
151
+
Start menu appearance and behavior is configured via the `StartMenu` parameter, which accepts a `StartMenuOptions` object:
150
152
151
153
| Property | Type | Default | Description |
152
154
|----------|------|---------|-------------|
153
-
|`ShowSystemMenuCategory`|`bool`|`true`| Show built-in System category (themes, settings, about) |
154
-
|`ShowWindowListInMenu`|`bool`|`true`| Show Windows category with open window list |
155
-
|`StartMenuLayout`|`StartMenuLayout`|`TwoColumn`|`SingleColumn` (compact, categories as flyout submenus) or `TwoColumn` (quick actions + window list side-by-side) |
156
-
|`StartMenuAppName`|`string?`|`null`| Application name shown in header (defaults to "SharpConsoleUI") |
157
-
|`StartMenuAppVersion`|`string?`|`null`| Application version shown in header (defaults to library version) |
155
+
|`Layout`|`StartMenuLayout`|`TwoColumn`|`SingleColumn` (compact) or `TwoColumn` (with window list) |
156
+
|`AppName`|`string?`|`null`| App name in header (defaults to "SharpConsoleUI") |
157
+
|`AppVersion`|`string?`|`null`| App version in header (defaults to library version) |
158
+
|`ShowIcons`|`bool`|`true`| Show Unicode icons in header and exit row |
159
+
|`HeaderIcon`|`string`|`"☰"`| Icon next to the app name in the header |
160
+
|`ShowSystemCategory`|`bool`|`true`| Show System category (themes, settings, about) |
161
+
|`ShowWindowList`|`bool`|`true`| Show Windows list (right column in TwoColumn, submenu in SingleColumn) |
162
+
|`BackgroundGradient`|`GradientBackground?`|`null`| Optional gradient background for the Start menu window |
0 commit comments