diff --git a/.claude/skills/feature-review/references/conventions.md b/.claude/skills/feature-review/references/conventions.md
index fef65d97ea..88f37db894 100644
--- a/.claude/skills/feature-review/references/conventions.md
+++ b/.claude/skills/feature-review/references/conventions.md
@@ -74,8 +74,8 @@ Reference: `HostsFileEditorView.xaml`, `FirewallView.xaml`, `NetworkInterfaceVie
feature-specific permission like `HasPermissionToConfigure`).
- Disabled actions get `wpfHelpers:PermissionToolTipHelper.Text` (the tool's `*AdminMessage`) and
`PermissionToolTipHelper.HasPermission` — on buttons, context menu items and profile menu items.
-- A banner at the bottom (`MahApps.Brushes.Gray10` background, `MessageTextBlock` with the `*AdminMessage`,
- **Restart as administrator** button with the `Shield` icon) is shown when not elevated.
+- A notice at the bottom (`icons:AdminNotice`: one row with shield + the `*AdminMessage`, **Restart as
+ Administrator** button on the right) is shown when not elevated.
## Data grids, selection and context menus
@@ -95,14 +95,14 @@ Reference: `HostsFileEditorView.xaml`, `FirewallView.xaml`.
- No bindings that have no element to resolve against: no `VisualBrush` / `BitmapImage` with a binding in a style
setter or as a freezable resource. Bind the property of the element with a converter instead
(`VisualToVisualBrushConverter`, `ApplicationNameToIconBrushConverter`, `Image Source="{Binding Uri}"`). A static
- `VisualBrush` (`Visual="{iconPacks:Material Kind=...}"`) is fine. `MenuItem`s created outside a menu (e.g. extra
+ `VisualBrush` (`Visual="{icons:Lucide Kind=...}"`) is fine. `MenuItem`s created outside a menu (e.g. extra
items in an `x:Array`) are fine: the implicit `DefaultMenuItem` style sets the content alignment directly instead
of the MahApps binding to the parent. New `MenuItem` styles are `BasedOn="{StaticResource DefaultMenuItem}"`.
- Order: Enable / Disable (only the applicable one) → Edit... → Copy as... → Delete → separator → Copy
(submenu, `CopyMenuItem` style) → Export...
-- Icons (16×16 `Rectangle`, `MahApps.Brushes.Gray3`, `VisualBrush`): Enable `Material ToggleSwitchOutline`,
- Disable `Material ToggleSwitchOffOutline`, Edit `Modern Edit`, Copy as `Material ContentDuplicate`,
- Delete `Material Close`, Export `Material FileMoveOutline`, Refresh `Material Refresh`, Add `Material Plus`.
+- Icons (16×16 `Rectangle`, `MahApps.Brushes.Gray3`, `VisualBrush` with `{icons:Lucide Kind=...}`): Enable
+ `ToggleRight`, Disable `ToggleLeft`, Edit `Pencil`, Copy as `CopyPlus`, Delete `X`, Export `FileOutput`, Refresh
+ `RefreshCw`, Add `Plus`.
- Edit and Copy as work on a single item; Enable/Disable/Delete work on the selection (`GetTargetEntries()`).
Exception: the Hosts File Editor has a bulk edit for the comment of several entries.
- Shortcuts: `F5` refresh, `F2` edit, `Del` delete; double-click a row = edit.
@@ -150,7 +150,9 @@ Reference: `HostsFileEditorView.xaml`, `FirewallView.xaml`.
- Long tooltip text uses `WrapToolTip` (max. 400px, wrapping); help/warn/error icons use `HelpToolTip`,
`WarnToolTip`, `ErrorToolTip` (`ToolTipStyles.xaml`, `RectangleStyles.xaml`).
-- Status text: `AccentTextBlock` / `StatusMessageTextBlock`, shown via `IsStatusMessageDisplayed`.
+- Status messages: `StatusMessageText` (`Text`, `Level` = `StatusLevel`: icon + color), shown via
+ `IsStatusMessageDisplayed`; the view model sets `StatusMessageLevel` with every message (appended messages:
+ `StatusLevel.MostSevere`). Never the accent color for messages.
## Layout
diff --git a/AGENTS.md b/AGENTS.md
index cb40955b08..408cd8e165 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -33,12 +33,14 @@ REPOSITORY_ROOT/
│ ├── NETworkManager.Update/ # Update functionality
│ ├── NETworkManager.Documentation/ # Documentation resources
│ ├── NETworkManager.Setup/ # WiX installer project
-│ └── 3rdparty/ # Third-party dependencies (e.g., Dragablz)
+│ ├── NETworkManager.Tests/ # xUnit unit tests (run by AppVeyor)
+│ └── 3rdparty/ # Third-party dependencies (Dragablz: submodule of the fork BornToBeRoot/Dragablz)
│ └── (managed-manually) # NOTE: Maintained manually — AI agents MUST NOT modify this directory
├── Website/ # Docusaurus documentation website
├── Scripts/ # Build and automation scripts
│ ├── Create-FileHash.ps1 # Generate file hashes
│ ├── Create-FlagFromSVG.ps1 # Create flag images
+│ ├── Create-LucideIcons.ps1 # Import the used Lucide icons (LucideIcons.cs) and their license
│ ├── Create-OUIListFromWeb.ps1 # Update OUI (MAC vendor) list
│ ├── Create-PortListFromWeb.ps1 # Update port list database
│ ├── Create-PublicSuffixListFromWeb.ps1 # Update public suffix list (RDAP: registered domain of a hostname)
@@ -55,10 +57,10 @@ REPOSITORY_ROOT/
### Key Statistics
-- **750+ C# source files** across multiple projects
-- **160+ XAML files** for UI definitions
-- **13 projects** in the solution (12 C# projects + the WiX installer)
-- **70 documentation pages** in Docusaurus format
+- **900+ C# source files** across multiple projects
+- **170+ XAML files** for UI definitions
+- **15 projects** in the solution (12 application projects, the unit tests, Dragablz and the WiX installer)
+- **70+ documentation pages** in Docusaurus format
- **18 languages** (English + 17 translations)
## Technology Stack
@@ -73,12 +75,17 @@ REPOSITORY_ROOT/
- **Supported OS**: Windows 10 / Windows Server (22H2 or later) and Windows 11
**UI Framework & Design**:
-- **MahApps.Metro** - Modern UI toolkit providing Metro-style controls and themes
-- **MahApps.Metro.IconPacks** - Icon libraries (FontAwesome, Material, Modern, Octicons)
+- **MahApps.Metro** - Modern UI toolkit providing Metro-style controls and themes (restyled, see
+ [UI Design System](#ui-design-system))
+- **Lucide** - Icons (https://lucide.dev), imported from the SVG files by `Scripts/Create-LucideIcons.ps1` into
+ `Source/NETworkManager.Controls/LucideIcons.cs` (only the used icons, see `$Icons` in the script) and drawn as lines by
+ `LucideIcon` (stroke 1.75); license in `Source/NETworkManager.Documentation/Licenses/Lucide.txt`
- **MahApps.Metro.SimpleChildWindow** - Dialog windows
- **Dragablz** - Tearable/draggable tab control
- **GongSolutions.Wpf.DragDrop** (`gong-wpf-dragdrop`) - Drag and drop framework
-- **Loading indicators** - Own implementation in `Source/NETworkManager/LoadingIndicators.cs` (styles e.g. `LoadingIndicatorArcsStyle`, `LoadingIndicatorPulseStyle`)
+- **Progress / loading** - MahApps `MetroProgressBar` (style `DefaultMetroProgressBar`) and `ProgressRing` in three sizes
+ (`ProgressRingSmall` 16 inline, `ProgressRingMedium` 24 dialogs, `ProgressRingLarge` 48 centered), see
+ `Resources/Styles/ProgressBarStyles.xaml`
- **ControlzEx** - Shared WPF controls (dependency of MahApps.Metro)
**Architecture Pattern**:
@@ -302,8 +309,10 @@ The website is deployed to GitHub Pages at: https://borntoberoot.net/NETworkMana
### XAML Style
- **MahApps.Metro Controls**: Use Metro-styled controls
-- **Icon Packs**: Use `IconPacks` namespace for icons
-- **Resource Dictionaries**: Shared styles in `Resources/` directory
+- **Icons**: Lucide only - `{icons:Lucide Kind=Router}` (`xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"`),
+ usually as `Visual` of a `VisualBrush` (opacity mask of a `Rectangle`), in C# `new LucideIcon { Kind = LucideIconKind.Router }`.
+ A new icon: add its name to `$Icons` in `Scripts/Create-LucideIcons.ps1` and run the script (don't edit `LucideIcons.cs`)
+- **Resource Dictionaries**: Shared styles in `Resources/Styles/` (tokens in `Theme.xaml`), see [UI Design System](#ui-design-system)
- **Naming**: Use `x:Name` for elements that need code-behind access
### Documentation Style
@@ -486,12 +495,108 @@ git diff
- **Property Change Notification**: `INotifyPropertyChanged` via `PropertyChangedBase`
- **Dependency Injection**: Manual dependency management (no DI container)
-### UI Theming
-
-- **MahApps.Metro Themes**: Light/Dark theme support
-- **Accent Colors**: Customizable accent colors
-- **Resource Dictionaries**: Shared styles and templates
-- **Live Theme Switching**: Runtime theme changes
+### UI Design System
+
+Calm, productive look on top of MahApps.Metro (no WPF Fluent / WPF-UI). Use the existing tokens and styles below instead
+of local colors, sizes or templates; theme-dependent brushes always with `DynamicResource`.
+
+**Themes and accents** (`NETworkManager.Settings`):
+- MahApps themes `Light` / `Dark` plus own themes from `ThemeVariants`: dark Black, Midnight, Steel, Indigo (copies of
+ `Dark.`, neutral grays tinted toward the theme background) and light Mist, Soft, Paper (copies of
+ `Light.` with their own frame color). Own accents Sky, Ocean, Mint, Rose, Coral, Gold, Lavender, Slate,
+ Graphite (copies of `.Blue` with the accent replaced). They are created on demand in
+ `AppearanceManager.ChangeTheme` (`LibraryTheme` + `ThemeManager.AddLibraryTheme`); on failure the default theme is used.
+ A theme counts as dark by the brightness of its background (`ThemeVariants.IsDark`), not by its name.
+- Default accent for new installations: Mint (if a theme can't be created: the default, then `Dark.Teal`). Custom themes (`Appearance_UseCustomTheme`) keep working.
+- Settings: `Appearance_Theme`, `Appearance_Accent`, `Appearance_AccentGlowIntensity` (Off / Subtle 6 % / Medium 10 %
+ (default) / Strong 15 %), `Appearance_Animations` (System / On / Off; policy `Appearance_Animations` in `config.json`
+ is a bool).
+- Console colors: `AppearanceManager.ConsoleBackground` / `ConsoleForeground` / `ConsoleBoldForeground` (event
+ `ConsoleColorsChanged`) are written to the PuTTY / PowerShell profiles, so the embedded consoles match the theme.
+
+**Theme-dependent brushes** - computed by `AppearanceManager` on every theme change (from `MahApps.Colors.ThemeForeground`
+/ `ThemeBackground` / `Accent`) and written into `Application.Current.Resources`:
+
+| Key | Value | Use |
+|---|---|---|
+| `Brushes.Surface.Frame` | dark: background 25 % darker, light: 4 % foreground (or the theme's own frame) | window frame, title bar, navigation |
+| `Brushes.Surface.Window` / `.Inactive` | frame + accent glow (radial, top left), half glow when the window is inactive | `FrameWindow` background |
+| `Brushes.Surface.Border` | foreground 10 % | all lines and surface borders: boxes, cards, separators, tabs, grid headers, splitters, popups, tooltips, dialogs, group boxes (input / check box / radio borders keep `MahApps.Brushes.Gray8` for contrast) |
+| `Brushes.Navigation.Selected` | accent 15 % | selected tool in the navigation |
+| `Brushes.Control.MouseOver` / `.Pressed` | foreground 8 % / 12 % | hover / pressed of icon buttons, lists, tabs |
+| `Brushes.Control.Border.MouseOver` | foreground 35 % | input border on hover |
+| `Brushes.Button.Background` / `.MouseOver` / `.Pressed` | foreground 6 / 10 / 14 % | secondary buttons, title bar fields |
+| `Brushes.Status.Success` / `.Warning` / `.Error` | dark: `#badc58` / `#f1b856` / `#e5605a`, light: `#558b16` / `#b06d00` / `#b95353` | status icons and texts, validation - never hard-code `#badc58` etc. |
+| `MahApps.Brushes.DataGrid.Selection.*` | accent 30 % (selected), 38 % (selected + hover), hover foreground 8 % | data grids |
+
+Charts use `ChartColors` (theme-aware primary / secondary / WiFi palette, gradient `AreaFill`).
+
+**Theme-independent resources** - `Resources/Styles/Theme.xaml` (merged first):
+- Fonts: `Segoe UI Variable Text, Segoe UI` for the MahApps control / button / toggle switch fonts and `DefaultWindow`;
+ `Fonts.Family.Mono` (`Cascadia Mono, Consolas`) for technical values: IP / MAC addresses, hostnames, ports, subnets,
+ gateways, DNS / DHCP / SNTP servers, BSSID, OIDs, URLs, DNS records, raw output (inputs with such a watermark too).
+ Names, descriptions, vendors, states, times, user names and paths use the UI font.
+- Corner radii: `CornerRadius.Control` 4 (buttons, inputs, menus, tooltips), `.Control.Inner` 3, `.Overlay` 8
+ (dialogs, popups), `.Card` 8 (boxes, cards). `Brushes.Overlay` (black 40 %, dialog overlay). `FocusVisual.Ring`
+ (gray 2 px ring, also the default focus visual - no accent).
+
+**Type scale** (`TextBlockStyles.xaml`): `DefaultTextBlock` 14 (also navigation, tab titles), `HeaderTextBlock` 16
+SemiBold (section headers), `MessageTextBlock` 16 gray (messages in empty areas), mono via `Fonts.Family.Mono`.
+
+**Layout and surfaces**:
+- Box layout: the window frame (`FrameWindow` style for main, tab host and status window) holds the navigation (frame
+ color, no border) and rounded boxes for the main view and the profiles (`ViewBox`: theme background,
+ `Brushes.Surface.Border`, radius 8; gap 6). Host views set `ViewLayoutHelper.HasOwnBoxes` (main view box transparent).
+- Cards (Dashboard widgets, Ping Monitor hosts): `CardBorder` (border only, no fill). Groups: `SectionExpander` (section
+ header, no box in box).
+- Headers 36 high (navigation header, Dragablz tabs, `DefaultTabItem`). Tabs: VS Code-like (shared styles
+ `DragablzTabHeaderBorder` / `Title` / `CloseIcon` / `AccentLine` in `DragablzStyles.xaml` - change the tab look only
+ there); a single tab is shown as the view title. Dragged-out tabs merge on the whole tab bar
+ (`MergeTargetArea="HeaderPanel"`) and the target tab bars show a slot (`ShowMergeHint`, `MergeHintTemplate` in
+ `DefaultTabablzControl`) - features of our Dragablz fork (BornToBeRoot/Dragablz, submodule).
+- Data grids: row height 30, semibold headers, accent-tinted selection.
+- Windows have rounded corners on Windows 11 (`WindowCornerHelper.RoundCorners`, DWM).
+
+**Controls**:
+- Buttons: `HighlightedButton` (accent, the main action, e.g. **Scan**), `DefaultButton` / `ImageWithTextButton`
+ (subtle fill, min. width 100), `ImageButton` / `ImageDropDrownButton` (transparent icon buttons). Template
+ `DefaultButtonTemplate` with fading hover / pressed layers (`ButtonHelper.MouseOverOverlay` / `PressedOverlay`).
+- Disabled = `Opacity 0.55` (inputs, buttons, CheckBox / RadioButton / ToggleSwitch keep their colors), no MahApps veil.
+ Read-only inputs while a task runs: `IsReadOnly` + `ComboBoxReadOnlyBehavior` instead of disabled.
+- Inputs: radius 4, focus border gray (`Gray5`), hover border `Brushes.Control.Border.MouseOver`.
+- Drop-downs: `ComboBoxPopupBehavior` (rounded popup with shadow), implicit `ComboBoxItem` style in `DefaultComboBox`.
+- Progress: `DefaultMetroProgressBar` (accent on a subtle track) and `ProgressRingSmall` / `Medium` / `Large`
+ (16 inline / 24 dialogs / 48 centered, `ProgressBarStyles.xaml`); scanner progress via `SmoothProgress.Value`.
+- Dialogs: `DefaultChildWindow` (own template, radius 8, shadow, overlay, zoom animation) for all dialogs.
+- Status values in lists (e.g. firewall action, TCP / neighbor state): `StatusDot` (8 px `Ellipse` in front of the text,
+ `Tag` = `StatusLevel` None / Success / Warning / Error via a `*ToStatusLevelConverter`), text in the normal color.
+ Template columns set `ClipboardContentBinding` to keep the text for copying.
+- Empty areas (no results, missing prerequisite): `EmptyStateMessage` (`Icon`, `Text`, `IconSize` 40) instead of a bare
+ `MessageTextBlock`; loading texts stay `MessageTextBlock`. Restart as administrator below a list: `AdminNotice`
+ (`Text` = the tool's `*AdminMessage`, `Command`; one row: shield + message, button on the right).
+- Status messages of a tool (below the input, e.g. errors, "canceled by user", "magic packet sent"): `StatusMessageText`
+ (`Text`, `Level` = `StatusLevel`: icon + color - info gray, success green, warning yellow, error red). The view model
+ sets `StatusMessageLevel` with every `StatusMessage` (appended messages keep the most severe level). Never the accent
+ color for messages.
+- Template copies of MahApps / SimpleChildWindow (keep in sync when updating these packages): ComboBox toggle,
+ ToolTip, ContextMenu / submenu, scrollbar thumb, `DefaultChildWindowTemplate`, `MahApps.Styles.DataGridRow`
+ (redefined with the same key).
+
+**Icons**: Lucide only (see [XAML Style](#xaml-style)); 16 × 16 `Rectangle` with `MahApps.Brushes.Gray3` fill and the icon
+as opacity mask (`VisualBrush`), stroke 1.75 (`LucideIcon.DefaultStrokeThickness`). Icons that cover only a
+small part of the 24 box (plus, minus, X, chevrons, arrows) are drawn 1.25 times larger (`LucideIcon.SmallIcons`). Icons of the context menu actions:
+see `.claude/skills/feature-review/references/conventions.md`.
+
+**Motion** (only `Opacity` / `RenderTransform`, 150–250 ms, quadratic ease-out, no bounce, no staggered lists, **no view /
+content transitions** when switching tools; check `AppearanceManager.AnimationsEnabled` when an animation starts):
+`ChildWindowAnimation` (dialogs zoom 92 → 100 %, run command `Kind="SlideDown"`), `SelectionIndicatorAnimation`
+(navigation indicator), `ExpanderAnimation` (chevron rotates, content fades in; `SwapChevron` for the profile panel),
+`SmoothProgress`, notification slide-in. Short color / opacity fades in XAML storyboards (button and navigation hover /
+pressed layers, tooltip, dialog overlay) don't move anything and are always shown (documented in the Animations
+setting). Native windows (Remote Desktop, PuTTY, PowerShell, TigerVNC,
+WebView2) can't be animated, clipped or put in transparent windows.
+
+**Accent glow**: only in the window frame (`Brushes.Surface.Window`), not on dialogs, overlays or controls.
### Profile System
diff --git a/README.md b/README.md
index 7d07bd4d26..8157794b12 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
Streamline and simplify your network administration and troubleshooting with NETworkManager. Connect, monitor, and troubleshoot your network and server infrastructure using built-in tools like Remote Desktop (RDP), PuTTY (SSH, Serial, etc.), PowerShell (WSL, K9s, etc.) and TigerVNC (VNC). Perform in-depth network diagnostics with features including WiFi Analyzer, IP Scanner, Port Scanner, Ping Monitor, Traceroute, DNS Lookup, LLDP/CDP Capture, and many more — all in a clean, unified interface.
- Organize hosts and networks in profiles with seamless access across all features. Profile files can be encrypted to protect your sensitive data and used to separate different customers or environments. NETworkManager is enterprise-ready with an MSI installer, signed binaries, system-wide policies for centralized configuration, and support for package managers like Chocolatey, Evergreen, and WinGet. Available in over 16 languages with customizable light/dark themes and accent colors.
+ Organize hosts and networks in profiles with seamless access across all features. Profile files can be encrypted to protect your sensitive data and used to separate different customers or environments. NETworkManager is enterprise-ready with an MSI installer, signed binaries, system-wide policies for centralized configuration, and support for package managers like Chocolatey, Evergreen, and WinGet. Available in 18 languages, with light and dark themes and accent colors.
@@ -70,11 +70,12 @@ Here's why you'll love it:
- 🧰 **Unified Experience** - All your essential network tools together in a clean, unified interface.
- 🖥️ **Remote System Management** - Seamlessly connect via Remote Desktop (RDP), PuTTY (SSH, Serial, etc.), PowerShell (WSL, K9s, etc.) or TigerVNC (VNC).
-- 🔍 **Analyze & Troubleshoot** - Deep network diagnostics with WiFi Analyzer, IP Scanner, Port Scanners, Ping Monitor, Traceroute, DNS Lookup, LLDP/CDP Capture, and many more.
+- 🔍 **Analyze & Troubleshoot** - Deep network diagnostics with WiFi Analyzer, IP Scanner, Port Scanner, Ping Monitor, Traceroute, DNS Lookup, LLDP/CDP Capture, and many more.
+- ⌨️ **Run Command** - Start any tool from the keyboard with `Ctrl+Shift+P`, e.g. `ping 10.0.0.1` or `rdp @server-01` ([run command](https://borntoberoot.net/NETworkManager/docs/run-command)).
- 🔐 **Secure Profiles** - Organize hosts and networks in profiles with seamless access across all features. Encrypt profile files and separate them by customer or environment.
- 💎 **Open Source & Free** - No ads, no subscriptions, no selling your data, fully community-driven.
- 🏢 **Enterprise-Ready** - MSI installer, signed binaries, [system-wide policies](https://borntoberoot.net/NETworkManager/docs/system-wide-policies) for centralized configuration, and package manager support (Chocolatey, Evergreen, and WinGet).
-- 🎨 **Personalized Experience** - Available in 16+ languages, with customizable light/dark themes and accent colors.
+- 🎨 **Personalized Experience** - Available in 18 languages, with light and dark themes and accent colors.
📖 Explore all features in detail in our [documentation](https://borntoberoot.net/NETworkManager/docs/introduction).
@@ -125,7 +126,7 @@ If you find it useful, here are ways to support the project:
- 🌟 **Star the Repo** – Show your appreciation and stay updated with new features.
- 📢 **Share It** – Spread the word with friends, colleagues, or on social media.
- 🎥 **Create Content** – Write blog posts, make tutorials, or produce videos about NETworkManager.
-- ☕🍺 **Donate** – Support the project with a coffe or beer!
+- ☕🍺 **Donate** – Support the project with a coffee or beer!
| Crypto | Address |
| --------------- | ---------------------------------------------- |
@@ -228,9 +229,8 @@ A huge thank you to our supporters and contributors who make NETworkManager poss
- [GongSolutions.Wpf.DragDrop](https://github.com/punker76/gong-wpf-dragdrop) - An easy to use drag'n'drop framework for WPF.
- [IPNetwork](https://github.com/lduchosal/ipnetwork) - .NET library for complex network, IP, and subnet calculations.
- [LiveCharts2](https://github.com/Live-Charts/LiveCharts2) - Beautiful, interactive charts, maps, and gauges.
- - [LoadingIndicators.WPF](https://github.com/zeluisping/LoadingIndicators.WPF) - A collection of loading indicators for WPF.
+ - [Lucide](https://lucide.dev/) - Beautiful & consistent icons.
- [MahApps.Metro](https://mahapps.com/) - UI toolkit for WPF applications.
- - [MahApps.Metro.IconPacks](https://github.com/MahApps/MahApps.Metro.IconPacks) - Awesome icon packs for WPF and UWP in one library.
- [NetBeauty2](https://github.com/nulastudio/NetBeauty2) - Move .NET app runtime components and dependencies into a sub-directory.
- [PSDiscoveryProtocol](https://github.com/lahell/PSDiscoveryProtocol) - PowerShell module for LLDP/CDP discovery.
@@ -246,7 +246,7 @@ The binaries and installers are built on [AppVeyor](https://ci.appveyor.com/proj
Your privacy matters. NETworkManager will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it.
-NETworManager has integrated some **optional** third-party services to enhance functionality. You can choose to enable or disable these services at the first startup or later in the settings:
+NETworkManager has integrated some **optional** third-party services to enhance functionality. You can choose to enable or disable these services at the first startup or later in the settings:
- [api.github.com](https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement) - Check for application updates.
- [ipify.org](https://www.ipify.org/) - Retrieve the public IP address used by the client.
diff --git a/Scripts/Create-LucideIcons.ps1 b/Scripts/Create-LucideIcons.ps1
new file mode 100644
index 0000000000..393801cc36
--- /dev/null
+++ b/Scripts/Create-LucideIcons.ps1
@@ -0,0 +1,362 @@
+# Creates the Lucide icons of the application (Source/NETworkManager.Controls/LucideIcons.cs) from the SVG files of the
+# npm package lucide-static and copies its license (ISC, incl. the MIT license of the icons derived from Feather) to
+# Source/NETworkManager.Documentation/Licenses/Lucide.txt.
+#
+# Only the icons in $Icons (and the custom icons) are included. To add an icon: add its name (https://lucide.dev/icons)
+# to $Icons, run the script and use it as {controls:Lucide Kind=} or LucideIconKind..
+#
+# The elements of an icon (path, circle, rect, line, polyline, polygon, ellipse) are converted to one path geometry
+# that is drawn with a pen (24 x 24 units, round caps and joins, see LucideIcon). Elements with fill="currentColor"
+# (e.g. the dot of key-round) are also filled.
+
+param(
+ # Version of lucide-static (https://www.npmjs.com/package/lucide-static)
+ [string]$Version = "1.71.0"
+)
+
+$ErrorActionPreference = "Stop"
+
+$RepositoryRoot = Split-Path $PSScriptRoot -Parent
+$OutFilePath = Join-Path -Path $RepositoryRoot -ChildPath "Source/NETworkManager.Controls/LucideIcons.cs"
+$LicenseFilePath = Join-Path -Path $RepositoryRoot -ChildPath "Source/NETworkManager.Documentation/Licenses/Lucide.txt"
+
+# Icons of Lucide used in the application
+$Icons = @(
+ "activity", "app-window", "arrow-big-up", "arrow-down", "arrow-left", "arrow-left-right", "arrow-up", "binary",
+ "book-open", "box", "brick-wall-fire", "bug", "calculator", "check", "check-check", "chevron-down",
+ "chevron-left", "chevron-right", "chevron-up", "chevrons-right", "circle-alert", "circle-arrow-left",
+ "circle-arrow-right", "circle-check", "circle-question-mark", "clipboard-paste", "clock-check", "cloud-download",
+ "cloud-upload", "copy", "copy-plus", "database-search", "download", "ellipsis-vertical", "ethernet-port",
+ "external-link", "eye", "eye-off", "file", "file-output", "file-pen-line", "file-search", "files", "folder-input",
+ "folder-open", "folder-search", "frown", "funnel", "funnel-x", "gauge", "globe", "grip-horizontal", "grip-vertical",
+ "heart", "history", "id-card", "info", "key-round", "keyboard", "languages", "layers", "layout-dashboard", "list",
+ "list-chevrons-down-up", "list-chevrons-up-down", "list-filter", "list-plus", "list-x", "lock", "map-pin",
+ "maximize", "maximize-2", "minimize", "minus", "monitor", "monitor-check", "monitor-dot", "monitor-down", "monitor-x", "network", "octagon-alert", "palette",
+ "pause", "pencil", "pin", "play", "plug-zap", "plus", "power", "radar", "radio-tower", "refresh-cw", "rocket",
+ "rotate-ccw", "route", "router", "save", "scan", "scan-line", "scissors", "search", "server", "settings", "shield",
+ "shield-lock", "shield-off", "sliders-horizontal", "square-chevron-right", "table", "tag", "terminal", "timer",
+ "toggle-left", "toggle-right", "triangle-alert", "undo-2", "unplug", "user", "user-lock", "users", "wifi",
+ "wifi-high", "wifi-lock", "wifi-low", "wifi-off", "wifi-zero", "x"
+)
+
+# Lock of the icon wifi-lock (bottom right), for the Wi-Fi signal levels with lock
+$WifiLock = ''
+
+# Custom icons: SVG elements (24 x 24 like Lucide), optionally scaled and moved (Scale, then Offset)
+$CustomIcons = [ordered]@{
+ # Wi-Fi signal levels with lock, from the parts of wifi-lock
+ "wifi-zero-lock" = @{ Svg = '' + $WifiLock }
+ "wifi-low-lock" = @{ Svg = '' + $WifiLock }
+ "wifi-high-lock" = @{ Svg = '' + $WifiLock }
+
+ # Brand logos (Lucide has no brand icons) from Simple Icons (https://simpleicons.org, CC0 1.0), filled. Scaled from
+ # 24 to 20 units to get the padding of the Lucide icons.
+ "github" = @{
+ Svg = ''
+ Scale = 20 / 24
+ Offset = 2
+ }
+ "x-logo" = @{
+ Svg = ''
+ Scale = 20 / 24
+ Offset = 2
+ }
+}
+
+$Culture = [System.Globalization.CultureInfo]::InvariantCulture
+
+function Format-Number([double]$Value) {
+ $Value.ToString("0.####", $Culture)
+}
+
+# Number of parameters per path command and which of them are x / y coordinates (moved by the offset if absolute) or
+# lengths (only scaled); arc flags and the rotation are kept.
+$PathCommands = @{
+ "M" = "xy"; "L" = "xy"; "T" = "xy"; "H" = "x"; "V" = "y"; "C" = "xyxyxy"; "S" = "xyxy"; "Q" = "xyxy";
+ "A" = "llrffxy"; "Z" = ""
+}
+
+# Normalizes the path data of an SVG path (numbers separated by spaces, arc flags without separator like "0120 0"
+# are split) and applies the scale / offset. The path mini-language of WPF supports the same commands.
+function Convert-PathData([string]$Data, [double]$Scale = 1, [double]$Offset = 0) {
+ $Result = [System.Text.StringBuilder]::new()
+ $Pos = 0
+ $Command = $null
+ $IsFirst = $true
+
+ while ($true) {
+ while ($Pos -lt $Data.Length -and ([char]::IsWhiteSpace($Data[$Pos]) -or $Data[$Pos] -eq ",")) {
+ $Pos++
+ }
+
+ if ($Pos -ge $Data.Length) {
+ break
+ }
+
+ if ([char]::IsLetter($Data[$Pos])) {
+ $Command = [string]$Data[$Pos]
+ $Pos++
+
+ if (-not $PathCommands.ContainsKey($Command.ToUpperInvariant())) {
+ throw "Unknown path command '$Command' in '$Data'."
+ }
+ }
+ elseif ($null -eq $Command) {
+ throw "Path data doesn't start with a command: '$Data'."
+ }
+
+ # A relative moveto at the start of a path is absolute (the paths of an icon are joined to one path)
+ $Implicit = $null
+
+ if ($IsFirst -and $Command -ceq "m") {
+ $Command = "M"
+ $Implicit = "l"
+ }
+
+ $IsFirst = $false
+
+ $Upper = $Command.ToUpperInvariant()
+ $IsRelative = $Command -cne $Upper
+ $Roles = $PathCommands[$Upper]
+
+ [void]$Result.Append($Command)
+
+ foreach ($Role in $Roles.ToCharArray()) {
+ while ($Pos -lt $Data.Length -and ([char]::IsWhiteSpace($Data[$Pos]) -or $Data[$Pos] -eq ",")) {
+ $Pos++
+ }
+
+ if ($Role -eq "f") {
+ # Arc flag: a single 0 or 1 (may be followed by the next number without separator)
+ $Value = [double]::Parse([string]$Data[$Pos], $Culture)
+ $Pos++
+ }
+ else {
+ $Match = [regex]::Match($Data.Substring($Pos), "^[+-]?(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?")
+
+ if (-not $Match.Success) {
+ throw "Invalid number at position $Pos in '$Data'."
+ }
+
+ $Value = [double]::Parse($Match.Value, $Culture)
+ $Pos += $Match.Length
+
+ if ($Role -in "x", "y", "l") {
+ $Value *= $Scale
+ }
+
+ if ($Role -in "x", "y" -and -not $IsRelative) {
+ $Value += $Offset
+ }
+ }
+
+ [void]$Result.Append((Format-Number $Value)).Append(" ")
+ }
+
+ if ($Roles.Length -eq 0) {
+ [void]$Result.Append(" ")
+ }
+
+ # Implicit commands after M / m are lines, Z has no parameters
+ if ($Upper -eq "M") {
+ $Command = if ($Implicit) { $Implicit } elseif ($IsRelative) { "l" } else { "L" }
+ }
+ elseif ($Upper -eq "Z") {
+ $Command = $null
+ }
+ }
+
+ $Result.ToString().Trim()
+}
+
+# Converts one SVG element to path data (in SVG syntax, normalized by Convert-PathData)
+function Convert-Element([System.Xml.XmlElement]$Element) {
+ $Get = { param($Name, $Default = 0) $Attribute = $Element.GetAttribute($Name); if ($Attribute) { [double]::Parse($Attribute, $Culture) } else { $Default } }
+ $N = { param($Value) Format-Number $Value }
+
+ if ($Element.HasAttribute("transform")) {
+ throw "Transforms are not supported: $($Element.OuterXml)"
+ }
+
+ switch ($Element.LocalName) {
+ "path" {
+ $Element.GetAttribute("d")
+ }
+ "line" {
+ "M$(& $N (& $Get x1)) $(& $N (& $Get y1))L$(& $N (& $Get x2)) $(& $N (& $Get y2))"
+ }
+ { $_ -in "polyline", "polygon" } {
+ $Points = $Element.GetAttribute("points").Trim() -split "[\s,]+"
+ $Data = "M$($Points[0]) $($Points[1])"
+
+ for ($i = 2; $i -lt $Points.Length; $i += 2) {
+ $Data += "L$($Points[$i]) $($Points[$i + 1])"
+ }
+
+ if ($_ -eq "polygon") { $Data + "Z" } else { $Data }
+ }
+ { $_ -in "circle", "ellipse" } {
+ $Cx = & $Get cx; $Cy = & $Get cy
+
+ if ($_ -eq "circle") { $Rx = & $Get r; $Ry = $Rx } else { $Rx = & $Get rx; $Ry = & $Get ry }
+
+ "M$(& $N ($Cx - $Rx)) $(& $N $Cy)A$(& $N $Rx) $(& $N $Ry) 0 1 0 $(& $N ($Cx + $Rx)) $(& $N $Cy)" +
+ "A$(& $N $Rx) $(& $N $Ry) 0 1 0 $(& $N ($Cx - $Rx)) $(& $N $Cy)Z"
+ }
+ "rect" {
+ $X = & $Get x; $Y = & $Get y; $W = & $Get width; $H = & $Get height
+ $Rx = & $Get rx -1; $Ry = & $Get ry -1
+
+ if ($Rx -lt 0) { $Rx = if ($Ry -lt 0) { 0 } else { $Ry } }
+ if ($Ry -lt 0) { $Ry = $Rx }
+
+ $Rx = [Math]::Min($Rx, $W / 2); $Ry = [Math]::Min($Ry, $H / 2)
+
+ if ($Rx -eq 0 -or $Ry -eq 0) {
+ "M$(& $N $X) $(& $N $Y)H$(& $N ($X + $W))V$(& $N ($Y + $H))H$(& $N $X)Z"
+ }
+ else {
+ $Arc = "A$(& $N $Rx) $(& $N $Ry) 0 0 1"
+
+ "M$(& $N ($X + $Rx)) $(& $N $Y)H$(& $N ($X + $W - $Rx))$Arc $(& $N ($X + $W)) $(& $N ($Y + $Ry))" +
+ "V$(& $N ($Y + $H - $Ry))$Arc $(& $N ($X + $W - $Rx)) $(& $N ($Y + $H))" +
+ "H$(& $N ($X + $Rx))$Arc $(& $N $X) $(& $N ($Y + $H - $Ry))" +
+ "V$(& $N ($Y + $Ry))$Arc $(& $N ($X + $Rx)) $(& $N $Y)Z"
+ }
+ }
+ default {
+ throw "Unsupported element <$($Element.LocalName)>: $($Element.OuterXml)"
+ }
+ }
+}
+
+# Converts the SVG elements of an icon to the stroke and fill geometry (WPF path markup, "F1" = fill rule non-zero)
+function Convert-Icon([string]$Svg, [double]$Scale = 1, [double]$Offset = 0) {
+ $Xml = [xml]""
+ $Stroke = @()
+ $Fill = @()
+
+ foreach ($Element in $Xml.DocumentElement.ChildNodes) {
+ if ($Element -isnot [System.Xml.XmlElement]) {
+ continue
+ }
+
+ $Data = Convert-PathData -Data (Convert-Element $Element) -Scale $Scale -Offset $Offset
+
+ if ($Element.GetAttribute("stroke") -ne "none") {
+ $Stroke += $Data
+ }
+
+ if ($Element.GetAttribute("fill") -eq "currentColor") {
+ $Fill += $Data
+ }
+ }
+
+ [pscustomobject]@{
+ Stroke = if ($Stroke) { "F1 " + ($Stroke -join " ") } else { $null }
+ Fill = if ($Fill) { "F1 " + ($Fill -join " ") } else { $null }
+ }
+}
+
+function ConvertTo-PascalCase([string]$Name) {
+ (($Name -split "-") | ForEach-Object { $_.Substring(0, 1).ToUpperInvariant() + $_.Substring(1) }) -join ""
+}
+
+# Download and extract the package
+$TempPath = Join-Path -Path ([System.IO.Path]::GetTempPath()) -ChildPath "lucide-static-$Version-$([guid]::NewGuid())"
+New-Item -ItemType Directory -Path $TempPath | Out-Null
+
+try {
+ $PackagePath = Join-Path -Path $TempPath -ChildPath "lucide-static.tgz"
+ Invoke-WebRequest -Uri "https://registry.npmjs.org/lucide-static/-/lucide-static-$Version.tgz" -OutFile $PackagePath
+ tar -xzf $PackagePath -C $TempPath
+
+ if ($LASTEXITCODE -ne 0) {
+ throw "Could not extract $PackagePath."
+ }
+
+ $IconsPath = Join-Path -Path $TempPath -ChildPath "package/icons"
+
+ $Converted = [ordered]@{}
+
+ foreach ($Icon in $Icons) {
+ $SvgPath = Join-Path -Path $IconsPath -ChildPath "$Icon.svg"
+
+ if (-not (Test-Path $SvgPath)) {
+ throw "Icon '$Icon' not found in lucide-static $Version."
+ }
+
+ $Svg = [xml](Get-Content -Path $SvgPath -Raw)
+ $Converted[$Icon] = Convert-Icon -Svg $Svg.DocumentElement.InnerXml.Replace(' xmlns="http://www.w3.org/2000/svg"', "")
+ }
+
+ foreach ($Icon in $CustomIcons.Keys) {
+ $Custom = $CustomIcons[$Icon]
+ $Scale = if ($Custom.Scale) { $Custom.Scale } else { 1 }
+ $Offset = if ($Custom.Offset) { $Custom.Offset } else { 0 }
+
+ $Converted[$Icon] = Convert-Icon -Svg $Custom.Svg -Scale $Scale -Offset $Offset
+ }
+
+ # License of Lucide (ISC, incl. the MIT license of the icons derived from Feather)
+ $License = Get-Content -Path (Join-Path -Path $TempPath -ChildPath "package/LICENSE") -Raw
+ Set-Content -Path $LicenseFilePath -Value (($License.TrimEnd() -replace "`r?`n", "`r`n") + "`r`n") -Encoding utf8NoBOM -NoNewline
+
+ $Names = $Converted.Keys | Sort-Object { ConvertTo-PascalCase $_ }
+
+ $Kinds = $Names | ForEach-Object { " $(ConvertTo-PascalCase $_)," }
+ $Data = $Names | ForEach-Object {
+ $Value = $Converted[$_]
+ $Stroke = if ($Value.Stroke) { "`"$($Value.Stroke)`"" } else { "null" }
+ $Fill = if ($Value.Fill) { "`"$($Value.Fill)`"" } else { "null" }
+
+ " [LucideIconKind.$(ConvertTo-PascalCase $_)] = ($Stroke, $Fill),"
+ }
+
+ $LicenseComment = ($License.TrimEnd() -split "`r?`n" | ForEach-Object { "// $_".TrimEnd() }) -join "`n"
+
+ $Content = @"
+//
+// Generated $(Get-Date -Format "yyyy-MM-dd") by Scripts/Create-LucideIcons.ps1 from lucide-static $Version
+// (https://lucide.dev). Don't edit this file, add the icon to the script and run it again.
+//
+// Custom icons: wifi-*-lock from the parts of wifi-lock (Lucide), github and x-logo from Simple Icons
+// (https://simpleicons.org, CC0 1.0).
+//
+//
+$LicenseComment
+
+using System.Collections.Generic;
+
+namespace NETworkManager.Controls;
+
+///
+/// Lucide icons of the application (see ).
+///
+public enum LucideIconKind
+{
+ None,
+$($Kinds -join "`n")
+}
+
+///
+/// Geometries of the Lucide icons (24 x 24 units): drawn with a pen, and filled (e.g. dots, logos).
+///
+internal static class LucideIconData
+{
+ public static readonly IReadOnlyDictionary Icons =
+ new Dictionary
+ {
+$($Data -join "`n")
+ };
+}
+"@
+
+ # LF -> CRLF like the other C# files
+ Set-Content -Path $OutFilePath -Value ($Content -replace "`r?`n", "`r`n") -Encoding utf8NoBOM -NoNewline
+
+ Write-Host "Created $OutFilePath with $($Converted.Count) icons."
+}
+finally {
+ Remove-Item -Path $TempPath -Recurse -Force
+}
diff --git a/Source/3rdparty/Dragablz b/Source/3rdparty/Dragablz
index 5045038306..5415e719c0 160000
--- a/Source/3rdparty/Dragablz
+++ b/Source/3rdparty/Dragablz
@@ -1 +1 @@
-Subproject commit 5045038306c479eaf0e7073a51081905ff14b123
+Subproject commit 5415e719c0d289f375bcb7f1a3e69f50616c45dc
diff --git a/Source/GlobalAssemblyInfo.cs b/Source/GlobalAssemblyInfo.cs
index b7d139d7d0..193da9dd26 100644
--- a/Source/GlobalAssemblyInfo.cs
+++ b/Source/GlobalAssemblyInfo.cs
@@ -6,5 +6,5 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-[assembly: AssemblyVersion("2026.11.8.0")]
-[assembly: AssemblyFileVersion("2026.11.8.0")]
+[assembly: AssemblyVersion("2026.11.11.0")]
+[assembly: AssemblyFileVersion("2026.11.11.0")]
diff --git a/Source/NETworkManager.Controls/AdminNotice.cs b/Source/NETworkManager.Controls/AdminNotice.cs
new file mode 100644
index 0000000000..518a7d61ea
--- /dev/null
+++ b/Source/NETworkManager.Controls/AdminNotice.cs
@@ -0,0 +1,38 @@
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Input;
+
+namespace NETworkManager.Controls;
+
+///
+/// Notice below a list that a tool needs elevated rights (e.g. read-only mode of the Firewall): one row with a
+/// shield, the and the button "Restart as Administrator" () on the right.
+/// The look (template) is defined by the style DefaultAdminNotice of the application (TextBlockStyles.xaml,
+/// implicit style).
+///
+public class AdminNotice : Control
+{
+ public static readonly DependencyProperty TextProperty = DependencyProperty.Register(nameof(Text),
+ typeof(string), typeof(AdminNotice), new PropertyMetadata(null));
+
+ public static readonly DependencyProperty CommandProperty = DependencyProperty.Register(nameof(Command),
+ typeof(ICommand), typeof(AdminNotice), new PropertyMetadata(null));
+
+ ///
+ /// Message (e.g. why the tool is read-only).
+ ///
+ public string Text
+ {
+ get => (string)GetValue(TextProperty);
+ set => SetValue(TextProperty, value);
+ }
+
+ ///
+ /// Command of the button "Restart as Administrator".
+ ///
+ public ICommand Command
+ {
+ get => (ICommand)GetValue(CommandProperty);
+ set => SetValue(CommandProperty, value);
+ }
+}
diff --git a/Source/NETworkManager.Controls/ComboBoxPopupBehavior.cs b/Source/NETworkManager.Controls/ComboBoxPopupBehavior.cs
new file mode 100644
index 0000000000..f156a1b201
--- /dev/null
+++ b/Source/NETworkManager.Controls/ComboBoxPopupBehavior.cs
@@ -0,0 +1,123 @@
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+
+namespace NETworkManager.Controls;
+
+///
+/// Attached property that shows the drop-down of a like the context menu: rounded corners, a
+/// soft shadow, a small padding around the items and a small gap below the ComboBox (above it if there is no space
+/// below).
+///
+/// The drop-down is part of the template of MahApps (PART_Popup with the PopupBorder, 2.4.11). It is
+/// changed when the drop-down is opened instead of copying the whole ComboBox template (~400 lines, which would have
+/// to be kept in sync with MahApps). If the parts are not found (e.g. another template), nothing is changed.
+///
+public static class ComboBoxPopupBehavior
+{
+ ///
+ /// Space for the shadow on the right and at the bottom (like the context menu).
+ ///
+ private const double ShadowSize = 6;
+
+ ///
+ /// Gap between the ComboBox and the drop-down.
+ ///
+ private const double Gap = 2;
+
+ public static readonly DependencyProperty IsRoundedProperty =
+ DependencyProperty.RegisterAttached(
+ "IsRounded",
+ typeof(bool),
+ typeof(ComboBoxPopupBehavior),
+ new PropertyMetadata(false, OnIsRoundedChanged));
+
+ public static void SetIsRounded(UIElement element, bool value) =>
+ element.SetValue(IsRoundedProperty, value);
+
+ public static bool GetIsRounded(UIElement element) =>
+ (bool)element.GetValue(IsRoundedProperty);
+
+ ///
+ /// Shadow border added behind the PopupBorder (the shadow is not set on the PopupBorder itself,
+ /// an effect on it would render the text of the items without ClearType).
+ ///
+ private static readonly DependencyProperty ShadowBorderProperty =
+ DependencyProperty.RegisterAttached(
+ "ShadowBorder",
+ typeof(Border),
+ typeof(ComboBoxPopupBehavior),
+ new PropertyMetadata(null));
+
+ private static void OnIsRoundedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ if (d is not ComboBox comboBox)
+ return;
+
+ if ((bool)e.NewValue)
+ comboBox.DropDownOpened += ComboBox_DropDownOpened;
+ else
+ comboBox.DropDownOpened -= ComboBox_DropDownOpened;
+ }
+
+ private static void ComboBox_DropDownOpened(object sender, System.EventArgs e)
+ {
+ if (sender is not ComboBox comboBox || comboBox.Template == null)
+ return;
+
+ if (comboBox.Template.FindName("PART_Popup", comboBox) is not Popup popup ||
+ comboBox.Template.FindName("PopupBorder", comboBox) is not Border popupBorder ||
+ popupBorder.Parent is not Grid popupGrid)
+ return;
+
+ // At least as wide as the ComboBox (MahApps binds MinWidth to its width), plus the space for the shadow.
+ // Set on every opening, the width of the ComboBox can change.
+ popupGrid.MinWidth = comboBox.ActualWidth + ShadowSize;
+
+ // Already changed (the template parts are kept until the template changes)
+ if (popupGrid.GetValue(ShadowBorderProperty) != null)
+ return;
+
+ var cornerRadius = comboBox.TryFindResource("CornerRadius.Control") is CornerRadius radius
+ ? radius
+ : new CornerRadius(4);
+
+ var shadowMargin = new Thickness(0, 0, ShadowSize, ShadowSize);
+
+ var shadowBorder = new Border
+ {
+ CornerRadius = cornerRadius,
+ Margin = shadowMargin,
+ IsHitTestVisible = false
+ };
+ shadowBorder.SetResourceReference(Border.BackgroundProperty, "MahApps.Brushes.ThemeBackground");
+ shadowBorder.SetResourceReference(UIElement.EffectProperty, "MahApps.DropShadowEffect.Menu");
+
+ popupGrid.Children.Insert(0, shadowBorder);
+ popupGrid.SetValue(ShadowBorderProperty, shadowBorder);
+
+ popupBorder.CornerRadius = cornerRadius;
+ popupBorder.Margin = shadowMargin;
+ popupBorder.Padding = new Thickness(3);
+ popupBorder.SetResourceReference(Border.BorderBrushProperty, "Brushes.Surface.Border");
+
+ // Small gap below the ComboBox, or above it if there is no space below (near the bottom of the screen). With
+ // Placement Bottom and a VerticalOffset the flipped drop-down would overlap the ComboBox and the space for the
+ // shadow would be between them. The popup of MahApps already allows transparency for the rounded corners.
+ popup.VerticalOffset = 0;
+ popup.Placement = PlacementMode.Custom;
+ popup.CustomPopupPlacementCallback = (popupSize, targetSize, _) =>
+ {
+ // The sizes and the returned positions are in device pixels
+ var scale = PresentationSource.FromVisual(comboBox)?.CompositionTarget?.TransformToDevice.M22 ?? 1;
+
+ return
+ [
+ new CustomPopupPlacement(new Point(0, targetSize.Height + Gap * scale), PopupPrimaryAxis.Horizontal),
+ // Above: the bottom of the box (without the space for the shadow) a gap above the ComboBox
+ new CustomPopupPlacement(new Point(0, -(popupSize.Height - ShadowSize * scale) - Gap * scale),
+ PopupPrimaryAxis.Horizontal)
+ ];
+ };
+ }
+}
diff --git a/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs b/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs
new file mode 100644
index 0000000000..05a8c4a9e9
--- /dev/null
+++ b/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs
@@ -0,0 +1,105 @@
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Input;
+
+namespace NETworkManager.Controls;
+
+///
+/// Attached property that prevents changing the value of a read-only (e.g. the host of the
+/// IP Scanner while a scan is running).
+///
+/// only prevents typing into an editable ComboBox, an entry can still be selected
+/// with the keyboard (Up / Down, Page Up / Page Down, F4 and Alt + Up / Down to open the drop-down) and, for a ComboBox
+/// that is not editable, by typing the first letters. These keys are blocked while the ComboBox is read-only. The
+/// ComboBox keeps the focus and the text can still be selected and copied, unlike a disabled ComboBox. Tab, Enter and
+/// Esc still work (e.g. Esc to cancel a scan).
+///
+/// Opening the drop-down with the mouse is prevented by the drop-down toggle in DefaultComboBox
+/// (not hit-test visible while read-only).
+///
+public static class ComboBoxReadOnlyBehavior
+{
+ ///
+ /// An editable ComboBox selects the next / previous entry in its own OnPreviewKeyDown, which runs before
+ /// handlers added to the instance. A class handler of runs before it.
+ ///
+ static ComboBoxReadOnlyBehavior()
+ {
+ EventManager.RegisterClassHandler(typeof(ComboBox), Keyboard.PreviewKeyDownEvent,
+ new KeyEventHandler(ComboBox_PreviewKeyDown));
+ }
+
+ public static readonly DependencyProperty PreventSelectionWhenReadOnlyProperty =
+ DependencyProperty.RegisterAttached(
+ "PreventSelectionWhenReadOnly",
+ typeof(bool),
+ typeof(ComboBoxReadOnlyBehavior),
+ new PropertyMetadata(false, OnPreventSelectionWhenReadOnlyChanged));
+
+ public static void SetPreventSelectionWhenReadOnly(UIElement element, bool value) =>
+ element.SetValue(PreventSelectionWhenReadOnlyProperty, value);
+
+ public static bool GetPreventSelectionWhenReadOnly(UIElement element) =>
+ (bool)element.GetValue(PreventSelectionWhenReadOnlyProperty);
+
+ private static void OnPreventSelectionWhenReadOnlyChanged(DependencyObject d,
+ DependencyPropertyChangedEventArgs e)
+ {
+ if (d is not ComboBox comboBox)
+ return;
+
+ if ((bool)e.NewValue)
+ {
+ comboBox.PreviewTextInput += ComboBox_PreviewTextInput;
+ comboBox.DropDownOpened += ComboBox_DropDownOpened;
+ }
+ else
+ {
+ comboBox.PreviewTextInput -= ComboBox_PreviewTextInput;
+ comboBox.DropDownOpened -= ComboBox_DropDownOpened;
+ }
+ }
+
+ private static void ComboBox_PreviewKeyDown(object sender, KeyEventArgs e)
+ {
+ if (sender is not ComboBox { IsReadOnly: true } comboBox || !GetPreventSelectionWhenReadOnly(comboBox))
+ return;
+
+ var key = e.Key == Key.System ? e.SystemKey : e.Key;
+
+ switch (key)
+ {
+ // Select another entry or open the drop-down (Alt + Up / Down)
+ case Key.Up:
+ case Key.Down:
+ case Key.PageUp:
+ case Key.PageDown:
+ e.Handled = true;
+ break;
+ // Open the drop-down - only F4 itself, Alt + F4 closes the window
+ case Key.F4 when e.Key != Key.System:
+ e.Handled = true;
+ break;
+ // Not editable: select the first / last entry (editable: move the caret in the text)
+ case Key.Home:
+ case Key.End:
+ if (!comboBox.IsEditable)
+ e.Handled = true;
+ break;
+ }
+ }
+
+ private static void ComboBox_PreviewTextInput(object sender, TextCompositionEventArgs e)
+ {
+ // Not editable: typing selects the entry that starts with the text (editable: the text box is read-only)
+ if (sender is ComboBox { IsReadOnly: true, IsEditable: false })
+ e.Handled = true;
+ }
+
+ private static void ComboBox_DropDownOpened(object sender, System.EventArgs e)
+ {
+ // Fallback if the drop-down is opened in another way
+ if (sender is ComboBox { IsReadOnly: true } comboBox)
+ comboBox.IsDropDownOpen = false;
+ }
+}
diff --git a/Source/NETworkManager.Controls/EmptyStateMessage.cs b/Source/NETworkManager.Controls/EmptyStateMessage.cs
new file mode 100644
index 0000000000..b635f96930
--- /dev/null
+++ b/Source/NETworkManager.Controls/EmptyStateMessage.cs
@@ -0,0 +1,53 @@
+using System.Windows;
+using System.Windows.Controls;
+
+namespace NETworkManager.Controls;
+
+///
+/// Message in an empty area (e.g. no rules found, configure the path): a gray
+/// above the . The look (template, text style) is defined by the style
+/// DefaultEmptyStateMessage of the application (TextBlockStyles.xaml, implicit style).
+///
+public class EmptyStateMessage : Control
+{
+ ///
+ /// Default size of the icon (empty area).
+ ///
+ public const double DefaultIconSize = 40;
+
+ public static readonly DependencyProperty TextProperty = DependencyProperty.Register(nameof(Text),
+ typeof(string), typeof(EmptyStateMessage), new PropertyMetadata(null));
+
+ public static readonly DependencyProperty IconProperty = DependencyProperty.Register(nameof(Icon),
+ typeof(LucideIconKind), typeof(EmptyStateMessage), new PropertyMetadata(LucideIconKind.None));
+
+ public static readonly DependencyProperty IconSizeProperty = DependencyProperty.Register(nameof(IconSize),
+ typeof(double), typeof(EmptyStateMessage), new PropertyMetadata(DefaultIconSize));
+
+ ///
+ /// Message.
+ ///
+ public string Text
+ {
+ get => (string)GetValue(TextProperty);
+ set => SetValue(TextProperty, value);
+ }
+
+ ///
+ /// Icon above the message (none = only the message).
+ ///
+ public LucideIconKind Icon
+ {
+ get => (LucideIconKind)GetValue(IconProperty);
+ set => SetValue(IconProperty, value);
+ }
+
+ ///
+ /// Size of the icon (default ).
+ ///
+ public double IconSize
+ {
+ get => (double)GetValue(IconSizeProperty);
+ set => SetValue(IconSizeProperty, value);
+ }
+}
diff --git a/Source/NETworkManager.Controls/LucideIcon.cs b/Source/NETworkManager.Controls/LucideIcon.cs
new file mode 100644
index 0000000000..9bb2cfe692
--- /dev/null
+++ b/Source/NETworkManager.Controls/LucideIcon.cs
@@ -0,0 +1,194 @@
+using System;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.Windows;
+using System.Windows.Documents;
+using System.Windows.Markup;
+using System.Windows.Media;
+
+namespace NETworkManager.Controls;
+
+///
+/// Lucide icon (https://lucide.dev): the lines of the icon drawn with a pen (round caps and joins) in the
+/// , scaled from 24 x 24 units to the size of the element (default 24 x 24). Icons are
+/// created by Scripts/Create-LucideIcons.ps1 ().
+///
+/// The whole 24 x 24 box is part of the drawing (transparent), so a with the icon (e.g. as
+/// opacity mask of a rectangle, see ) shows every icon in the same size and position.
+/// Icons that only cover a small part of the box (plus, X, chevrons, ...) use a smaller box (see SmallIcons).
+///
+public class LucideIcon : FrameworkElement
+{
+ ///
+ /// Size of the icons in units (view box).
+ ///
+ private const double Size = 24;
+
+ ///
+ /// Default thickness of the lines in units (Lucide: 2). Thinner lines look calmer, especially at 16 px.
+ ///
+ public const double DefaultStrokeThickness = 1.75;
+
+ ///
+ /// Box of the icons that only cover a small part of the 24 units (plus, minus, X, chevrons, arrows: 12 - 14
+ /// units, most icons about 20): drawn in a smaller box (1.25 times larger), so they look as large as the other
+ /// icons and as before with the MahApps icons (stretched to their outline).
+ ///
+ private const double SmallIconBox = 19.2;
+
+ private static readonly HashSet SmallIcons =
+ [
+ LucideIconKind.Plus, LucideIconKind.Minus, LucideIconKind.X, LucideIconKind.ChevronDown,
+ LucideIconKind.ChevronUp, LucideIconKind.ChevronLeft, LucideIconKind.ChevronRight,
+ LucideIconKind.ChevronsRight, LucideIconKind.ArrowDown, LucideIconKind.ArrowLeft, LucideIconKind.ArrowUp
+ ];
+
+ private static readonly ConcurrentDictionary Geometries = new();
+
+ public static readonly DependencyProperty KindProperty = DependencyProperty.Register(nameof(Kind),
+ typeof(LucideIconKind), typeof(LucideIcon),
+ new FrameworkPropertyMetadata(LucideIconKind.None, FrameworkPropertyMetadataOptions.AffectsRender));
+
+ public static readonly DependencyProperty ForegroundProperty =
+ TextElement.ForegroundProperty.AddOwner(typeof(LucideIcon),
+ new FrameworkPropertyMetadata(Brushes.Black,
+ FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.AffectsRender));
+
+ public static readonly DependencyProperty StrokeThicknessProperty = DependencyProperty.Register(
+ nameof(StrokeThickness), typeof(double), typeof(LucideIcon),
+ new FrameworkPropertyMetadata(DefaultStrokeThickness, FrameworkPropertyMetadataOptions.AffectsRender));
+
+ ///
+ /// Icon to show.
+ ///
+ public LucideIconKind Kind
+ {
+ get => (LucideIconKind)GetValue(KindProperty);
+ set => SetValue(KindProperty, value);
+ }
+
+ ///
+ /// Color of the icon (inherited like the foreground of text).
+ ///
+ public Brush Foreground
+ {
+ get => (Brush)GetValue(ForegroundProperty);
+ set => SetValue(ForegroundProperty, value);
+ }
+
+ ///
+ /// Thickness of the lines in units of the 24 x 24 icon (scaled with the icon).
+ ///
+ public double StrokeThickness
+ {
+ get => (double)GetValue(StrokeThicknessProperty);
+ set => SetValue(StrokeThicknessProperty, value);
+ }
+
+ ///
+ /// 24 x 24 if the size is not set or not limited (e.g. in a ), otherwise the available
+ /// size (square).
+ ///
+ protected override Size MeasureOverride(Size availableSize)
+ {
+ var size = Math.Min(availableSize.Width, availableSize.Height);
+
+ if (double.IsInfinity(size))
+ size = double.IsInfinity(availableSize.Width) ? availableSize.Height : availableSize.Width;
+
+ if (double.IsInfinity(size))
+ size = Size;
+
+ return new Size(size, size);
+ }
+
+ protected override void OnRender(DrawingContext drawingContext)
+ {
+ var size = Math.Min(ActualWidth, ActualHeight);
+
+ if (size <= 0)
+ return;
+
+ // Box in units (centered in the 24 units), see SmallIcons
+ var box = SmallIcons.Contains(Kind) ? SmallIconBox : Size;
+ var inset = (Size - box) / 2;
+ var scale = size / box;
+
+ drawingContext.PushTransform(new MatrixTransform(scale, 0, 0, scale,
+ (ActualWidth - size) / 2 - inset * scale, (ActualHeight - size) / 2 - inset * scale));
+
+ // The whole box, so the bounds are the same for all icons (VisualBrush)
+ drawingContext.DrawRectangle(Brushes.Transparent, null, new Rect(inset, inset, box, box));
+
+ var (stroke, fill) = GetGeometries(Kind);
+
+ if (fill != null)
+ drawingContext.DrawGeometry(Foreground, null, fill);
+
+ if (stroke != null)
+ {
+ var pen = new Pen(Foreground, StrokeThickness)
+ {
+ StartLineCap = PenLineCap.Round,
+ EndLineCap = PenLineCap.Round,
+ DashCap = PenLineCap.Round,
+ LineJoin = PenLineJoin.Round
+ };
+
+ // Freezing the pen freezes its brush too: only if the brush is frozen already (a shared brush must not be
+ // frozen as a side effect, an animated / bound brush can't be frozen)
+ if (Foreground is not { IsFrozen: false })
+ pen.Freeze();
+
+ drawingContext.DrawGeometry(null, pen, stroke);
+ }
+
+ drawingContext.Pop();
+ }
+
+ ///
+ /// Geometries of the icon (parsed once, frozen).
+ ///
+ private static (Geometry Stroke, Geometry Fill) GetGeometries(LucideIconKind kind)
+ {
+ if (kind == LucideIconKind.None || !LucideIconData.Icons.TryGetValue(kind, out var data))
+ return (null, null);
+
+ return Geometries.GetOrAdd(kind, _ => (Parse(data.Stroke), Parse(data.Fill)));
+ }
+
+ private static Geometry Parse(string data)
+ {
+ if (data == null)
+ return null;
+
+ var geometry = Geometry.Parse(data);
+ geometry.Freeze();
+
+ return geometry;
+ }
+}
+
+///
+/// Creates a in XAML, e.g. as visual of a :
+/// Visual="{icons:Lucide Kind=Router}".
+///
+[MarkupExtensionReturnType(typeof(LucideIcon))]
+public class LucideExtension : MarkupExtension
+{
+ public LucideExtension()
+ {
+ }
+
+ public LucideExtension(LucideIconKind kind)
+ {
+ Kind = kind;
+ }
+
+ [ConstructorArgument("kind")] public LucideIconKind Kind { get; set; }
+
+ public override object ProvideValue(IServiceProvider serviceProvider)
+ {
+ return new LucideIcon { Kind = Kind };
+ }
+}
diff --git a/Source/NETworkManager.Controls/LucideIcons.cs b/Source/NETworkManager.Controls/LucideIcons.cs
new file mode 100644
index 0000000000..1bf8486e27
--- /dev/null
+++ b/Source/NETworkManager.Controls/LucideIcons.cs
@@ -0,0 +1,338 @@
+//
+// Generated 2026-11-10 by Scripts/Create-LucideIcons.ps1 from lucide-static 1.71.0
+// (https://lucide.dev). Don't edit this file, add the icon to the script and run it again.
+//
+// Custom icons: wifi-*-lock from the parts of wifi-lock (Lucide), github and x-logo from Simple Icons
+// (https://simpleicons.org, CC0 1.0).
+//
+//
+// ISC License
+//
+// Copyright (c) 2026 Lucide Icons and Contributors
+//
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted, provided that the above
+// copyright notice and this permission notice appear in all copies.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+//
+// ---
+//
+// The following Lucide icons are derived from the Feather project:
+//
+// airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
+//
+// The MIT License (MIT) (for the icons listed above)
+//
+// Copyright (c) 2013-present Cole Bemis
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in all
+// copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+// SOFTWARE.
+
+using System.Collections.Generic;
+
+namespace NETworkManager.Controls;
+
+///
+/// Lucide icons of the application (see ).
+///
+public enum LucideIconKind
+{
+ None,
+ Activity,
+ AppWindow,
+ ArrowBigUp,
+ ArrowDown,
+ ArrowLeft,
+ ArrowLeftRight,
+ ArrowUp,
+ Binary,
+ BookOpen,
+ Box,
+ BrickWallFire,
+ Bug,
+ Calculator,
+ Check,
+ CheckCheck,
+ ChevronDown,
+ ChevronLeft,
+ ChevronRight,
+ ChevronsRight,
+ ChevronUp,
+ CircleAlert,
+ CircleArrowLeft,
+ CircleArrowRight,
+ CircleCheck,
+ CircleQuestionMark,
+ ClipboardPaste,
+ ClockCheck,
+ CloudDownload,
+ CloudUpload,
+ Copy,
+ CopyPlus,
+ DatabaseSearch,
+ Download,
+ EllipsisVertical,
+ EthernetPort,
+ ExternalLink,
+ Eye,
+ EyeOff,
+ File,
+ FileOutput,
+ FilePenLine,
+ Files,
+ FileSearch,
+ FolderInput,
+ FolderOpen,
+ FolderSearch,
+ Frown,
+ Funnel,
+ FunnelX,
+ Gauge,
+ Github,
+ Globe,
+ GripHorizontal,
+ GripVertical,
+ Heart,
+ History,
+ IdCard,
+ Info,
+ Keyboard,
+ KeyRound,
+ Languages,
+ Layers,
+ LayoutDashboard,
+ List,
+ ListChevronsDownUp,
+ ListChevronsUpDown,
+ ListFilter,
+ ListPlus,
+ ListX,
+ Lock,
+ MapPin,
+ Maximize,
+ Maximize2,
+ Minimize,
+ Minus,
+ Monitor,
+ MonitorCheck,
+ MonitorDot,
+ MonitorDown,
+ MonitorX,
+ Network,
+ OctagonAlert,
+ Palette,
+ Pause,
+ Pencil,
+ Pin,
+ Play,
+ PlugZap,
+ Plus,
+ Power,
+ Radar,
+ RadioTower,
+ RefreshCw,
+ Rocket,
+ RotateCcw,
+ Route,
+ Router,
+ Save,
+ Scan,
+ ScanLine,
+ Scissors,
+ Search,
+ Server,
+ Settings,
+ Shield,
+ ShieldLock,
+ ShieldOff,
+ SlidersHorizontal,
+ SquareChevronRight,
+ Table,
+ Tag,
+ Terminal,
+ Timer,
+ ToggleLeft,
+ ToggleRight,
+ TriangleAlert,
+ Undo2,
+ Unplug,
+ User,
+ UserLock,
+ Users,
+ Wifi,
+ WifiHigh,
+ WifiHighLock,
+ WifiLock,
+ WifiLow,
+ WifiLowLock,
+ WifiOff,
+ WifiZero,
+ WifiZeroLock,
+ X,
+ XLogo,
+}
+
+///
+/// Geometries of the Lucide icons (24 x 24 units): drawn with a pen, and filled (e.g. dots, logos).
+///
+internal static class LucideIconData
+{
+ public static readonly IReadOnlyDictionary Icons =
+ new Dictionary
+ {
+ [LucideIconKind.Activity] = ("F1 M22 12 h-2.48 a2 2 0 0 0 -1.93 1.46 l-2.35 8.36 a0.25 0.25 0 0 1 -0.48 0 L9.24 2.18 a0.25 0.25 0 0 0 -0.48 0 l-2.35 8.36 A2 2 0 0 1 4.49 12 H2", null),
+ [LucideIconKind.AppWindow] = ("F1 M4 4 H20 A2 2 0 0 1 22 6 V18 A2 2 0 0 1 20 20 H4 A2 2 0 0 1 2 18 V6 A2 2 0 0 1 4 4 Z M10 4 v4 M2 8 h20 M6 4 v4", null),
+ [LucideIconKind.ArrowBigUp] = ("F1 M9 19 a1 1 0 0 0 1 1 h4 a1 1 0 0 0 1 -1 v-6 a1 1 0 0 1 1 -1 h3.293 a0.707 0.707 0 0 0 0.5 -1.207 l-7.086 -7.086 a1 1 0 0 0 -1.414 0 l-7.086 7.086 a0.707 0.707 0 0 0 0.5 1.207 H8 a1 1 0 0 1 1 1 z", null),
+ [LucideIconKind.ArrowDown] = ("F1 M12 5 v14 M19 12 l-7 7 l-7 -7", null),
+ [LucideIconKind.ArrowLeft] = ("F1 M12 19 l-7 -7 l7 -7 M19 12 H5", null),
+ [LucideIconKind.ArrowLeftRight] = ("F1 M8 3 L4 7 l4 4 M4 7 h16 M16 21 l4 -4 l-4 -4 M20 17 H4", null),
+ [LucideIconKind.ArrowUp] = ("F1 M5 12 l7 -7 l7 7 M12 19 V5", null),
+ [LucideIconKind.Binary] = ("F1 M16 14 H16 A2 2 0 0 1 18 16 V18 A2 2 0 0 1 16 20 H16 A2 2 0 0 1 14 18 V16 A2 2 0 0 1 16 14 Z M8 4 H8 A2 2 0 0 1 10 6 V8 A2 2 0 0 1 8 10 H8 A2 2 0 0 1 6 8 V6 A2 2 0 0 1 8 4 Z M6 20 h4 M14 10 h4 M6 14 h2 v6 M14 4 h2 v6", null),
+ [LucideIconKind.BookOpen] = ("F1 M12 5 v16 M20.001 19 A2 2 0 0 0 22 17 V5 a2 2 0 0 0 -1.999 -2 L16 3.002 A5 5 0 0 0 12 5 a5 5 0 0 0 -4 -2 H4 a2 2 0 0 0 -2 2 v12 a2 2 0 0 0 1.999 2 H8 a5 5 0 0 1 4 2 a5 5 0 0 1 4 -2 z", null),
+ [LucideIconKind.Box] = ("F1 M21 8 a2 2 0 0 0 -1 -1.73 l-7 -4 a2 2 0 0 0 -2 0 l-7 4 A2 2 0 0 0 3 8 v8 a2 2 0 0 0 1 1.73 l7 4 a2 2 0 0 0 2 0 l7 -4 A2 2 0 0 0 21 16 Z M3.3 7 l8.7 5 l8.7 -5 M12 22 V12", null),
+ [LucideIconKind.BrickWallFire] = ("F1 M16 3 v2.107 M17 9 c1 3 2.5 3.5 3.5 4.5 A5 5 0 0 1 22 17 a5 5 0 0 1 -10 0 c0 -0.3 0 -0.6 0.1 -0.9 a2 2 0 1 0 3.3 -2 C13 11.5 16 9 17 9 M21 8.274 V5 a2 2 0 0 0 -2 -2 H5 a2 2 0 0 0 -2 2 v14 a2 2 0 0 0 2 2 h3.938 M3 15 h5.253 M3 9 h8.228 M8 15 v6 M8 3 v6", null),
+ [LucideIconKind.Bug] = ("F1 M12 20 v-9 M14 7 a4 4 0 0 1 4 4 v3 a6 6 0 0 1 -12 0 v-3 a4 4 0 0 1 4 -4 z M14.12 3.88 L16 2 M21 21 a4 4 0 0 0 -3.81 -4 M21 5 a4 4 0 0 1 -3.55 3.97 M22 13 h-4 M3 21 a4 4 0 0 1 3.81 -4 M3 5 a4 4 0 0 0 3.55 3.97 M6 13 H2 M8 2 l1.88 1.88 M9 7.13 V6 a3 3 0 1 1 6 0 v1.13", null),
+ [LucideIconKind.Calculator] = ("F1 M6 2 H18 A2 2 0 0 1 20 4 V20 A2 2 0 0 1 18 22 H6 A2 2 0 0 1 4 20 V4 A2 2 0 0 1 6 2 Z M8 6 L16 6 M16 14 L16 18 M16 10 h0.01 M12 10 h0.01 M8 10 h0.01 M12 14 h0.01 M8 14 h0.01 M12 18 h0.01 M8 18 h0.01", null),
+ [LucideIconKind.Check] = ("F1 M20 6 L9 17 l-5 -5", null),
+ [LucideIconKind.CheckCheck] = ("F1 M18 6 L7 17 l-5 -5 M22 10 l-7.5 7.5 L13 16", null),
+ [LucideIconKind.ChevronDown] = ("F1 M6 9 l6 6 l6 -6", null),
+ [LucideIconKind.ChevronLeft] = ("F1 M15 18 l-6 -6 l6 -6", null),
+ [LucideIconKind.ChevronRight] = ("F1 M9 18 l6 -6 l-6 -6", null),
+ [LucideIconKind.ChevronsRight] = ("F1 M6 17 l5 -5 l-5 -5 M13 17 l5 -5 l-5 -5", null),
+ [LucideIconKind.ChevronUp] = ("F1 M18 15 l-6 -6 l-6 6", null),
+ [LucideIconKind.CircleAlert] = ("F1 M2 12 A10 10 0 1 0 22 12 A10 10 0 1 0 2 12 Z M12 8 L12 12 M12 16 L12.01 16", null),
+ [LucideIconKind.CircleArrowLeft] = ("F1 M2 12 A10 10 0 1 0 22 12 A10 10 0 1 0 2 12 Z M12 8 l-4 4 l4 4 M16 12 H8", null),
+ [LucideIconKind.CircleArrowRight] = ("F1 M2 12 A10 10 0 1 0 22 12 A10 10 0 1 0 2 12 Z M12 16 l4 -4 l-4 -4 M8 12 h8", null),
+ [LucideIconKind.CircleCheck] = ("F1 M2 12 A10 10 0 1 0 22 12 A10 10 0 1 0 2 12 Z M16 9 l-5.5 5.5 L8 12", null),
+ [LucideIconKind.CircleQuestionMark] = ("F1 M2 12 A10 10 0 1 0 22 12 A10 10 0 1 0 2 12 Z M9.09 9 a3 3 0 0 1 5.83 1 c0 2 -3 3 -3 3 M12 17 h0.01", null),
+ [LucideIconKind.ClipboardPaste] = ("F1 M11 14 h10 M16 4 h2 a2 2 0 0 1 2 2 v1.344 M17 18 l4 -4 l-4 -4 M8 4 H6 a2 2 0 0 0 -2 2 v14 a2 2 0 0 0 2 2 h12 a2 2 0 0 0 1.793 -1.113 M9 2 H15 A1 1 0 0 1 16 3 V5 A1 1 0 0 1 15 6 H9 A1 1 0 0 1 8 5 V3 A1 1 0 0 1 9 2 Z", null),
+ [LucideIconKind.ClockCheck] = ("F1 M21.95 13 a10 10 0 1 0 -8.685 8.92 M12 6 v6 l4 2 M16 19 l2 2 l4 -4", null),
+ [LucideIconKind.CloudDownload] = ("F1 M12 13 v8 l-4 -4 M12 21 l4 -4 M4.393 15.269 A7 7 0 1 1 15.71 8 h1.79 a4.5 4.5 0 0 1 2.436 8.284", null),
+ [LucideIconKind.CloudUpload] = ("F1 M12 13 v8 M4 14.899 A7 7 0 1 1 15.71 8 h1.79 a4.5 4.5 0 0 1 2.5 8.242 M8 17 l4 -4 l4 4", null),
+ [LucideIconKind.Copy] = ("F1 M10 8 H20 A2 2 0 0 1 22 10 V20 A2 2 0 0 1 20 22 H10 A2 2 0 0 1 8 20 V10 A2 2 0 0 1 10 8 Z M4 16 c-1.1 0 -2 -0.9 -2 -2 V4 c0 -1.1 0.9 -2 2 -2 h10 c1.1 0 2 0.9 2 2", null),
+ [LucideIconKind.CopyPlus] = ("F1 M15 12 L15 18 M12 15 L18 15 M10 8 H20 A2 2 0 0 1 22 10 V20 A2 2 0 0 1 20 22 H10 A2 2 0 0 1 8 20 V10 A2 2 0 0 1 10 8 Z M4 16 c-1.1 0 -2 -0.9 -2 -2 V4 c0 -1.1 0.9 -2 2 -2 h10 c1.1 0 2 0.9 2 2", null),
+ [LucideIconKind.DatabaseSearch] = ("F1 M21 11.693 V5 M22 22 l-1.875 -1.875 M3 12 a9 3 0 0 0 8.697 2.998 M3 5 v14 a9 3 0 0 0 9.28 2.999 M15 18 A3 3 0 1 0 21 18 A3 3 0 1 0 15 18 Z M3 5 A9 3 0 1 0 21 5 A9 3 0 1 0 3 5 Z", null),
+ [LucideIconKind.Download] = ("F1 M12 15 V3 M21 15 v4 a2 2 0 0 1 -2 2 H5 a2 2 0 0 1 -2 -2 v-4 M7 10 l5 5 l5 -5", null),
+ [LucideIconKind.EllipsisVertical] = ("F1 M11 12 A1 1 0 1 0 13 12 A1 1 0 1 0 11 12 Z M11 5 A1 1 0 1 0 13 5 A1 1 0 1 0 11 5 Z M11 19 A1 1 0 1 0 13 19 A1 1 0 1 0 11 19 Z", null),
+ [LucideIconKind.EthernetPort] = ("F1 M10 8 v1 M14 8 v1 M18 8 v1 M19 17 a2 2 0 0 0 -1.765 1.059 l-0.47 0.882 A2 2 0 0 1 15 20 H9 a2 2 0 0 1 -1.765 -1.059 l-0.47 -0.882 A2 2 0 0 0 5 17 H4 a2 2 0 0 1 -2 -2 V6 a2 2 0 0 1 2 -2 h16 a2 2 0 0 1 2 2 v9 a2 2 0 0 1 -2 2 z M6 8 v1", null),
+ [LucideIconKind.ExternalLink] = ("F1 M15 3 h6 v6 M10 14 L21 3 M18 13 v6 a2 2 0 0 1 -2 2 H5 a2 2 0 0 1 -2 -2 V8 a2 2 0 0 1 2 -2 h6", null),
+ [LucideIconKind.Eye] = ("F1 M2.062 12.348 a1 1 0 0 1 0 -0.696 a10.75 10.75 0 0 1 19.876 0 a1 1 0 0 1 0 0.696 a10.75 10.75 0 0 1 -19.876 0 M9 12 A3 3 0 1 0 15 12 A3 3 0 1 0 9 12 Z", null),
+ [LucideIconKind.EyeOff] = ("F1 M10.733 5.076 a10.744 10.744 0 0 1 11.205 6.575 a1 1 0 0 1 0 0.696 a10.747 10.747 0 0 1 -1.444 2.49 M14.084 14.158 a3 3 0 0 1 -4.242 -4.242 M17.479 17.499 a10.75 10.75 0 0 1 -15.417 -5.151 a1 1 0 0 1 0 -0.696 a10.75 10.75 0 0 1 4.446 -5.143 M2 2 l20 20", null),
+ [LucideIconKind.File] = ("F1 M6 22 a2 2 0 0 1 -2 -2 V4 a2 2 0 0 1 2 -2 h8 a2.4 2.4 0 0 1 1.704 0.706 l3.588 3.588 A2.4 2.4 0 0 1 20 8 v12 a2 2 0 0 1 -2 2 z M14 2 v5 a1 1 0 0 0 1 1 h5", null),
+ [LucideIconKind.FileOutput] = ("F1 M4.226 20.925 A2 2 0 0 0 6 22 h12 a2 2 0 0 0 2 -2 V8 a2.4 2.4 0 0 0 -0.706 -1.706 l-3.588 -3.588 A2.4 2.4 0 0 0 14 2 H6 a2 2 0 0 0 -2 2 v3.127 M14 2 v5 a1 1 0 0 0 1 1 h5 M5 11 l-3 3 M5 17 l-3 -3 h10", null),
+ [LucideIconKind.FilePenLine] = ("F1 M14.364 13.634 a2 2 0 0 0 -0.506 0.854 l-0.837 2.87 a0.5 0.5 0 0 0 0.62 0.62 l2.87 -0.837 a2 2 0 0 0 0.854 -0.506 l4.013 -4.009 a1 1 0 0 0 -3.004 -3.004 z M14.487 7.858 A1 1 0 0 1 14 7 V2 M20 19.645 V20 a2 2 0 0 1 -2 2 H6 a2 2 0 0 1 -2 -2 V4 a2 2 0 0 1 2 -2 h8 a2.4 2.4 0 0 1 1.704 0.706 l2.516 2.516 M8 18 h1", null),
+ [LucideIconKind.Files] = ("F1 M15 2 h-4 a2 2 0 0 0 -2 2 v11 a2 2 0 0 0 2 2 h8 a2 2 0 0 0 2 -2 V8 M16.706 2.706 A2.4 2.4 0 0 0 15 2 v5 a1 1 0 0 0 1 1 h5 a2.4 2.4 0 0 0 -0.706 -1.706 z M5 7 a2 2 0 0 0 -2 2 v11 a2 2 0 0 0 2 2 h8 a2 2 0 0 0 1.732 -1", null),
+ [LucideIconKind.FileSearch] = ("F1 M6 22 a2 2 0 0 1 -2 -2 V4 a2 2 0 0 1 2 -2 h8 a2.4 2.4 0 0 1 1.704 0.706 l3.588 3.588 A2.4 2.4 0 0 1 20 8 v12 a2 2 0 0 1 -2 2 z M14 2 v5 a1 1 0 0 0 1 1 h5 M9 14.5 A2.5 2.5 0 1 0 14 14.5 A2.5 2.5 0 1 0 9 14.5 Z M13.3 16.3 L15 18", null),
+ [LucideIconKind.FolderInput] = ("F1 M2 9 V5 a2 2 0 0 1 2 -2 h3.9 a2 2 0 0 1 1.69 0.9 l0.81 1.2 a2 2 0 0 0 1.67 0.9 H20 a2 2 0 0 1 2 2 v10 a2 2 0 0 1 -2 2 H4 a2 2 0 0 1 -2 -2 v-1 M2 13 h10 M9 16 l3 -3 l-3 -3", null),
+ [LucideIconKind.FolderOpen] = ("F1 M6 14 l1.5 -2.9 A2 2 0 0 1 9.24 10 H20 a2 2 0 0 1 1.94 2.5 l-1.54 6 a2 2 0 0 1 -1.95 1.5 H4 a2 2 0 0 1 -2 -2 V5 a2 2 0 0 1 2 -2 h3.9 a2 2 0 0 1 1.69 0.9 l0.81 1.2 a2 2 0 0 0 1.67 0.9 H18 a2 2 0 0 1 2 2 v2", null),
+ [LucideIconKind.FolderSearch] = ("F1 M10.7 20 H4 a2 2 0 0 1 -2 -2 V5 a2 2 0 0 1 2 -2 h3.9 a2 2 0 0 1 1.69 0.9 l0.81 1.2 a2 2 0 0 0 1.67 0.9 H20 a2 2 0 0 1 2 2 v4.1 M21 21 l-1.9 -1.9 M14 17 A3 3 0 1 0 20 17 A3 3 0 1 0 14 17 Z", null),
+ [LucideIconKind.Frown] = ("F1 M15 10 V9 M9 10 V9 M9 16 a5 5 0 0 1 6 0 M2 12 A10 10 0 1 0 22 12 A10 10 0 1 0 2 12 Z", null),
+ [LucideIconKind.Funnel] = ("F1 M10 20 a1 1 0 0 0 0.553 0.895 l2 1 A1 1 0 0 0 14 21 v-7 a2 2 0 0 1 0.517 -1.341 L21.74 4.67 A1 1 0 0 0 21 3 H3 a1 1 0 0 0 -0.742 1.67 l7.225 7.989 A2 2 0 0 1 10 14 z", null),
+ [LucideIconKind.FunnelX] = ("F1 M12.531 3 H3 a1 1 0 0 0 -0.742 1.67 l7.225 7.989 A2 2 0 0 1 10 14 v6 a1 1 0 0 0 0.553 0.895 l2 1 A1 1 0 0 0 14 21 v-7 a2 2 0 0 1 0.517 -1.341 l0.427 -0.473 M16.5 3.5 l5 5 M21.5 3.5 l-5 5", null),
+ [LucideIconKind.Gauge] = ("F1 M12 14 l4 -4 M3.34 19 a10 10 0 1 1 17.32 0", null),
+ [LucideIconKind.Github] = (null, "F1 M12 2.2475 c-5.525 0 -10 4.4775 -10 10 c0 4.4192 2.865 8.1667 6.8375 9.4875 c0.5 0.0942 0.6833 -0.215 0.6833 -0.4808 c0 -0.2375 -0.0083 -0.8667 -0.0125 -1.7 c-2.7817 0.6033 -3.3683 -1.3417 -3.3683 -1.3417 C5.685 17.0583 5.0275 16.75 5.0275 16.75 c-0.9058 -0.62 0.07 -0.6075 0.07 -0.6075 c1.0042 0.07 1.5317 1.03 1.5317 1.03 c0.8917 1.5292 2.3408 1.0875 2.9125 0.8317 c0.09 -0.6467 0.3475 -1.0875 0.6333 -1.3375 c-2.2208 -0.25 -4.555 -1.11 -4.555 -4.9417 c0 -1.0917 0.3875 -1.9833 1.0292 -2.6833 c-0.1125 -0.2525 -0.45 -1.2692 0.0875 -2.6467 c0 0 0.8375 -0.2683 2.75 1.025 c0.8 -0.2225 1.65 -0.3325 2.5 -0.3375 c0.85 0.005 1.7 0.115 2.5 0.3375 c1.9 -1.2933 2.7375 -1.025 2.7375 -1.025 c0.5375 1.3775 0.2 2.3942 0.1 2.6467 c0.6375 0.7 1.025 1.5917 1.025 2.6833 c0 3.8417 -2.3375 4.6875 -4.5625 4.9333 c0.35 0.3 0.675 0.9133 0.675 1.85 c0 1.3383 -0.0125 2.4133 -0.0125 2.7383 c0 0.2625 0.175 0.575 0.6875 0.475 C19.1375 20.41 22 16.66 22 12.2475 c0 -5.5225 -4.4775 -10 -10 -10"),
+ [LucideIconKind.Globe] = ("F1 M2 12 A10 10 0 1 0 22 12 A10 10 0 1 0 2 12 Z M12 2 a14.5 14.5 0 0 0 0 20 a14.5 14.5 0 0 0 0 -20 M2 12 h20", null),
+ [LucideIconKind.GripHorizontal] = ("F1 M11 9 A1 1 0 1 0 13 9 A1 1 0 1 0 11 9 Z M18 9 A1 1 0 1 0 20 9 A1 1 0 1 0 18 9 Z M4 9 A1 1 0 1 0 6 9 A1 1 0 1 0 4 9 Z M11 15 A1 1 0 1 0 13 15 A1 1 0 1 0 11 15 Z M18 15 A1 1 0 1 0 20 15 A1 1 0 1 0 18 15 Z M4 15 A1 1 0 1 0 6 15 A1 1 0 1 0 4 15 Z", null),
+ [LucideIconKind.GripVertical] = ("F1 M8 12 A1 1 0 1 0 10 12 A1 1 0 1 0 8 12 Z M8 5 A1 1 0 1 0 10 5 A1 1 0 1 0 8 5 Z M8 19 A1 1 0 1 0 10 19 A1 1 0 1 0 8 19 Z M14 12 A1 1 0 1 0 16 12 A1 1 0 1 0 14 12 Z M14 5 A1 1 0 1 0 16 5 A1 1 0 1 0 14 5 Z M14 19 A1 1 0 1 0 16 19 A1 1 0 1 0 14 19 Z", null),
+ [LucideIconKind.Heart] = ("F1 M2 9.5 a5.5 5.5 0 0 1 9.591 -3.676 a0.56 0.56 0 0 0 0.818 0 A5.49 5.49 0 0 1 22 9.5 c0 2.29 -1.5 4 -3 5.5 l-5.492 5.313 a2 2 0 0 1 -3 0.019 L5 15 c-1.5 -1.5 -3 -3.2 -3 -5.5", null),
+ [LucideIconKind.History] = ("F1 M3 12 a9 9 0 1 0 9 -9 a9.75 9.75 0 0 0 -6.74 2.74 L3 8 M3 3 v5 h5 M12 7 v5 l4 2", null),
+ [LucideIconKind.IdCard] = ("F1 M13 19 a4 4 0 0 0 -8 0 M16 10 h2 M16 14 h2 M6 12 A3 3 0 1 0 12 12 A3 3 0 1 0 6 12 Z M4 5 H20 A2 2 0 0 1 22 7 V17 A2 2 0 0 1 20 19 H4 A2 2 0 0 1 2 17 V7 A2 2 0 0 1 4 5 Z", null),
+ [LucideIconKind.Info] = ("F1 M2 12 A10 10 0 1 0 22 12 A10 10 0 1 0 2 12 Z M12 16 v-4 M12 8 h0.01", null),
+ [LucideIconKind.Keyboard] = ("F1 M10 8 h0.01 M12 12 h0.01 M14 8 h0.01 M16 12 h0.01 M18 8 h0.01 M6 8 h0.01 M7 16 h10 M8 12 h0.01 M4 4 H20 A2 2 0 0 1 22 6 V18 A2 2 0 0 1 20 20 H4 A2 2 0 0 1 2 18 V6 A2 2 0 0 1 4 4 Z", null),
+ [LucideIconKind.KeyRound] = ("F1 M2.586 17.414 A2 2 0 0 0 2 18.828 V21 a1 1 0 0 0 1 1 h3 a1 1 0 0 0 1 -1 v-1 a1 1 0 0 1 1 -1 h1 a1 1 0 0 0 1 -1 v-1 a1 1 0 0 1 1 -1 h0.172 a2 2 0 0 0 1.414 -0.586 l0.814 -0.814 a6.5 6.5 0 1 0 -4 -4 z M16 7.5 A0.5 0.5 0 1 0 17 7.5 A0.5 0.5 0 1 0 16 7.5 Z", "F1 M16 7.5 A0.5 0.5 0 1 0 17 7.5 A0.5 0.5 0 1 0 16 7.5 Z"),
+ [LucideIconKind.Languages] = ("F1 M5 8 l6 6 M4 14 l6 -6 l2 -3 M2 5 h12 M7 2 h1 M22 22 l-5 -10 l-5 10 M14 18 h6", null),
+ [LucideIconKind.Layers] = ("F1 M12.83 2.18 a2 2 0 0 0 -1.66 0 L2.6 6.08 a1 1 0 0 0 0 1.83 l8.58 3.91 a2 2 0 0 0 1.66 0 l8.58 -3.9 a1 1 0 0 0 0 -1.83 z M2 12 a1 1 0 0 0 0.58 0.91 l8.6 3.91 a2 2 0 0 0 1.65 0 l8.58 -3.9 A1 1 0 0 0 22 12 M2 17 a1 1 0 0 0 0.58 0.91 l8.6 3.91 a2 2 0 0 0 1.65 0 l8.58 -3.9 A1 1 0 0 0 22 17", null),
+ [LucideIconKind.LayoutDashboard] = ("F1 M4 3 H9 A1 1 0 0 1 10 4 V11 A1 1 0 0 1 9 12 H4 A1 1 0 0 1 3 11 V4 A1 1 0 0 1 4 3 Z M15 3 H20 A1 1 0 0 1 21 4 V7 A1 1 0 0 1 20 8 H15 A1 1 0 0 1 14 7 V4 A1 1 0 0 1 15 3 Z M15 12 H20 A1 1 0 0 1 21 13 V20 A1 1 0 0 1 20 21 H15 A1 1 0 0 1 14 20 V13 A1 1 0 0 1 15 12 Z M4 16 H9 A1 1 0 0 1 10 17 V20 A1 1 0 0 1 9 21 H4 A1 1 0 0 1 3 20 V17 A1 1 0 0 1 4 16 Z", null),
+ [LucideIconKind.List] = ("F1 M3 5 h0.01 M3 12 h0.01 M3 19 h0.01 M8 5 h13 M8 12 h13 M8 19 h13", null),
+ [LucideIconKind.ListChevronsDownUp] = ("F1 M3 5 h8 M3 12 h8 M3 19 h8 M15 5 l3 3 l3 -3 M15 19 l3 -3 l3 3", null),
+ [LucideIconKind.ListChevronsUpDown] = ("F1 M3 5 h8 M3 12 h8 M3 19 h8 M15 8 l3 -3 l3 3 M15 16 l3 3 l3 -3", null),
+ [LucideIconKind.ListFilter] = ("F1 M2 5 h20 M6 12 h12 M9 19 h6", null),
+ [LucideIconKind.ListPlus] = ("F1 M16 5 H3 M11 12 H3 M16 19 H3 M18 9 v6 M21 12 h-6", null),
+ [LucideIconKind.ListX] = ("F1 M16 5 H3 M11 12 H3 M16 19 H3 M15.5 9.5 l5 5 M20.5 9.5 l-5 5", null),
+ [LucideIconKind.Lock] = ("F1 M5 11 H19 A2 2 0 0 1 21 13 V20 A2 2 0 0 1 19 22 H5 A2 2 0 0 1 3 20 V13 A2 2 0 0 1 5 11 Z M7 11 V7 a5 5 0 0 1 10 0 v4", null),
+ [LucideIconKind.MapPin] = ("F1 M20 10 c0 4.993 -5.539 10.193 -7.399 11.799 a1 1 0 0 1 -1.202 0 C9.539 20.193 4 14.993 4 10 a8 8 0 0 1 16 0 M9 10 A3 3 0 1 0 15 10 A3 3 0 1 0 9 10 Z", null),
+ [LucideIconKind.Maximize] = ("F1 M8 3 H5 a2 2 0 0 0 -2 2 v3 M21 8 V5 a2 2 0 0 0 -2 -2 h-3 M3 16 v3 a2 2 0 0 0 2 2 h3 M16 21 h3 a2 2 0 0 0 2 -2 v-3", null),
+ [LucideIconKind.Maximize2] = ("F1 M15 3 h6 v6 M21 3 l-7 7 M3 21 l7 -7 M9 21 H3 v-6", null),
+ [LucideIconKind.Minimize] = ("F1 M8 3 v3 a2 2 0 0 1 -2 2 H3 M21 8 h-3 a2 2 0 0 1 -2 -2 V3 M3 16 h3 a2 2 0 0 1 2 2 v3 M16 21 v-3 a2 2 0 0 1 2 -2 h3", null),
+ [LucideIconKind.Minus] = ("F1 M5 12 h14", null),
+ [LucideIconKind.Monitor] = ("F1 M4 3 H20 A2 2 0 0 1 22 5 V15 A2 2 0 0 1 20 17 H4 A2 2 0 0 1 2 15 V5 A2 2 0 0 1 4 3 Z M8 21 L16 21 M12 17 L12 21", null),
+ [LucideIconKind.MonitorCheck] = ("F1 M9 10 l2 2 l4 -4 M4 3 H20 A2 2 0 0 1 22 5 V15 A2 2 0 0 1 20 17 H4 A2 2 0 0 1 2 15 V5 A2 2 0 0 1 4 3 Z M12 17 v4 M8 21 h8", null),
+ [LucideIconKind.MonitorDot] = ("F1 M12 17 v4 M22 12.307 V15 a2 2 0 0 1 -2 2 H4 a2 2 0 0 1 -2 -2 V5 a2 2 0 0 1 2 -2 h8.693 M8 21 h8 M16 6 A3 3 0 1 0 22 6 A3 3 0 1 0 16 6 Z", null),
+ [LucideIconKind.MonitorDown] = ("F1 M12 13 V7 M15 10 l-3 3 l-3 -3 M4 3 H20 A2 2 0 0 1 22 5 V15 A2 2 0 0 1 20 17 H4 A2 2 0 0 1 2 15 V5 A2 2 0 0 1 4 3 Z M12 17 v4 M8 21 h8", null),
+ [LucideIconKind.MonitorX] = ("F1 M14.5 12.5 l-5 -5 M9.5 12.5 l5 -5 M4 3 H20 A2 2 0 0 1 22 5 V15 A2 2 0 0 1 20 17 H4 A2 2 0 0 1 2 15 V5 A2 2 0 0 1 4 3 Z M12 17 v4 M8 21 h8", null),
+ [LucideIconKind.Network] = ("F1 M17 16 H21 A1 1 0 0 1 22 17 V21 A1 1 0 0 1 21 22 H17 A1 1 0 0 1 16 21 V17 A1 1 0 0 1 17 16 Z M3 16 H7 A1 1 0 0 1 8 17 V21 A1 1 0 0 1 7 22 H3 A1 1 0 0 1 2 21 V17 A1 1 0 0 1 3 16 Z M10 2 H14 A1 1 0 0 1 15 3 V7 A1 1 0 0 1 14 8 H10 A1 1 0 0 1 9 7 V3 A1 1 0 0 1 10 2 Z M5 16 v-3 a1 1 0 0 1 1 -1 h12 a1 1 0 0 1 1 1 v3 M12 12 V8", null),
+ [LucideIconKind.OctagonAlert] = ("F1 M12 16 h0.01 M12 8 v4 M15.312 2 a2 2 0 0 1 1.414 0.586 l4.688 4.688 A2 2 0 0 1 22 8.688 v6.624 a2 2 0 0 1 -0.586 1.414 l-4.688 4.688 a2 2 0 0 1 -1.414 0.586 H8.688 a2 2 0 0 1 -1.414 -0.586 l-4.688 -4.688 A2 2 0 0 1 2 15.312 V8.688 a2 2 0 0 1 0.586 -1.414 l4.688 -4.688 A2 2 0 0 1 8.688 2 z", null),
+ [LucideIconKind.Palette] = ("F1 M12 22 a1 1 0 0 1 0 -20 a10 9 0 0 1 10 9 a5 5 0 0 1 -5 5 h-2.25 a1.75 1.75 0 0 0 -1.4 2.8 l0.3 0.4 a1.75 1.75 0 0 1 -1.4 2.8 z M13 6.5 A0.5 0.5 0 1 0 14 6.5 A0.5 0.5 0 1 0 13 6.5 Z M17 10.5 A0.5 0.5 0 1 0 18 10.5 A0.5 0.5 0 1 0 17 10.5 Z M6 12.5 A0.5 0.5 0 1 0 7 12.5 A0.5 0.5 0 1 0 6 12.5 Z M8 7.5 A0.5 0.5 0 1 0 9 7.5 A0.5 0.5 0 1 0 8 7.5 Z", "F1 M13 6.5 A0.5 0.5 0 1 0 14 6.5 A0.5 0.5 0 1 0 13 6.5 Z M17 10.5 A0.5 0.5 0 1 0 18 10.5 A0.5 0.5 0 1 0 17 10.5 Z M6 12.5 A0.5 0.5 0 1 0 7 12.5 A0.5 0.5 0 1 0 6 12.5 Z M8 7.5 A0.5 0.5 0 1 0 9 7.5 A0.5 0.5 0 1 0 8 7.5 Z"),
+ [LucideIconKind.Pause] = ("F1 M15 3 H18 A1 1 0 0 1 19 4 V20 A1 1 0 0 1 18 21 H15 A1 1 0 0 1 14 20 V4 A1 1 0 0 1 15 3 Z M6 3 H9 A1 1 0 0 1 10 4 V20 A1 1 0 0 1 9 21 H6 A1 1 0 0 1 5 20 V4 A1 1 0 0 1 6 3 Z", null),
+ [LucideIconKind.Pencil] = ("F1 M21.174 6.812 a1 1 0 0 0 -3.986 -3.987 L3.842 16.174 a2 2 0 0 0 -0.5 0.83 l-1.321 4.352 a0.5 0.5 0 0 0 0.623 0.622 l4.353 -1.32 a2 2 0 0 0 0.83 -0.497 z M15 5 l4 4", null),
+ [LucideIconKind.Pin] = ("F1 M12 17 v5 M9 10.76 a2 2 0 0 1 -1.11 1.79 l-1.78 0.9 A2 2 0 0 0 5 15.24 V16 a1 1 0 0 0 1 1 h12 a1 1 0 0 0 1 -1 v-0.76 a2 2 0 0 0 -1.11 -1.79 l-1.78 -0.9 A2 2 0 0 1 15 10.76 V7 a1 1 0 0 1 1 -1 a2 2 0 0 0 0 -4 H8 a2 2 0 0 0 0 4 a1 1 0 0 1 1 1 z", null),
+ [LucideIconKind.Play] = ("F1 M5 5 a2 2 0 0 1 3.008 -1.728 l11.997 6.998 a2 2 0 0 1 0.003 3.458 l-12 7 A2 2 0 0 1 5 19 z", null),
+ [LucideIconKind.PlugZap] = ("F1 M6.3 20.3 a2.4 2.4 0 0 0 3.4 0 L12 18 l-6 -6 l-2.3 2.3 a2.4 2.4 0 0 0 0 3.4 Z M2 22 l3 -3 M7.5 13.5 L10 11 M10.5 16.5 L13 14 M18 3 l-4 4 h6 l-4 4", null),
+ [LucideIconKind.Plus] = ("F1 M5 12 h14 M12 5 v14", null),
+ [LucideIconKind.Power] = ("F1 M12 2 v10 M18.4 6.6 a9 9 0 1 1 -12.77 0.04", null),
+ [LucideIconKind.Radar] = ("F1 M19.07 4.93 A10 10 0 0 0 6.99 3.34 M4 6 h0.01 M2.29 9.62 A10 10 0 1 0 21.31 8.35 M16.24 7.76 A6 6 0 1 0 8.23 16.67 M12 18 h0.01 M17.99 11.66 A6 6 0 0 1 15.77 16.67 M10 12 A2 2 0 1 0 14 12 A2 2 0 1 0 10 12 Z M13.41 10.59 l5.66 -5.66", null),
+ [LucideIconKind.RadioTower] = ("F1 M4.9 16.1 C1 12.2 1 5.8 4.9 1.9 M7.8 4.7 a6.14 6.14 0 0 0 -0.8 7.5 M10 9 A2 2 0 1 0 14 9 A2 2 0 1 0 10 9 Z M16.2 4.8 c2 2 2.26 5.11 0.8 7.47 M19.1 1.9 a9.96 9.96 0 0 1 0 14.1 M9.5 18 h5 M8 22 l4 -11 l4 11", null),
+ [LucideIconKind.RefreshCw] = ("F1 M3 12 a9 9 0 0 1 9 -9 a9.75 9.75 0 0 1 6.74 2.74 L21 8 M21 3 v5 h-5 M21 12 a9 9 0 0 1 -9 9 a9.75 9.75 0 0 1 -6.74 -2.74 L3 16 M8 16 H3 v5", null),
+ [LucideIconKind.Rocket] = ("F1 M12 15 v5 s3.03 -0.55 4 -2 c1.08 -1.62 0 -5 0 -5 M4.5 16.5 c-1.5 1.26 -2 5 -2 5 s3.74 -0.5 5 -2 c0.71 -0.84 0.7 -2.13 -0.09 -2.91 a2.18 2.18 0 0 0 -2.91 -0.09 M9 12 a22 22 0 0 1 2 -3.95 A12.88 12.88 0 0 1 22 2 c0 2.72 -0.78 7.5 -6 11 a22.4 22.4 0 0 1 -4 2 z M9 12 H4 s0.55 -3.03 2 -4 c1.62 -1.08 5 0.05 5 0.05", null),
+ [LucideIconKind.RotateCcw] = ("F1 M3 12 a9 9 0 1 0 9 -9 a9.75 9.75 0 0 0 -6.74 2.74 L3 8 M3 3 v5 h5", null),
+ [LucideIconKind.Route] = ("F1 M3 19 A3 3 0 1 0 9 19 A3 3 0 1 0 3 19 Z M9 19 h8.5 a3.5 3.5 0 0 0 0 -7 h-11 a3.5 3.5 0 0 1 0 -7 H15 M15 5 A3 3 0 1 0 21 5 A3 3 0 1 0 15 5 Z", null),
+ [LucideIconKind.Router] = ("F1 M4 14 H20 A2 2 0 0 1 22 16 V20 A2 2 0 0 1 20 22 H4 A2 2 0 0 1 2 20 V16 A2 2 0 0 1 4 14 Z M6.01 18 H6 M10.01 18 H10 M15 10 v4 M17.84 7.17 a4 4 0 0 0 -5.66 0 M20.66 4.34 a8 8 0 0 0 -11.31 0", null),
+ [LucideIconKind.Save] = ("F1 M15.2 3 a2 2 0 0 1 1.4 0.6 l3.8 3.8 a2 2 0 0 1 0.6 1.4 V19 a2 2 0 0 1 -2 2 H5 a2 2 0 0 1 -2 -2 V5 a2 2 0 0 1 2 -2 z M17 21 v-7 a1 1 0 0 0 -1 -1 H8 a1 1 0 0 0 -1 1 v7 M7 3 v4 a1 1 0 0 0 1 1 h7", null),
+ [LucideIconKind.Scan] = ("F1 M3 7 V5 a2 2 0 0 1 2 -2 h2 M17 3 h2 a2 2 0 0 1 2 2 v2 M21 17 v2 a2 2 0 0 1 -2 2 h-2 M7 21 H5 a2 2 0 0 1 -2 -2 v-2", null),
+ [LucideIconKind.ScanLine] = ("F1 M3 7 V5 a2 2 0 0 1 2 -2 h2 M17 3 h2 a2 2 0 0 1 2 2 v2 M21 17 v2 a2 2 0 0 1 -2 2 h-2 M7 21 H5 a2 2 0 0 1 -2 -2 v-2 M7 12 h10", null),
+ [LucideIconKind.Scissors] = ("F1 M3 6 A3 3 0 1 0 9 6 A3 3 0 1 0 3 6 Z M8.12 8.12 L12 12 M20 4 L8.12 15.88 M3 18 A3 3 0 1 0 9 18 A3 3 0 1 0 3 18 Z M14.8 14.8 L20 20", null),
+ [LucideIconKind.Search] = ("F1 M21 21 l-4.34 -4.34 M3 11 A8 8 0 1 0 19 11 A8 8 0 1 0 3 11 Z", null),
+ [LucideIconKind.Server] = ("F1 M4 2 H20 A2 2 0 0 1 22 4 V8 A2 2 0 0 1 20 10 H4 A2 2 0 0 1 2 8 V4 A2 2 0 0 1 4 2 Z M4 14 H20 A2 2 0 0 1 22 16 V20 A2 2 0 0 1 20 22 H4 A2 2 0 0 1 2 20 V16 A2 2 0 0 1 4 14 Z M6 6 L6.01 6 M6 18 L6.01 18", null),
+ [LucideIconKind.Settings] = ("F1 M9.671 4.136 a2.34 2.34 0 0 1 4.659 0 a2.34 2.34 0 0 0 3.319 1.915 a2.34 2.34 0 0 1 2.33 4.033 a2.34 2.34 0 0 0 0 3.831 a2.34 2.34 0 0 1 -2.33 4.033 a2.34 2.34 0 0 0 -3.319 1.915 a2.34 2.34 0 0 1 -4.659 0 a2.34 2.34 0 0 0 -3.32 -1.915 a2.34 2.34 0 0 1 -2.33 -4.033 a2.34 2.34 0 0 0 0 -3.831 A2.34 2.34 0 0 1 6.35 6.051 a2.34 2.34 0 0 0 3.319 -1.915 M9 12 A3 3 0 1 0 15 12 A3 3 0 1 0 9 12 Z", null),
+ [LucideIconKind.Shield] = ("F1 M20 13 c0 5 -3.5 7.5 -7.66 8.95 a1 1 0 0 1 -0.67 -0.01 C7.5 20.5 4 18 4 13 V6 a1 1 0 0 1 1 -1 c2 0 4.5 -1.2 6.24 -2.72 a1.17 1.17 0 0 1 1.52 0 C14.51 3.81 17 5 19 5 a1 1 0 0 1 1 1 z", null),
+ [LucideIconKind.ShieldLock] = ("F1 M20 9.807 V6 a1 1 0 0 0 -1 -1 c-2 0 -4.49 -1.19 -6.24 -2.72 a1.17 1.17 0 0 0 -1.52 0 C9.5 3.8 7 5 5 5 a1 1 0 0 0 -1 1 v7 c0 3.88 2.107 6.254 5 7.796 M19 17 v-2 a2 2 0 0 0 -4 0 v2 M14 17 H20 A1 1 0 0 1 21 18 V21 A1 1 0 0 1 20 22 H14 A1 1 0 0 1 13 21 V18 A1 1 0 0 1 14 17 Z", null),
+ [LucideIconKind.ShieldOff] = ("F1 M2 2 l20 20 M5 5 a1 1 0 0 0 -1 1 v7 c0 5 3.5 7.5 7.67 8.94 a1 1 0 0 0 0.67 0.01 c2.35 -0.82 4.48 -1.97 5.9 -3.71 M9.309 3.652 A12.252 12.252 0 0 0 11.24 2.28 a1.17 1.17 0 0 1 1.52 0 C14.51 3.81 17 5 19 5 a1 1 0 0 1 1 1 v7 a9.784 9.784 0 0 1 -0.08 1.264", null),
+ [LucideIconKind.SlidersHorizontal] = ("F1 M10 5 H3 M12 19 H3 M14 3 v4 M16 17 v4 M21 12 h-9 M21 19 h-5 M21 5 h-7 M8 10 v4 M8 12 H3", null),
+ [LucideIconKind.SquareChevronRight] = ("F1 M5 3 H19 A2 2 0 0 1 21 5 V19 A2 2 0 0 1 19 21 H5 A2 2 0 0 1 3 19 V5 A2 2 0 0 1 5 3 Z M10 8 l4 4 l-4 4", null),
+ [LucideIconKind.Table] = ("F1 M12 3 v18 M5 3 H19 A2 2 0 0 1 21 5 V19 A2 2 0 0 1 19 21 H5 A2 2 0 0 1 3 19 V5 A2 2 0 0 1 5 3 Z M3 9 h18 M3 15 h18", null),
+ [LucideIconKind.Tag] = ("F1 M12.586 2.586 A2 2 0 0 0 11.172 2 H4 a2 2 0 0 0 -2 2 v7.172 a2 2 0 0 0 0.586 1.414 l8.704 8.704 a2.426 2.426 0 0 0 3.42 0 l6.58 -6.58 a2.426 2.426 0 0 0 0 -3.42 z M7 7.5 A0.5 0.5 0 1 0 8 7.5 A0.5 0.5 0 1 0 7 7.5 Z", "F1 M7 7.5 A0.5 0.5 0 1 0 8 7.5 A0.5 0.5 0 1 0 7 7.5 Z"),
+ [LucideIconKind.Terminal] = ("F1 M12 19 h8 M4 17 l6 -6 l-6 -6", null),
+ [LucideIconKind.Timer] = ("F1 M10 2 L14 2 M12 14 L15 11 M4 14 A8 8 0 1 0 20 14 A8 8 0 1 0 4 14 Z", null),
+ [LucideIconKind.ToggleLeft] = ("F1 M6 12 A3 3 0 1 0 12 12 A3 3 0 1 0 6 12 Z M9 5 H15 A7 7 0 0 1 22 12 V12 A7 7 0 0 1 15 19 H9 A7 7 0 0 1 2 12 V12 A7 7 0 0 1 9 5 Z", null),
+ [LucideIconKind.ToggleRight] = ("F1 M12 12 A3 3 0 1 0 18 12 A3 3 0 1 0 12 12 Z M9 5 H15 A7 7 0 0 1 22 12 V12 A7 7 0 0 1 15 19 H9 A7 7 0 0 1 2 12 V12 A7 7 0 0 1 9 5 Z", null),
+ [LucideIconKind.TriangleAlert] = ("F1 M21.73 18 l-8 -14 a2 2 0 0 0 -3.48 0 l-8 14 A2 2 0 0 0 4 21 h16 a2 2 0 0 0 1.73 -3 M12 9 v4 M12 17 h0.01", null),
+ [LucideIconKind.Undo2] = ("F1 M9 14 L4 9 l5 -5 M4 9 h10.5 a5.5 5.5 0 0 1 5.5 5.5 a5.5 5.5 0 0 1 -5.5 5.5 H11", null),
+ [LucideIconKind.Unplug] = ("F1 M19 5 l3 -3 M2 22 l3 -3 M6.3 20.3 a2.4 2.4 0 0 0 3.4 0 L12 18 l-6 -6 l-2.3 2.3 a2.4 2.4 0 0 0 0 3.4 Z M7.5 13.5 L10 11 M10.5 16.5 L13 14 M12 6 l6 6 l2.3 -2.3 a2.4 2.4 0 0 0 0 -3.4 l-2.6 -2.6 a2.4 2.4 0 0 0 -3.4 0 Z", null),
+ [LucideIconKind.User] = ("F1 M19 21 v-2 a4 4 0 0 0 -4 -4 H9 a4 4 0 0 0 -4 4 v2 M8 7 A4 4 0 1 0 16 7 A4 4 0 1 0 8 7 Z", null),
+ [LucideIconKind.UserLock] = ("F1 M19 16 v-2 a2 2 0 0 0 -4 0 v2 M9.5 15 H7 a4 4 0 0 0 -4 4 v2 M6 7 A4 4 0 1 0 14 7 A4 4 0 1 0 6 7 Z M13.899 16 H20.101 A0.899 0.899 0 0 1 21 16.899 V20.101 A0.899 0.899 0 0 1 20.101 21 H13.899 A0.899 0.899 0 0 1 13 20.101 V16.899 A0.899 0.899 0 0 1 13.899 16 Z", null),
+ [LucideIconKind.Users] = ("F1 M16 21 v-2 a4 4 0 0 0 -4 -4 H6 a4 4 0 0 0 -4 4 v2 M16 3.128 a4 4 0 0 1 0 7.744 M22 21 v-2 a4 4 0 0 0 -3 -3.87 M5 7 A4 4 0 1 0 13 7 A4 4 0 1 0 5 7 Z", null),
+ [LucideIconKind.Wifi] = ("F1 M12 20 h0.01 M2 8.82 a15 15 0 0 1 20 0 M5 12.859 a10 10 0 0 1 14 0 M8.5 16.429 a5 5 0 0 1 7 0", null),
+ [LucideIconKind.WifiHigh] = ("F1 M12 20 h0.01 M5 12.859 a10 10 0 0 1 14 0 M8.5 16.429 a5 5 0 0 1 7 0", null),
+ [LucideIconKind.WifiHighLock] = ("F1 M5 12.859 a10 10 0 0 1 8.436 -2.756 M8.5 16.429 a5 5 0 0 1 1.794 -1.13 M20 16 v-2 a2 2 0 0 0 -4 0 v2 M15 16 H21 A1 1 0 0 1 22 17 V20 A1 1 0 0 1 21 21 H15 A1 1 0 0 1 14 20 V17 A1 1 0 0 1 15 16 Z", null),
+ [LucideIconKind.WifiLock] = ("F1 M2 8.82 a15 15 0 0 1 20 0 M20 16 v-2 a2 2 0 0 0 -4 0 v2 M5 12.859 a10 10 0 0 1 8.436 -2.756 M8.5 16.429 a5 5 0 0 1 1.794 -1.13 M15 16 H21 A1 1 0 0 1 22 17 V20 A1 1 0 0 1 21 21 H15 A1 1 0 0 1 14 20 V17 A1 1 0 0 1 15 16 Z", null),
+ [LucideIconKind.WifiLow] = ("F1 M12 20 h0.01 M8.5 16.429 a5 5 0 0 1 7 0", null),
+ [LucideIconKind.WifiLowLock] = ("F1 M8.5 16.429 a5 5 0 0 1 1.794 -1.13 M20 16 v-2 a2 2 0 0 0 -4 0 v2 M15 16 H21 A1 1 0 0 1 22 17 V20 A1 1 0 0 1 21 21 H15 A1 1 0 0 1 14 20 V17 A1 1 0 0 1 15 16 Z", null),
+ [LucideIconKind.WifiOff] = ("F1 M12 20 h0.01 M8.5 16.429 a5 5 0 0 1 7 0 M5 12.859 a10 10 0 0 1 5.17 -2.69 M19 12.859 a10 10 0 0 0 -2.007 -1.523 M2 8.82 a15 15 0 0 1 4.177 -2.643 M22 8.82 a15 15 0 0 0 -11.288 -3.764 M2 2 l20 20", null),
+ [LucideIconKind.WifiZero] = ("F1 M12 20 h0.01", null),
+ [LucideIconKind.WifiZeroLock] = ("F1 M12 20 h0.01 M20 16 v-2 a2 2 0 0 0 -4 0 v2 M15 16 H21 A1 1 0 0 1 22 17 V20 A1 1 0 0 1 21 21 H15 A1 1 0 0 1 14 20 V17 A1 1 0 0 1 15 16 Z", null),
+ [LucideIconKind.X] = ("F1 M18 6 L6 18 M6 6 l12 12", null),
+ [LucideIconKind.XLogo] = (null, "F1 M13.8617 10.4683 L21.1475 2 h-1.7267 l-6.3258 7.3533 L8.0425 2 H2.215 l7.64 11.1192 L2.215 22 H3.9417 l6.68 -7.765 L15.9575 22 h5.8275 z m-2.3642 2.7492 l-0.7742 -1.1075 L4.5633 3.3 h2.6517 l4.9708 7.11 l0.7742 1.1075 l6.4617 9.2417 h-2.6517 z"),
+ };
+}
\ No newline at end of file
diff --git a/Source/NETworkManager.Controls/StatusLevel.cs b/Source/NETworkManager.Controls/StatusLevel.cs
new file mode 100644
index 0000000000..8500a1631f
--- /dev/null
+++ b/Source/NETworkManager.Controls/StatusLevel.cs
@@ -0,0 +1,40 @@
+namespace NETworkManager.Controls;
+
+///
+/// Status of a value or message: colored dot in front of a value in a list (style StatusDot, the level as
+/// Tag, e.g. the action of a firewall rule) or icon + color of a status message ().
+///
+public enum StatusLevel
+{
+ ///
+ /// Neutral (gray).
+ ///
+ None,
+
+ ///
+ /// Good, e.g. allowed, established, reachable (Brushes.Status.Success).
+ ///
+ Success,
+
+ ///
+ /// In between, e.g. connecting, stale (Brushes.Status.Warning).
+ ///
+ Warning,
+
+ ///
+ /// Bad, e.g. blocked, unreachable (Brushes.Status.Error).
+ ///
+ Error
+}
+
+///
+/// Helpers for .
+///
+public static class StatusLevelExtensions
+{
+ ///
+ /// The more severe of two levels (None < Success < Warning < Error), e.g. when a message is appended to the
+ /// status message: the most severe message determines the icon and color.
+ ///
+ public static StatusLevel MostSevere(this StatusLevel level, StatusLevel other) => other > level ? other : level;
+}
diff --git a/Source/NETworkManager.Controls/StatusMessageText.cs b/Source/NETworkManager.Controls/StatusMessageText.cs
new file mode 100644
index 0000000000..c0e2fa5242
--- /dev/null
+++ b/Source/NETworkManager.Controls/StatusMessageText.cs
@@ -0,0 +1,37 @@
+using System.Windows;
+using System.Windows.Controls;
+
+namespace NETworkManager.Controls;
+
+///
+/// Status message of a tool (e.g. below the input: an error, "canceled by user", "magic packet sent"): an icon and
+/// the text in the color of the - info gray (), success green,
+/// warning yellow, error red. The look is defined by the style DefaultStatusMessageText of the application
+/// (TextBlockStyles.xaml, implicit style).
+///
+public class StatusMessageText : Control
+{
+ public static readonly DependencyProperty TextProperty = DependencyProperty.Register(nameof(Text),
+ typeof(string), typeof(StatusMessageText), new PropertyMetadata(null));
+
+ public static readonly DependencyProperty LevelProperty = DependencyProperty.Register(nameof(Level),
+ typeof(StatusLevel), typeof(StatusMessageText), new PropertyMetadata(StatusLevel.None));
+
+ ///
+ /// Message (can have several lines).
+ ///
+ public string Text
+ {
+ get => (string)GetValue(TextProperty);
+ set => SetValue(TextProperty, value);
+ }
+
+ ///
+ /// Level of the message (icon and color).
+ ///
+ public StatusLevel Level
+ {
+ get => (StatusLevel)GetValue(LevelProperty);
+ set => SetValue(LevelProperty, value);
+ }
+}
diff --git a/Source/NETworkManager.Controls/ViewLayoutHelper.cs b/Source/NETworkManager.Controls/ViewLayoutHelper.cs
new file mode 100644
index 0000000000..068214f50c
--- /dev/null
+++ b/Source/NETworkManager.Controls/ViewLayoutHelper.cs
@@ -0,0 +1,24 @@
+using System.Windows;
+
+namespace NETworkManager.Controls;
+
+///
+/// Attached property for the layout of the main window with boxes (navigation, main view, profiles): a view that sets
+/// HasOwnBoxes draws its own boxes (e.g. the tool area and the profile panel of a host view), the main window
+/// doesn't draw a box around it.
+///
+public static class ViewLayoutHelper
+{
+ public static readonly DependencyProperty HasOwnBoxesProperty =
+ DependencyProperty.RegisterAttached(
+ "HasOwnBoxes",
+ typeof(bool),
+ typeof(ViewLayoutHelper),
+ new PropertyMetadata(false));
+
+ public static void SetHasOwnBoxes(UIElement element, bool value) =>
+ element.SetValue(HasOwnBoxesProperty, value);
+
+ public static bool GetHasOwnBoxes(UIElement element) =>
+ (bool)element.GetValue(HasOwnBoxesProperty);
+}
diff --git a/Source/NETworkManager.Converters/AccentGlowIntensityToStringConverter.cs b/Source/NETworkManager.Converters/AccentGlowIntensityToStringConverter.cs
new file mode 100644
index 0000000000..ea81a28048
--- /dev/null
+++ b/Source/NETworkManager.Converters/AccentGlowIntensityToStringConverter.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Globalization;
+using System.Windows.Data;
+using NETworkManager.Localization;
+using NETworkManager.Models.Appearance;
+
+namespace NETworkManager.Converters;
+
+///
+/// Convert to translated .
+///
+public sealed class AccentGlowIntensityToStringConverter : IValueConverter
+{
+ ///
+ /// Convert to translated .
+ ///
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ return value is not AccentGlowIntensity intensity
+ ? "-/-"
+ : ResourceTranslator.Translate(ResourceIdentifier.AccentGlowIntensity, intensity);
+ }
+
+ ///
+ /// !!! Method not implemented !!!
+ ///
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+}
diff --git a/Source/NETworkManager.Converters/AnimationModeToStringConverter.cs b/Source/NETworkManager.Converters/AnimationModeToStringConverter.cs
new file mode 100644
index 0000000000..23cc5da285
--- /dev/null
+++ b/Source/NETworkManager.Converters/AnimationModeToStringConverter.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Globalization;
+using System.Windows.Data;
+using NETworkManager.Localization;
+using NETworkManager.Models.Appearance;
+
+namespace NETworkManager.Converters;
+
+///
+/// Convert to translated .
+///
+public sealed class AnimationModeToStringConverter : IValueConverter
+{
+ ///
+ /// Convert to translated .
+ ///
+ /// Object from type .
+ ///
+ ///
+ ///
+ /// Translated .
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ return value is not AnimationMode animationMode
+ ? "-/-"
+ : ResourceTranslator.Translate(ResourceIdentifier.AnimationMode, animationMode);
+ }
+
+ ///
+ /// !!! Method not implemented !!!
+ ///
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+}
diff --git a/Source/NETworkManager.Converters/FirewallRuleActionToStatusLevelConverter.cs b/Source/NETworkManager.Converters/FirewallRuleActionToStatusLevelConverter.cs
new file mode 100644
index 0000000000..b1e4906b53
--- /dev/null
+++ b/Source/NETworkManager.Converters/FirewallRuleActionToStatusLevelConverter.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Globalization;
+using System.Windows.Data;
+using NETworkManager.Controls;
+using NETworkManager.Models.Firewall;
+
+namespace NETworkManager.Converters;
+
+///
+/// Convert to : allow = success, block = error.
+///
+public sealed class FirewallRuleActionToStatusLevelConverter : IValueConverter
+{
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ return value switch
+ {
+ FirewallRuleAction.Allow => StatusLevel.Success,
+ FirewallRuleAction.Block => StatusLevel.Error,
+ _ => StatusLevel.None
+ };
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+}
diff --git a/Source/NETworkManager.Converters/NeighborStateToStatusLevelConverter.cs b/Source/NETworkManager.Converters/NeighborStateToStatusLevelConverter.cs
new file mode 100644
index 0000000000..b50547db76
--- /dev/null
+++ b/Source/NETworkManager.Converters/NeighborStateToStatusLevelConverter.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Globalization;
+using System.Windows.Data;
+using NETworkManager.Controls;
+using NETworkManager.Models.Network;
+
+namespace NETworkManager.Converters;
+
+///
+/// Convert to : reachable = success, stale / delay / probe
+/// (not confirmed recently) = warning, incomplete / unreachable = error, permanent (static entry) neutral.
+///
+public sealed class NeighborStateToStatusLevelConverter : IValueConverter
+{
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ return value switch
+ {
+ NeighborState.Reachable => StatusLevel.Success,
+ NeighborState.Stale or NeighborState.Delay or NeighborState.Probe => StatusLevel.Warning,
+ NeighborState.Incomplete or NeighborState.Unreachable => StatusLevel.Error,
+ _ => StatusLevel.None
+ };
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+}
diff --git a/Source/NETworkManager.Converters/TcpStateToStatusLevelConverter.cs b/Source/NETworkManager.Converters/TcpStateToStatusLevelConverter.cs
new file mode 100644
index 0000000000..2e30b53a93
--- /dev/null
+++ b/Source/NETworkManager.Converters/TcpStateToStatusLevelConverter.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Globalization;
+using System.Net.NetworkInformation;
+using System.Windows.Data;
+using NETworkManager.Controls;
+
+namespace NETworkManager.Converters;
+
+///
+/// Convert to : established = success, connecting (SYN sent /
+/// received) = warning, all other states (listen, closing, time wait, ...) neutral.
+///
+public sealed class TcpStateToStatusLevelConverter : IValueConverter
+{
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ return value switch
+ {
+ TcpState.Established => StatusLevel.Success,
+ TcpState.SynSent or TcpState.SynReceived => StatusLevel.Warning,
+ _ => StatusLevel.None
+ };
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+}
diff --git a/Source/NETworkManager.Documentation/LibraryManager.cs b/Source/NETworkManager.Documentation/LibraryManager.cs
index 91e034774a..e265afbaba 100644
--- a/Source/NETworkManager.Documentation/LibraryManager.cs
+++ b/Source/NETworkManager.Documentation/LibraryManager.cs
@@ -56,22 +56,18 @@ public static class LibraryManager
Strings.Library_LiveCharts_Description,
Strings.License_MITLicense,
"https://github.com/Live-Charts/LiveCharts2/blob/master/LICENSE"),
- new("LoadingIndicators.WPF", "https://github.com/zeluisping/LoadingIndicators.WPF",
- Strings.Library_LoadingIndicatorsWPF_Description,
- Strings.License_Unlicense,
- "https://github.com/zeluisping/LoadingIndicators.WPF/blob/master/LICENSE"),
new("log4net", "https://logging.apache.org/log4net/",
Strings.Library_log4net_Description,
Strings.License_ApacheLicense2dot0,
"https://github.com/apache/logging-log4net/blob/master/LICENSE"),
+ new("Lucide", "https://lucide.dev",
+ Strings.Library_Lucide_Description,
+ Strings.License_ISCLicense,
+ "https://github.com/lucide-icons/lucide/blob/main/LICENSE"),
new("MahApps.Metro", "https://github.com/mahapps/mahapps.metro",
Strings.Library_MahAppsMetro_Description,
Strings.License_MITLicense,
"https://github.com/MahApps/MahApps.Metro/blob/master/LICENSE"),
- new("MahApps.Metro.IconPacks", "https://github.com/MahApps/MahApps.Metro.IconPacks",
- Strings.Library_MahAppsMetroIconPacks_Description,
- Strings.License_MITLicense,
- "https://github.com/MahApps/MahApps.Metro.IconPacks/blob/master/LICENSE"),
new("Microsoft.PowerShell.SDK", "https://github.com/PowerShell/PowerShell",
Strings.Library_PowerShellSDK_Description,
Strings.License_MITLicense,
diff --git a/Source/NETworkManager.Documentation/Licenses/LoadingIndicators.WPF.txt b/Source/NETworkManager.Documentation/Licenses/LoadingIndicators.WPF.txt
deleted file mode 100644
index 0378610359..0000000000
--- a/Source/NETworkManager.Documentation/Licenses/LoadingIndicators.WPF.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-This is free and unencumbered software released into the public domain.
-
-Anyone is free to copy, modify, publish, use, compile, sell, or
-distribute this software, either in source code form or as a compiled
-binary, for any purpose, commercial or non-commercial, and by any
-means.
-
-In jurisdictions that recognize copyright laws, the author or authors
-of this software dedicate any and all copyright interest in the
-software to the public domain. We make this dedication for the benefit
-of the public at large and to the detriment of our heirs and
-successors. We intend this dedication to be an overt act of
-relinquishment in perpetuity of all present and future rights to this
-software under copyright law.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
-OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-
-For more information, please refer to
\ No newline at end of file
diff --git a/Source/NETworkManager.Documentation/Licenses/Lucide.txt b/Source/NETworkManager.Documentation/Licenses/Lucide.txt
new file mode 100644
index 0000000000..718bb3f0e4
--- /dev/null
+++ b/Source/NETworkManager.Documentation/Licenses/Lucide.txt
@@ -0,0 +1,43 @@
+ISC License
+
+Copyright (c) 2026 Lucide Icons and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+---
+
+The following Lucide icons are derived from the Feather project:
+
+airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
+
+The MIT License (MIT) (for the icons listed above)
+
+Copyright (c) 2013-present Cole Bemis
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/Source/NETworkManager.Documentation/Licenses/MahApps.Metro.IconPack.txt b/Source/NETworkManager.Documentation/Licenses/MahApps.Metro.IconPack.txt
deleted file mode 100644
index eb69e61cee..0000000000
--- a/Source/NETworkManager.Documentation/Licenses/MahApps.Metro.IconPack.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2016 MahApps
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
\ No newline at end of file
diff --git a/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj b/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj
index 4b1ceece5c..5c801c8726 100644
--- a/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj
+++ b/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj
@@ -24,9 +24,8 @@
-
-
+
@@ -70,13 +69,10 @@
PreserveNewest
-
- PreserveNewest
- PreserveNewest
-
+ PreserveNewest
diff --git a/Source/NETworkManager.Localization/ResourceIdentifier.cs b/Source/NETworkManager.Localization/ResourceIdentifier.cs
index 108a10f3bc..2c3e2f925e 100644
--- a/Source/NETworkManager.Localization/ResourceIdentifier.cs
+++ b/Source/NETworkManager.Localization/ResourceIdentifier.cs
@@ -3,6 +3,8 @@
public enum ResourceIdentifier
{
Accent,
+ AccentGlowIntensity,
+ AnimationMode,
ApplicationName,
DiscoveryProtocol,
IPStatus,
diff --git a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs
index 59d4543c33..5d071b5767 100644
--- a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs
+++ b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs
@@ -132,6 +132,15 @@ public static string Accent_Cobalt {
}
}
+ ///
+ /// Looks up a localized string similar to Coral.
+ ///
+ public static string Accent_Coral {
+ get {
+ return ResourceManager.GetString("Accent_Coral", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Crimson.
///
@@ -159,6 +168,24 @@ public static string Accent_Emerald {
}
}
+ ///
+ /// Looks up a localized string similar to Gold.
+ ///
+ public static string Accent_Gold {
+ get {
+ return ResourceManager.GetString("Accent_Gold", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Graphite.
+ ///
+ public static string Accent_Graphite {
+ get {
+ return ResourceManager.GetString("Accent_Graphite", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Green.
///
@@ -177,6 +204,15 @@ public static string Accent_Indigo {
}
}
+ ///
+ /// Looks up a localized string similar to Lavender.
+ ///
+ public static string Accent_Lavender {
+ get {
+ return ResourceManager.GetString("Accent_Lavender", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Lime.
///
@@ -204,6 +240,24 @@ public static string Accent_Mauve {
}
}
+ ///
+ /// Looks up a localized string similar to Mint.
+ ///
+ public static string Accent_Mint {
+ get {
+ return ResourceManager.GetString("Accent_Mint", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Ocean.
+ ///
+ public static string Accent_Ocean {
+ get {
+ return ResourceManager.GetString("Accent_Ocean", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Olive.
///
@@ -240,6 +294,15 @@ public static string Accent_Red {
}
}
+ ///
+ /// Looks up a localized string similar to Rose.
+ ///
+ public static string Accent_Rose {
+ get {
+ return ResourceManager.GetString("Accent_Rose", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Sienna.
///
@@ -249,6 +312,24 @@ public static string Accent_Sienna {
}
}
+ ///
+ /// Looks up a localized string similar to Sky.
+ ///
+ public static string Accent_Sky {
+ get {
+ return ResourceManager.GetString("Accent_Sky", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Slate.
+ ///
+ public static string Accent_Slate {
+ get {
+ return ResourceManager.GetString("Accent_Slate", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Steel.
///
@@ -294,6 +375,51 @@ public static string Accent_Yellow {
}
}
+ ///
+ /// Looks up a localized string similar to Accent glow.
+ ///
+ public static string AccentGlow {
+ get {
+ return ResourceManager.GetString("AccentGlow", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Medium.
+ ///
+ public static string AccentGlowIntensity_Medium {
+ get {
+ return ResourceManager.GetString("AccentGlowIntensity_Medium", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Off.
+ ///
+ public static string AccentGlowIntensity_Off {
+ get {
+ return ResourceManager.GetString("AccentGlowIntensity_Off", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Strong.
+ ///
+ public static string AccentGlowIntensity_Strong {
+ get {
+ return ResourceManager.GetString("AccentGlowIntensity_Strong", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Subtle.
+ ///
+ public static string AccentGlowIntensity_Subtle {
+ get {
+ return ResourceManager.GetString("AccentGlowIntensity_Subtle", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Action.
///
@@ -303,6 +429,15 @@ public static string Action {
}
}
+ ///
+ /// Looks up a localized string similar to Active connections.
+ ///
+ public static string ActiveConnections {
+ get {
+ return ResourceManager.GetString("ActiveConnections", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Imported from Active Directory on {0}.
///
@@ -897,6 +1032,42 @@ public static string AnErrorOccurredWhileExportingTheData {
}
}
+ ///
+ /// Looks up a localized string similar to Off.
+ ///
+ public static string AnimationMode_Off {
+ get {
+ return ResourceManager.GetString("AnimationMode_Off", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to On.
+ ///
+ public static string AnimationMode_On {
+ get {
+ return ResourceManager.GetString("AnimationMode_On", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to System (Windows setting).
+ ///
+ public static string AnimationMode_System {
+ get {
+ return ResourceManager.GetString("AnimationMode_System", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Animations.
+ ///
+ public static string Animations {
+ get {
+ return ResourceManager.GetString("Animations", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Answered.
///
@@ -3965,6 +4136,15 @@ public static string DynamicIPv4DNSServer {
}
}
+ ///
+ /// Looks up a localized string similar to Dynamic tab width.
+ ///
+ public static string DynamicTabWidth {
+ get {
+ return ResourceManager.GetString("DynamicTabWidth", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Edit credentials.
///
@@ -5752,15 +5932,6 @@ public static string GHz2dot4 {
}
}
- ///
- /// Looks up a localized string similar to 2.4 & 5 GHz.
- ///
- public static string GHz2dot4And5 {
- get {
- return ResourceManager.GetString("GHz2dot4And5", resourceCulture);
- }
- }
-
///
/// Looks up a localized string similar to 5 GHz.
///
@@ -5905,6 +6076,15 @@ public static string Help {
}
}
+ ///
+ /// Looks up a localized string similar to Glow of the accent color in the top left corner of the windows (window background, title bar and navigation), weaker while the window is inactive..
+ ///
+ public static string HelpMessage_AccentGlow {
+ get {
+ return ResourceManager.GetString("HelpMessage_AccentGlow", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Adjusts the number of hosts and ports scanned at the same time to the scan: up to 512 connections at the same time, at most 128 hosts and 128 ports per host (e.g. 4 hosts with 1-1024, 128 hosts with one port). Disable it to set the threads yourself, e.g. to slow down a scan..
///
@@ -5914,6 +6094,15 @@ public static string HelpMessage_AdjustThreadsAutomatically {
}
}
+ ///
+ /// Looks up a localized string similar to Animations of the application, e.g. when a dialog is opened or closed. "System" follows the Windows setting "Animation effects" (Settings > Accessibility > Visual effects), which is often turned off on terminal servers and in remote sessions..
+ ///
+ public static string HelpMessage_Animations {
+ get {
+ return ResourceManager.GetString("HelpMessage_Animations", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to If you enable this option, the default PowerShell console settings in the registry under HKCU:\Console are overridden so that the PowerShell console window matches the application theme. This is a global system setting that may affect the appearance of the normal PowerShell window.
///
@@ -6029,6 +6218,15 @@ public static string HelpMessage_CustomPublicIPv6AddressAPI {
}
}
+ ///
+ /// Looks up a localized string similar to The tabs of the tools (e.g. IP Scanner, Remote Desktop, PuTTY) are as wide as their title, up to the maximum tab width. Longer titles are shortened, the tooltip of the tab shows the full title. When disabled, all tabs have the same width..
+ ///
+ public static string HelpMessage_DynamicTabWidth {
+ get {
+ return ResourceManager.GetString("HelpMessage_DynamicTabWidth", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Find hosts in a local subnet that don't answer the ping, a port or NetBIOS (e.g. a firewall drops everything) by their entry in the neighbor table (ARP / NDP). To reach a host in a local subnet, Windows has to resolve its MAC address first, and a host answers this request even if its firewall drops everything else. No additional packets are sent, except to check an entry from earlier traffic again. Hosts behind a router can't be found this way. Only decides if a host is up - the MAC address and vendor are s [rest of string was truncated]";.
///
@@ -6554,6 +6752,15 @@ public static string HostsFileEditorAdminMessage {
}
}
+ ///
+ /// Looks up a localized string similar to Hosts file entries.
+ ///
+ public static string HostsFileEntries {
+ get {
+ return ResourceManager.GetString("HostsFileEntries", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to The entry was not found in the "hosts" file! Maybe the file has been modified..
///
@@ -7446,15 +7653,6 @@ public static string Library_LiveCharts_Description {
}
}
- ///
- /// Looks up a localized string similar to A collection of loading indicators for WPF.
- ///
- public static string Library_LoadingIndicatorsWPF_Description {
- get {
- return ResourceManager.GetString("Library_LoadingIndicatorsWPF_Description", resourceCulture);
- }
- }
-
///
/// Looks up a localized string similar to log4net is a tool to help the programmer output log statements to a variety of output targets..
///
@@ -7465,20 +7663,20 @@ public static string Library_log4net_Description {
}
///
- /// Looks up a localized string similar to A toolkit for creating Metro / Modern UI styled WPF apps..
+ /// Looks up a localized string similar to Beautiful & consistent icons.
///
- public static string Library_MahAppsMetro_Description {
+ public static string Library_Lucide_Description {
get {
- return ResourceManager.GetString("Library_MahAppsMetro_Description", resourceCulture);
+ return ResourceManager.GetString("Library_Lucide_Description", resourceCulture);
}
}
///
- /// Looks up a localized string similar to Some awesome icons for WPF and UWP all together....
+ /// Looks up a localized string similar to A toolkit for creating Metro / Modern UI styled WPF apps..
///
- public static string Library_MahAppsMetroIconPacks_Description {
+ public static string Library_MahAppsMetro_Description {
get {
- return ResourceManager.GetString("Library_MahAppsMetroIconPacks_Description", resourceCulture);
+ return ResourceManager.GetString("Library_MahAppsMetro_Description", resourceCulture);
}
}
@@ -7591,29 +7789,29 @@ public static string License_BDS3Clause {
}
///
- /// Looks up a localized string similar to Microsoft WebView2 License.
+ /// Looks up a localized string similar to ISC License.
///
- public static string License_MicrosoftWebView2License {
+ public static string License_ISCLicense {
get {
- return ResourceManager.GetString("License_MicrosoftWebView2License", resourceCulture);
+ return ResourceManager.GetString("License_ISCLicense", resourceCulture);
}
}
///
- /// Looks up a localized string similar to MIT License.
+ /// Looks up a localized string similar to Microsoft WebView2 License.
///
- public static string License_MITLicense {
+ public static string License_MicrosoftWebView2License {
get {
- return ResourceManager.GetString("License_MITLicense", resourceCulture);
+ return ResourceManager.GetString("License_MicrosoftWebView2License", resourceCulture);
}
}
///
- /// Looks up a localized string similar to Unlicense.
+ /// Looks up a localized string similar to MIT License.
///
- public static string License_Unlicense {
+ public static string License_MITLicense {
get {
- return ResourceManager.GetString("License_Unlicense", resourceCulture);
+ return ResourceManager.GetString("License_MITLicense", resourceCulture);
}
}
@@ -7644,6 +7842,15 @@ public static string Listeners {
}
}
+ ///
+ /// Looks up a localized string similar to Listening ports.
+ ///
+ public static string ListeningPorts {
+ get {
+ return ResourceManager.GetString("ListeningPorts", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Live.
///
@@ -8004,6 +8211,15 @@ public static string MaximumNumberOfHopsReached {
}
}
+ ///
+ /// Looks up a localized string similar to Maximum tab width.
+ ///
+ public static string MaximumTabWidth {
+ get {
+ return ResourceManager.GetString("MaximumTabWidth", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Max. logon failures.
///
@@ -8292,6 +8508,15 @@ public static string Nameservers {
}
}
+ ///
+ /// Looks up a localized string similar to Neighbor entries.
+ ///
+ public static string NeighborEntries {
+ get {
+ return ResourceManager.GetString("NeighborEntries", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Delay.
///
@@ -14158,6 +14383,15 @@ public static string SyncIsDisabled {
}
}
+ ///
+ /// Looks up a localized string similar to Tabs.
+ ///
+ public static string Tabs {
+ get {
+ return ResourceManager.GetString("Tabs", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Tags.
///
@@ -14428,6 +14662,15 @@ public static string Theme {
}
}
+ ///
+ /// Looks up a localized string similar to Black.
+ ///
+ public static string Theme_Black {
+ get {
+ return ResourceManager.GetString("Theme_Black", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Dark.
///
@@ -14437,6 +14680,15 @@ public static string Theme_Dark {
}
}
+ ///
+ /// Looks up a localized string similar to Indigo.
+ ///
+ public static string Theme_Indigo {
+ get {
+ return ResourceManager.GetString("Theme_Indigo", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Light.
///
@@ -14446,6 +14698,51 @@ public static string Theme_Light {
}
}
+ ///
+ /// Looks up a localized string similar to Midnight.
+ ///
+ public static string Theme_Midnight {
+ get {
+ return ResourceManager.GetString("Theme_Midnight", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Mist.
+ ///
+ public static string Theme_Mist {
+ get {
+ return ResourceManager.GetString("Theme_Mist", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Paper.
+ ///
+ public static string Theme_Paper {
+ get {
+ return ResourceManager.GetString("Theme_Paper", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Soft.
+ ///
+ public static string Theme_Soft {
+ get {
+ return ResourceManager.GetString("Theme_Soft", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Steel.
+ ///
+ public static string Theme_Steel {
+ get {
+ return ResourceManager.GetString("Theme_Steel", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to The process can take up some time and resources (CPU / RAM)..
///
diff --git a/Source/NETworkManager.Localization/Resources/Strings.resx b/Source/NETworkManager.Localization/Resources/Strings.resx
index 98dc2d0292..ce63409d40 100644
--- a/Source/NETworkManager.Localization/Resources/Strings.resx
+++ b/Source/NETworkManager.Localization/Resources/Strings.resx
@@ -2419,9 +2419,6 @@ is disabled!
5 GHz
-
- 2.4 & 5 GHz
-
Signal strength
@@ -3022,12 +3019,6 @@ Error message:
Beautiful, interactive charts, maps, and gauges.
-
- A collection of loading indicators for WPF
-
-
- Some awesome icons for WPF and UWP all together...
-
A toolkit for creating Metro / Modern UI styled WPF apps.
@@ -3067,9 +3058,6 @@ Error message:
MIT License
-
- Unlicense
-
C#/WinRT provides packaged WinRT projection support for the C# language.
@@ -5468,4 +5456,115 @@ Do you want to start the scan?
Only when the networks are scanned automatically ("Automatically update every") and WiFi is shown: one notification per scan with the changes since the previous scan of the adapter.
+
+ Tabs
+
+
+ Dynamic tab width
+
+
+ Maximum tab width
+
+
+ The tabs of the tools (e.g. IP Scanner, Remote Desktop, PuTTY) are as wide as their title, up to the maximum tab width. Longer titles are shortened, the tooltip of the tab shows the full title. When disabled, all tabs have the same width.
+
+
+ Animations
+
+
+ System (Windows setting)
+
+
+ On
+
+
+ Off
+
+
+ Animations of the application, e.g. when a dialog is opened or closed. "System" follows the Windows setting "Animation effects" (Settings > Accessibility > Visual effects), which is often turned off on terminal servers and in remote sessions.
+
+
+ Active connections
+
+
+ Hosts file entries
+
+
+ Listening ports
+
+
+ Neighbor entries
+
+
+ Accent glow
+
+
+ Glow of the accent color in the top left corner of the windows (window background, title bar and navigation), weaker while the window is inactive.
+
+
+ Black
+
+
+ Midnight
+
+
+ Steel
+
+
+ Indigo
+
+
+ Sky
+
+
+ Ocean
+
+
+ Mint
+
+
+ Rose
+
+
+ Coral
+
+
+ Gold
+
+
+ Lavender
+
+
+ Slate
+
+
+ Mist
+
+
+ Soft
+
+
+ Paper
+
+
+ Graphite
+
+
+ Off
+
+
+ Subtle
+
+
+ Medium
+
+
+ Strong
+
+
+ Beautiful & consistent icons
+
+
+ ISC License
+
\ No newline at end of file
diff --git a/Source/NETworkManager.Models/Appearance/AccentGlowIntensity.cs b/Source/NETworkManager.Models/Appearance/AccentGlowIntensity.cs
new file mode 100644
index 0000000000..da7469619c
--- /dev/null
+++ b/Source/NETworkManager.Models/Appearance/AccentGlowIntensity.cs
@@ -0,0 +1,27 @@
+namespace NETworkManager.Models.Appearance;
+
+///
+/// Intensity of the glow of the accent color in the top left corner of the windows.
+///
+public enum AccentGlowIntensity
+{
+ ///
+ /// No glow.
+ ///
+ Off,
+
+ ///
+ /// 6 % of the accent.
+ ///
+ Subtle,
+
+ ///
+ /// 10 % of the accent.
+ ///
+ Medium,
+
+ ///
+ /// 15 % of the accent.
+ ///
+ Strong
+}
diff --git a/Source/NETworkManager.Models/Appearance/AnimationMode.cs b/Source/NETworkManager.Models/Appearance/AnimationMode.cs
new file mode 100644
index 0000000000..663a07a18f
--- /dev/null
+++ b/Source/NETworkManager.Models/Appearance/AnimationMode.cs
@@ -0,0 +1,22 @@
+namespace NETworkManager.Models.Appearance;
+
+///
+/// Animations of the application (e.g. when a dialog is opened or closed).
+///
+public enum AnimationMode
+{
+ ///
+ /// Follow the Windows setting "Animation effects" (Settings > Accessibility > Visual effects).
+ ///
+ System,
+
+ ///
+ /// Always show animations.
+ ///
+ On,
+
+ ///
+ /// Never show animations.
+ ///
+ Off
+}
diff --git a/Source/NETworkManager.Models/ApplicationManager.cs b/Source/NETworkManager.Models/ApplicationManager.cs
index 0e76c60306..bbf05016f8 100644
--- a/Source/NETworkManager.Models/ApplicationManager.cs
+++ b/Source/NETworkManager.Models/ApplicationManager.cs
@@ -1,4 +1,4 @@
-using MahApps.Metro.IconPacks;
+using NETworkManager.Controls;
using NETworkManager.Utilities;
using System;
using System.Collections.Generic;
@@ -66,96 +66,96 @@ public static Canvas GetIcon(ApplicationName name)
switch (name)
{
case ApplicationName.Dashboard:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.ViewDashboardVariant });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.LayoutDashboard });
break;
case ApplicationName.NetworkInterface:
- canvas.Children.Add(new PackIconModern { Kind = PackIconModernKind.Network });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.EthernetPort });
break;
case ApplicationName.WiFi:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.AccessPointNetwork });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Wifi });
break;
case ApplicationName.IPScanner:
- canvas.Children.Add(new PackIconFontAwesome { Kind = PackIconFontAwesomeKind.NetworkWiredSolid });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Network });
break;
case ApplicationName.PortScanner:
- canvas.Children.Add(new PackIconModern { Kind = PackIconModernKind.NetworkPort });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.ScanLine });
break;
case ApplicationName.PingMonitor:
- canvas.Children.Add(new PackIconModern { Kind = PackIconModernKind.RadarScreen });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Radar });
break;
case ApplicationName.Traceroute:
- canvas.Children.Add(new PackIconModern { Kind = PackIconModernKind.TransitConnection });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Route });
break;
case ApplicationName.DNSLookup:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.SearchWeb });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Globe });
break;
case ApplicationName.RemoteDesktop:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.RemoteDesktop });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Monitor });
break;
case ApplicationName.PowerShell:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.Powershell });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.SquareChevronRight });
break;
case ApplicationName.PuTTY:
- canvas.Children.Add(new PackIconFontAwesome { Kind = PackIconFontAwesomeKind.TerminalSolid });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Terminal });
break;
case ApplicationName.TigerVNC:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.EyeOutline });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Eye });
break;
case ApplicationName.WebConsole:
- canvas.Children.Add(new PackIconModern { Kind = PackIconModernKind.Browser });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.AppWindow });
break;
case ApplicationName.SNMP:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.Switch });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Server });
break;
case ApplicationName.SNTPLookup:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.ClockCheckOutline });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.ClockCheck });
break;
case ApplicationName.HostsFileEditor:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.FileEditOutline });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.FilePenLine });
break;
case ApplicationName.DiscoveryProtocol:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.SwapHorizontal });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.ArrowLeftRight });
break;
case ApplicationName.WakeOnLAN:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.Power });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Power });
break;
case ApplicationName.RDAP:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.CardAccountDetailsOutline });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.IdCard });
break;
case ApplicationName.Whois:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.CloudSearchOutline });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.FileSearch });
break;
case ApplicationName.IPGeolocation:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.MapSearchOutline });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.MapPin });
break;
case ApplicationName.SubnetCalculator:
- canvas.Children.Add(new PackIconModern { Kind = PackIconModernKind.Calculator });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Calculator });
break;
case ApplicationName.BitCalculator:
- canvas.Children.Add(new PackIconModern { Kind = PackIconModernKind.TypeBit });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Binary });
break;
case ApplicationName.Lookup:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.DatabaseSearch });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.DatabaseSearch });
break;
case ApplicationName.Connections:
- canvas.Children.Add(new PackIconModern { Kind = PackIconModernKind.Connect });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.PlugZap });
break;
case ApplicationName.Listeners:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.Wan });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.RadioTower });
break;
case ApplicationName.NeighborTable:
#pragma warning disable CS0618
case ApplicationName.ARPTable:
#pragma warning restore CS0618
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.TableOfContents });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Table });
break;
case ApplicationName.Firewall:
- canvas.Children.Add(new PackIconMaterial { Kind = PackIconMaterialKind.WallFire });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.BrickWallFire });
break;
case ApplicationName.None:
case ApplicationName.AWSSessionManager:
default:
- canvas.Children.Add(new PackIconModern { Kind = PackIconModernKind.SmileyFrown });
+ canvas.Children.Add(new LucideIcon { Kind = LucideIconKind.Frown });
break;
}
diff --git a/Source/NETworkManager.Models/NETworkManager.Models.csproj b/Source/NETworkManager.Models/NETworkManager.Models.csproj
index 8bc8a962e1..695b78fa8b 100644
--- a/Source/NETworkManager.Models/NETworkManager.Models.csproj
+++ b/Source/NETworkManager.Models/NETworkManager.Models.csproj
@@ -37,11 +37,6 @@
-
-
-
-
-
@@ -55,6 +50,7 @@
+
diff --git a/Source/NETworkManager.Models/PowerShell/PowerShell.cs b/Source/NETworkManager.Models/PowerShell/PowerShell.cs
index 06e2c3e119..197bb8c079 100644
--- a/Source/NETworkManager.Models/PowerShell/PowerShell.cs
+++ b/Source/NETworkManager.Models/PowerShell/PowerShell.cs
@@ -1,5 +1,8 @@
using System;
+using System.Collections.Concurrent;
using System.Collections.Generic;
+using System.IO;
+using System.Diagnostics;
using System.Linq;
using log4net;
using Microsoft.Win32;
@@ -50,47 +53,141 @@ public static class PowerShell
];
///
- /// Default DWORD registry keys for the global PowerShell profile with dark theme.
+ /// Real paths of App Execution Aliases (Microsoft Store), resolved once per start of the application (the real
+ /// path contains the version and changes with every update). Lazy, so parallel calls start the alias only once;
+ /// a failed resolve is removed and tried again next time.
///
- /// List of with registry key name and value.
- private static List> GetProfileRegkeysDwordDark()
+ private static readonly ConcurrentDictionary> ResolvedAliases = new(StringComparer.OrdinalIgnoreCase);
+
+ ///
+ /// Write default (global) PowerShell profile to registry: the console settings of Windows (conhost) in
+ /// HKCU\Console\<title>, the title is the path of the started executable (\ replaced by _, the Windows
+ /// directory as %SystemRoot%).
+ ///
+ /// PowerShell from the Microsoft Store is started via an App Execution Alias (e.g.
+ /// %LocalAppData%\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe), which starts the real
+ /// executable in C:\Program Files\WindowsApps\Microsoft.PowerShell_7.x.x.0_x64__8wekyb3d8bbwe\pwsh.exe - write
+ /// the profile for the real path too (), so it applies whichever the
+ /// console uses as title.
+ ///
+ /// Background of the console (DefaultBackground, ColorTable00).
+ /// Text of the console (ColorTable07).
+ /// Path to the PowerShell executable.
+ public static void WriteDefaultProfileToRegistry((byte R, byte G, byte B) background,
+ (byte R, byte G, byte B) foreground, string powerShellPath)
{
- return DefaultProfileRegkeysDwordBase.Concat(
- [
- new Tuple("DefaultBackground", 2434341), // HEX: 252525
- new Tuple("ColorTable00", 2434341), // HEX: 252525
- new Tuple("ColorTable07", 13421772) // HEX: cccccc
- ]).ToList();
+ WriteProfile(background, foreground, powerShellPath);
}
///
- /// Default DWORD registry keys for the global PowerShell profile with white theme.
+ /// Real path of an App Execution Alias, resolved once per start of the application (the real path contains
+ /// the version and changes with every update). Starts the alias the first time (can take a moment, call it in
+ /// the background); a failed resolve is tried again with the next call.
///
- /// List of with registry key name and value.
- private static List> GetProfileRegkeysDwordWhite()
+ /// Path of the App Execution Alias.
+ ///
+ /// Real path, or if it could not be resolved, is the alias itself or the alias is not
+ /// PowerShell (only pwsh.exe / powershell.exe understand the arguments used to resolve it).
+ ///
+ public static string ResolveAppExecutionAlias(string aliasPath)
{
- return DefaultProfileRegkeysDwordBase.Concat(
- [
- new Tuple("DefaultBackground", 16777215), // HEX: FFFFFF
- new Tuple("ColorTable00", 16777215), // HEX: FFFFFF
- new Tuple("ColorTable07", 2434341) // HEX: 252525
- ]).ToList();
+ var fileName = Path.GetFileName(aliasPath);
+
+ if (!string.Equals(fileName, PwshFileName, StringComparison.OrdinalIgnoreCase) &&
+ !string.Equals(fileName, WindowsPowerShellFileName, StringComparison.OrdinalIgnoreCase))
+ return null;
+
+ var resolved = ResolvedAliases.GetOrAdd(aliasPath,
+ x => new Lazy(() => StartAndResolveAppExecutionAlias(x)));
+ var realPath = resolved.Value;
+
+ // Not resolved (e.g. timeout): try again with the next call
+ if (string.IsNullOrEmpty(realPath))
+ {
+ ResolvedAliases.TryRemove(new KeyValuePair>(aliasPath, resolved));
+
+ return null;
+ }
+
+ return string.Equals(realPath, aliasPath, StringComparison.OrdinalIgnoreCase) ? null : realPath;
}
///
- /// Write default (global) PowerShell profile to registry.
+ /// Whether the path is an App Execution Alias of an app from the Microsoft Store
+ /// (%LocalAppData%\Microsoft\WindowsApps\...).
///
- /// Theme of the PowerShell profile.
- /// Path to the PowerShell executable.
- public static void WriteDefaultProfileToRegistry(string theme, string powerShellPath)
+ public static bool IsAppExecutionAlias(string path)
+ {
+ var aliasFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
+ "Microsoft", "WindowsApps") + Path.DirectorySeparatorChar;
+
+ return !string.IsNullOrEmpty(path) && path.StartsWith(aliasFolder, StringComparison.OrdinalIgnoreCase);
+ }
+
+ ///
+ /// Resolves the real executable of an App Execution Alias: starts it and asks for the path of its own process
+ /// (works with Windows PowerShell and PowerShell 7).
+ ///
+ /// Real path or if it could not be resolved.
+ private static string StartAndResolveAppExecutionAlias(string aliasPath)
+ {
+ try
+ {
+ ProcessStartInfo info = new()
+ {
+ FileName = aliasPath,
+ Arguments = "-NoLogo -NoProfile -NonInteractive -Command \"(Get-Process -Id $PID).Path\"",
+ RedirectStandardOutput = true,
+ UseShellExecute = false,
+ CreateNoWindow = true
+ };
+
+ using var process = Process.Start(info);
+
+ if (process == null)
+ return null;
+
+ // Read asynchronously, so the timeout also applies if the process doesn't end (ReadToEnd would block)
+ var outputTask = process.StandardOutput.ReadToEndAsync();
+
+ if (!process.WaitForExit(10000))
+ {
+ process.Kill(true);
+ Log.Warn($"Timeout while resolving the App Execution Alias \"{aliasPath}\".");
+
+ return null;
+ }
+
+ if (!outputTask.Wait(2000))
+ return null;
+
+ var output = outputTask.Result.Trim();
+
+ Log.Info($"App Execution Alias \"{aliasPath}\" resolved to \"{output}\".");
+
+ return File.Exists(output) ? output : null;
+ }
+ catch (Exception ex)
+ {
+ Log.Error($"Could not resolve the App Execution Alias \"{aliasPath}\".", ex);
+
+ return null;
+ }
+ }
+
+ ///
+ /// Writes the profile for the console title of the executable path.
+ ///
+ private static void WriteProfile((byte R, byte G, byte B) background, (byte R, byte G, byte B) foreground,
+ string powerShellPath)
{
var registryPath = @"Console\";
var systemRoot = Environment.ExpandEnvironmentVariables("%SystemRoot%");
// Windows PowerShell --> HKCU:\Console\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe
- if (powerShellPath.StartsWith(systemRoot))
- registryPath += "%SystemRoot%" + powerShellPath.Substring(systemRoot.Length, powerShellPath.Length - systemRoot.Length).Replace(@"\", "_");
+ if (powerShellPath.StartsWith(systemRoot, StringComparison.OrdinalIgnoreCase))
+ registryPath += "%SystemRoot%" + powerShellPath.Substring(systemRoot.Length).Replace(@"\", "_");
// PWSH --> HKCU:\Console\C:_Program Files_PowerShell_7_pwsh.exe
else
registryPath += powerShellPath.Replace(@"\", "_");
@@ -103,9 +200,14 @@ public static void WriteDefaultProfileToRegistry(string theme, string powerShell
if (registryKey != null)
{
- foreach (var item in theme == "Dark" ? GetProfileRegkeysDwordDark() : GetProfileRegkeysDwordWhite())
+ foreach (var item in DefaultProfileRegkeysDwordBase)
registryKey.SetValue(item.Item1, item.Item2);
+ // Colors of the application theme (COLORREF: 0x00BBGGRR), the console blends into the application
+ registryKey.SetValue("DefaultBackground", ToColorRef(background));
+ registryKey.SetValue("ColorTable00", ToColorRef(background));
+ registryKey.SetValue("ColorTable07", ToColorRef(foreground));
+
foreach (var item in DefaultProfileRegkeysSzBase)
registryKey.SetValue(item.Item1, item.Item2);
@@ -115,6 +217,8 @@ public static void WriteDefaultProfileToRegistry(string theme, string powerShell
registryKey?.Close();
}
+ private static int ToColorRef((byte R, byte G, byte B) color) => color.R | (color.G << 8) | (color.B << 16);
+
///
/// Build command line arguments based on a .
///
diff --git a/Source/NETworkManager.Models/PuTTY/PuTTY.cs b/Source/NETworkManager.Models/PuTTY/PuTTY.cs
index 645a5dc2bb..0f126c6c94 100644
--- a/Source/NETworkManager.Models/PuTTY/PuTTY.cs
+++ b/Source/NETworkManager.Models/PuTTY/PuTTY.cs
@@ -22,7 +22,6 @@ public static class PuTTY
///
private static readonly List> DefaultProfileRegkeysSzBase =
[
- new("Colour1", "255,255,255"),
new("Colour3", "85,85,85"),
new("Colour4", "0,0,0"),
new("Colour5", "0,255,0"),
@@ -58,39 +57,15 @@ public static class PuTTY
];
///
- /// SZ registry keys for PuTTY profile NETworkManager if app theme is dark.
- ///
- /// List with SZ registry keys.
- private static List> GetProfileRegkeysSzDark()
- {
- return DefaultProfileRegkeysSzBase.Concat(
- [
- // new Tuple("Colour0", "255,255,255"),
- new Tuple("Colour0", "187,187,187"), // Foreground
- new Tuple("Colour2", "37,37,37") // Background
- ]).ToList();
- }
-
- ///
- /// SZ registry keys for PuTTY profile NETworkManager if app theme is white.
- ///
- /// List with DWORD registry keys.
- private static List> GetProfileRegkeysSzWhite()
- {
- return DefaultProfileRegkeysSzBase.Concat(
- [
- // new Tuple("Colour0", "68,68,68"),
- new Tuple("Colour0", "0,0,0"), // Foreground
- new Tuple("Colour2", "255,255,255") // Background
- ]).ToList();
- }
-
- ///
- /// Write the default PuTTY profile NETworkManager to the registry.
+ /// Write the default PuTTY profile NETworkManager to the registry, with the colors of the application theme so
+ /// the terminal blends into the application (background of the box around it).
/// HKCU\Software\SimonTatham\PuTTY\Sessions\NETworkManager
///
- /// Current application theme to adjust the PuTTY colors
- public static void WriteDefaultProfileToRegistry(string theme)
+ /// Background (Colour2).
+ /// Text (Colour0).
+ /// Bold text (Colour1).
+ public static void WriteDefaultProfileToRegistry((byte R, byte G, byte B) background,
+ (byte R, byte G, byte B) foreground, (byte R, byte G, byte B) boldForeground)
{
var profilePath = @"Software\SimonTatham\PuTTY\Sessions\NETworkManager";
@@ -100,16 +75,22 @@ public static void WriteDefaultProfileToRegistry(string theme)
if (registryKey != null)
{
- foreach (var item in theme == "Dark" ? GetProfileRegkeysSzDark() : GetProfileRegkeysSzWhite())
+ foreach (var item in DefaultProfileRegkeysSzBase)
registryKey.SetValue(item.Item1, item.Item2);
+ registryKey.SetValue("Colour0", ToPuTTYColor(foreground));
+ registryKey.SetValue("Colour1", ToPuTTYColor(boldForeground));
+ registryKey.SetValue("Colour2", ToPuTTYColor(background));
+
foreach (var item in DefaultProfileRegkeysDwordBase)
registryKey.SetValue(item.Item1, item.Item2);
}
- registryKey.Close();
+ registryKey?.Close();
}
+ private static string ToPuTTYColor((byte R, byte G, byte B) color) => $"{color.R},{color.G},{color.B}";
+
///
/// Build command line arguments based on a .
///
diff --git a/Source/NETworkManager.Profiles/GroupViewManager.cs b/Source/NETworkManager.Profiles/GroupViewManager.cs
index f45115dd3b..7a796dbb4c 100644
--- a/Source/NETworkManager.Profiles/GroupViewManager.cs
+++ b/Source/NETworkManager.Profiles/GroupViewManager.cs
@@ -1,5 +1,5 @@
using System.Collections.Generic;
-using MahApps.Metro.IconPacks;
+using NETworkManager.Controls;
using NETworkManager.Models;
namespace NETworkManager.Profiles;
@@ -10,7 +10,7 @@ public static class GroupViewManager
public static List List =>
[
// General
- new GroupViewInfo(GroupViewName.General, new PackIconModern { Kind = PackIconModernKind.Box }),
+ new GroupViewInfo(GroupViewName.General, new LucideIcon { Kind = LucideIconKind.Box }),
// Applications
new GroupViewInfo(GroupViewName.IPScanner, ApplicationManager.GetIcon(ApplicationName.IPScanner)),
diff --git a/Source/NETworkManager.Profiles/NETworkManager.Profiles.csproj b/Source/NETworkManager.Profiles/NETworkManager.Profiles.csproj
index fee22ab9b3..2d42b243a9 100644
--- a/Source/NETworkManager.Profiles/NETworkManager.Profiles.csproj
+++ b/Source/NETworkManager.Profiles/NETworkManager.Profiles.csproj
@@ -19,11 +19,6 @@
-
-
-
-
-
diff --git a/Source/NETworkManager.Profiles/ProfileViewManager.cs b/Source/NETworkManager.Profiles/ProfileViewManager.cs
index 9924f7387d..3a8b9c1d15 100644
--- a/Source/NETworkManager.Profiles/ProfileViewManager.cs
+++ b/Source/NETworkManager.Profiles/ProfileViewManager.cs
@@ -1,5 +1,5 @@
using System.Collections.Generic;
-using MahApps.Metro.IconPacks;
+using NETworkManager.Controls;
using NETworkManager.Models;
namespace NETworkManager.Profiles;
@@ -22,7 +22,7 @@ public static class ProfileViewManager
public static List List =>
[
// General
- new(ProfileName.General, new PackIconModern { Kind = PackIconModernKind.Box },
+ new(ProfileName.General, new LucideIcon { Kind = LucideIconKind.Box },
ProfileGroup.General),
// Applications
diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs
index c8c8741b7e..4565cca5ce 100644
--- a/Source/NETworkManager.Settings/AppearanceManager.cs
+++ b/Source/NETworkManager.Settings/AppearanceManager.cs
@@ -28,6 +28,12 @@ public static class AppearanceManager
["MahApps.Brushes.Gray8"] = new SolidColorBrush(Color.FromRgb(190, 190, 190)),
};
+ ///
+ /// Overrides of the applied theme (copy of /
+ /// , tinted for an additional theme).
+ ///
+ private static ResourceDictionary _themeOverrideDictionary;
+
///
/// Dictionary to override some brushes for the dark theme.
///
@@ -36,6 +42,126 @@ public static class AppearanceManager
};
+ ///
+ /// Resource key of the background of a control (e.g. button, ComboBox) when the mouse is over it.
+ ///
+ public const string ControlMouseOverBrushKey = "Brushes.Control.MouseOver";
+
+ ///
+ /// Resource key of the background of a control (e.g. button, ComboBox) while it is pressed.
+ ///
+ public const string ControlPressedBrushKey = "Brushes.Control.Pressed";
+
+ ///
+ /// Resource key of the background of a (secondary) button, e.g. "Export...", "Cancel".
+ ///
+ public const string ButtonBackgroundBrushKey = "Brushes.Button.Background";
+
+ ///
+ /// Resource key of the background of a (secondary) button when the mouse is over it.
+ ///
+ public const string ButtonMouseOverBrushKey = "Brushes.Button.MouseOver";
+
+ ///
+ /// Resource key of the background of a (secondary) button while it is pressed.
+ ///
+ public const string ButtonPressedBrushKey = "Brushes.Button.Pressed";
+
+ ///
+ /// Key of the layer that fades in on mouse over above the background of a (secondary) button.
+ ///
+ public const string ButtonMouseOverOverlayBrushKey = "Brushes.Button.MouseOverOverlay";
+
+ ///
+ /// Key of the layer that fades in while a button / control is pressed (above the mouse over layer).
+ ///
+ public const string ControlPressedOverlayBrushKey = "Brushes.Control.PressedOverlay";
+
+ ///
+ /// Resource key of the background of the main window frame around and between the boxes (navigation, main view,
+ /// profiles).
+ ///
+ public const string SurfaceFrameBrushKey = "Brushes.Surface.Frame";
+
+ ///
+ /// Resource key of the border of the boxes (main view, profiles, ...) and cards (e.g. Dashboard widgets).
+ ///
+ public const string SurfaceBorderBrushKey = "Brushes.Surface.Border";
+
+ ///
+ /// Resource key of the background of the selected item of the navigation (tint of the accent).
+ ///
+ public const string NavigationSelectedBrushKey = "Brushes.Navigation.Selected";
+
+ ///
+ /// Resource key of the background of the windows with a frame (FrameWindow: main window, tab window, status
+ /// window; window, title bar, navigation): the frame color, with
+ /// a subtle glow of the accent in the top left corner.
+ ///
+ public const string SurfaceWindowBrushKey = "Brushes.Surface.Window";
+
+ ///
+ /// Resource key of the background of an inactive window (half of the glow), see .
+ ///
+ public const string SurfaceWindowInactiveBrushKey = "Brushes.Surface.Window.Inactive";
+
+ ///
+ /// Background of the consoles (PuTTY, PowerShell): the background of the boxes of the current theme.
+ ///
+ public static (byte R, byte G, byte B) ConsoleBackground { get; private set; } = (0x25, 0x25, 0x25);
+
+ ///
+ /// Text of the consoles (slightly muted foreground of the current theme).
+ ///
+ public static (byte R, byte G, byte B) ConsoleForeground { get; private set; } = (0xBB, 0xBB, 0xBB);
+
+ ///
+ /// Bold text of the consoles (foreground of the current theme).
+ ///
+ public static (byte R, byte G, byte B) ConsoleBoldForeground { get; private set; } = (0xFF, 0xFF, 0xFF);
+
+ ///
+ /// Raised after a theme change that changed the console colors, when all resources are set (to update the
+ /// profiles of PuTTY / PowerShell).
+ ///
+ public static event EventHandler ConsoleColorsChanged;
+
+ ///
+ /// Raised after the resources of a new theme are applied (see ), e.g. to
+ /// update colors that are not taken from a DynamicResource (charts).
+ ///
+ public static event EventHandler ThemeResourcesChanged;
+
+ private static (byte R, byte G, byte B) ToRgb(Color color) => (color.R, color.G, color.B);
+
+ private static Color _frameColor = Colors.White;
+ private static Color _accentColor = Colors.Gray;
+
+ ///
+ /// Resource key of the background of a selected row (data grid) when the mouse is over it.
+ ///
+ public const string DataGridSelectionMouseOverBrushKey = "Brushes.DataGrid.Selection.MouseOver";
+
+ ///
+ /// Resource key of the border of an input (e.g. TextBox, ComboBox) when the mouse is over it.
+ ///
+ public const string ControlBorderMouseOverBrushKey = "Brushes.Control.Border.MouseOver";
+
+ ///
+ /// Resource key of the status color "success" (e.g. host up, port open, firewall rule allows).
+ ///
+ public const string StatusSuccessBrushKey = "Brushes.Status.Success";
+
+ ///
+ /// Resource key of the status color "warning" (e.g. changed since the last scan, warning icon).
+ ///
+ public const string StatusWarningBrushKey = "Brushes.Status.Warning";
+
+ ///
+ /// Resource key of the status color "error" (e.g. host down, port closed, error icon, validation error).
+ ///
+ public const string StatusErrorBrushKey = "Brushes.Status.Error";
+
///
/// Name of the folder inside the application directory where the custom themes are stored.
///
@@ -55,6 +181,20 @@ public static class AppearanceManager
/// List who contains all MahApps.Metro accents.
///
public static List Accents { get; set; }
+
+ ///
+ /// Whether animations are shown (e.g. when a dialog is opened or closed): the system-wide policy
+ /// (), otherwise the setting;
+ /// follows the Windows setting "Animation effects". Read each time an animation starts, changes apply
+ /// immediately.
+ ///
+ public static bool AnimationsEnabled =>
+ PolicyManager.Current?.Appearance_Animations ?? SettingsManager.Current.Appearance_Animations switch
+ {
+ AnimationMode.On => true,
+ AnimationMode.Off => false,
+ _ => SystemParameters.ClientAreaAnimation
+ };
#endregion
#region Constructor
@@ -63,16 +203,22 @@ public static class AppearanceManager
///
static AppearanceManager()
{
+ // Themes of MahApps (Light, Dark) and the additional themes (Black, Midnight, ...), created when used; sorted
+ // from light to dark (by the brightness of the background), so the light and dark themes are next to each other
Themes = [.. ThemeManager.Current.Themes
.GroupBy(x => x.BaseColorScheme)
.Select(x => x.First())
.Select(x => new ThemeColorInfo
- { Name = x.BaseColorScheme, Color = x.Resources["MahApps.Brushes.ThemeBackground"] as Brush })];
+ { Name = x.BaseColorScheme, Color = x.Resources["MahApps.Brushes.ThemeBackground"] as Brush })
+ .Concat(ThemeVariants.Themes.Select(x => new ThemeColorInfo { Name = x.Name, Color = CreateFrozenBrush(x.Background, 1) }))
+ .OrderByDescending(x => x.Color is SolidColorBrush { Color: var color } ? ThemeVariants.Luminance(color) : 0)];
+ // Accents of MahApps and the additional accents (Sky, Ocean, ...), sorted by name
Accents = [.. ThemeManager.Current.Themes
.GroupBy(x => x.ColorScheme)
- .OrderBy(x => x.Key)
- .Select(x => new AccentColorInfo { Name = x.Key, Color = x.First().ShowcaseBrush })];
+ .Select(x => new AccentColorInfo { Name = x.Key, Color = x.First().ShowcaseBrush })
+ .Concat(ThemeVariants.Accents.Select(x => new AccentColorInfo { Name = x.Name, Color = CreateFrozenBrush(x.Color, 1) }))
+ .OrderBy(x => x.Name)];
ThemeManager.Current.ThemeChanged += Current_ThemeChanged;
@@ -98,6 +244,39 @@ public static void Load()
ChangeTheme(SettingsManager.Current.Appearance_Theme, SettingsManager.Current.Appearance_Accent);
}
+ ///
+ /// Theme whose resources were applied last (see ).
+ ///
+ private static Theme _appliedTheme;
+
+ ///
+ /// Apply the resources computed from the theme (brushes of controls, surfaces, status colors, light / dark
+ /// overrides). Called on every theme change and after changing the theme: ControlzEx doesn't raise
+ /// if the theme is already applied (e.g. at startup with the theme merged
+ /// in App.xaml), so the resources are applied directly; the same theme is applied only once.
+ ///
+ /// Theme that was applied.
+ private static void ApplyThemeResources(Theme theme)
+ {
+ if (theme == null || ReferenceEquals(theme, _appliedTheme))
+ return;
+
+ _appliedTheme = theme;
+
+ var consoleColors = (ConsoleBackground, ConsoleForeground, ConsoleBoldForeground);
+
+ ApplyControlStateBrushes(theme);
+ ApplyStatusBrushes(theme);
+ ApplyCustomThemeFixes(theme);
+
+ // After all resources are applied: a handler that fails can't leave the theme half applied
+ ThemeResourcesChanged?.Invoke(null, EventArgs.Empty);
+
+ // Only if they changed (not e.g. with another accent): the profiles are written to the registry
+ if (consoleColors != (ConsoleBackground, ConsoleForeground, ConsoleBoldForeground))
+ ConsoleColorsChanged?.Invoke(null, EventArgs.Empty);
+ }
+
///
/// Method to load the custom themes from a folder into the .
///
@@ -118,13 +297,92 @@ private static void LoadCustomThemes()
CustomThemes = customThemes;
}
+ ///
+ /// Amount of the accent in the glow (0 = off).
+ ///
+ private static double GetAccentGlowAmount() => SettingsManager.Current?.Appearance_AccentGlowIntensity switch
+ {
+ AccentGlowIntensity.Subtle => 0.06,
+ AccentGlowIntensity.Medium => 0.10,
+ AccentGlowIntensity.Strong => 0.15,
+ _ => 0
+ };
+
+ ///
+ /// Sets the background of the main window (): the frame color, or with the
+ /// accent glow (Settings > Appearance) a radial gradient from 6 / 10 / 15 % of the accent (intensity) in the top
+ /// left corner to the frame color (about 700 x 500 px). Absolute coordinates: the window, the title bar and the navigation (all
+ /// starting near the top left corner of the window) show one continuous gradient. Called on every theme change
+ /// and when the setting is changed.
+ ///
+ public static void ApplyWindowBrush()
+ {
+ var amount = GetAccentGlowAmount();
+
+ var resources = System.Windows.Application.Current.Resources;
+
+ resources[SurfaceWindowBrushKey] = CreateWindowBrush(amount);
+
+ // Inactive window: half of the glow (like the title bar of an inactive window in Windows)
+ resources[SurfaceWindowInactiveBrushKey] = CreateWindowBrush(amount / 2);
+ }
+
+ ///
+ /// The frame color, with a glow of the accent (amount > 0) in the top left corner.
+ ///
+ private static Brush CreateWindowBrush(double amount)
+ {
+ if (amount <= 0)
+ return CreateFrozenBrush(_frameColor, 1);
+
+ var gradient = new RadialGradientBrush
+ {
+ MappingMode = BrushMappingMode.Absolute,
+ Center = new System.Windows.Point(0, 0),
+ GradientOrigin = new System.Windows.Point(0, 0),
+ RadiusX = 700,
+ RadiusY = 500
+ };
+
+ gradient.GradientStops.Add(new GradientStop(ThemeVariants.Blend(_frameColor, _accentColor, amount), 0));
+ gradient.GradientStops.Add(new GradientStop(_frameColor, 1));
+ gradient.Freeze();
+
+ return gradient;
+ }
+
+ ///
+ /// Theme of MahApps (always available) if neither the theme nor the default theme can be applied.
+ ///
+ private const string FallbackTheme = "Dark.Teal";
+
+ ///
+ /// if the theme exists or could be created (additional themes / accents).
+ ///
+ private static bool IsAvailable(string name) =>
+ ThemeVariants.EnsureTheme(name) && ThemeManager.Current.GetTheme(name) != null;
+
///
/// Method to change the application theme (and accent).
///
/// Theme name as "theme.accent" to apply.
public static void ChangeTheme(string name)
{
- ThemeManager.Current.ChangeTheme(System.Windows.Application.Current, name);
+ // Additional themes / accents are created when they are used; if that fails (or the theme is unknown), fall back
+ // to the default theme instead of an exception - and if the default (an additional accent) can't be created
+ // either, to a theme of MahApps
+ if (!IsAvailable(name))
+ {
+ name = $"{GlobalStaticConfiguration.Appearance_Theme}.{GlobalStaticConfiguration.Appearance_Accent}";
+
+ if (!IsAvailable(name))
+ name = FallbackTheme;
+ }
+
+ var theme = ThemeManager.Current.ChangeTheme(System.Windows.Application.Current, name);
+
+ // Also if ThemeChanged wasn't raised (theme already applied)
+ ApplyThemeResources(theme);
}
///
@@ -138,35 +396,203 @@ public static void ChangeTheme(string theme, string accent)
}
///
- ///
+ /// Set the backgrounds of controls (e.g. icon buttons, ComboBox) for mouse over and pressed, the backgrounds of
+ /// (secondary) buttons, the frame of the window and the border of inputs for mouse over: the foreground color of
+ /// the theme with a low opacity, a subtle tint in every theme (also custom themes) instead of the light gray of
+ /// MahApps (Gray9, Gray7, Gray5), which stands out in the dark theme.
+ ///
+ /// Theme that was applied.
+ private static void ApplyControlStateBrushes(Theme theme)
+ {
+ var foreground = theme.Resources["MahApps.Colors.ThemeForeground"] is Color color ? color : Colors.Gray;
+
+ var appResources = System.Windows.Application.Current.Resources;
+
+ appResources[ControlMouseOverBrushKey] = CreateFrozenBrush(foreground, 0.08);
+ appResources[ControlPressedBrushKey] = CreateFrozenBrush(foreground, 0.12);
+ appResources[ControlBorderMouseOverBrushKey] = CreateFrozenBrush(foreground, 0.35);
+
+ appResources[ButtonBackgroundBrushKey] = CreateFrozenBrush(foreground, 0.06);
+ appResources[ButtonMouseOverBrushKey] = CreateFrozenBrush(foreground, 0.10);
+ appResources[ButtonPressedBrushKey] = CreateFrozenBrush(foreground, 0.14);
+
+ // Layers above the background of the buttons that fade in (DefaultButton): on the button background (6 %) the
+ // mouse over layer gives 10 %, with the pressed layer 14 % (on a transparent icon button with the 8 % mouse
+ // over layer about 12 %) - the same colors as the backgrounds above
+ appResources[ButtonMouseOverOverlayBrushKey] = CreateFrozenBrush(foreground, 1 - 0.90 / 0.94);
+ appResources[ControlPressedOverlayBrushKey] = CreateFrozenBrush(foreground, 1 - 0.86 / 0.90);
+
+ // Opaque (window background) around the boxes (theme background): the boxes look raised on the frame like in
+ // Visual Studio / Windows 11. Dark: the background 25 % darker (MahApps dark: #1C1C1C frame, #252525 box);
+ // light: 4 % of the foreground on the background (light gray frame, white boxes).
+ var background = theme.Resources["MahApps.Colors.ThemeBackground"] is Color backgroundColor
+ ? backgroundColor
+ : Colors.White;
+
+ // Additional themes can have an own frame (e.g. the light blue-gray of Mist)
+ var frame = ThemeVariants.GetFrame(theme) ?? (ThemeVariants.IsDark(theme)
+ ? ThemeVariants.Blend(background, Colors.Black, 0.25)
+ : ThemeVariants.Blend(background, foreground, 0.04));
+
+ appResources[SurfaceFrameBrushKey] = CreateFrozenBrush(frame, 1);
+
+ // Border of the boxes and cards: a low opacity of the foreground (softer than Gray8 in the light theme, the
+ // contrast comes from the frame)
+ appResources[SurfaceBorderBrushKey] = CreateFrozenBrush(foreground, 0.10);
+
+ // Border of submenus (MahApps), like the context menus and the other surfaces
+ appResources["MahApps.Brushes.SubMenu.Border"] = appResources[SurfaceBorderBrushKey];
+
+ // Selected item of the navigation: a light tint of the accent (mouse over stays the neutral tint)
+ var accent = theme.Resources["MahApps.Colors.Accent"] is Color accentColor ? accentColor : Colors.Gray;
+ appResources[NavigationSelectedBrushKey] = CreateFrozenBrush(accent, 0.15);
+
+ _frameColor = frame;
+ _accentColor = accent;
+ ApplyWindowBrush();
+
+ // Consoles (PuTTY, PowerShell): background of the box around them, the text a bit muted (like before:
+ // #BBBBBB on #252525), bold text in the foreground of the theme
+ ConsoleBackground = ToRgb(background);
+ ConsoleForeground =
+ ToRgb(ThemeVariants.Blend(background, foreground, ThemeVariants.IsDark(theme) ? 0.75 : 0.88));
+ ConsoleBoldForeground = ToRgb(foreground);
+
+ ApplyDataGridBrushes(theme, foreground);
+ ApplyToggleSwitchDisabledBrushes(theme);
+ }
+
+ ///
+ /// Disabled toggle switches keep their normal colors (MahApps: gray) and are dimmed by the style
+ /// (DefaultToggleSwitch), like the inputs and buttons. The template of MahApps uses the disabled brushes
+ /// via DynamicResource, so they are replaced by the normal brushes of the theme.
///
- ///
- private static void ApplyCustomThemeFixes(string theme)
+ /// Theme that was applied.
+ private static void ApplyToggleSwitchDisabledBrushes(Theme theme)
{
- // Don't apply on custom themes (only built-in light/dark themes)
- if (CustomThemes.Any(x => x.Name.Equals(theme, StringComparison.OrdinalIgnoreCase)))
+ var appResources = System.Windows.Application.Current.Resources;
+
+ foreach (var name in ToggleSwitchBrushNames)
+ {
+ var key = $"MahApps.Brushes.ToggleSwitch.{name}";
+
+ if (theme.Resources[key] is Brush brush)
+ appResources[$"{key}Disabled"] = brush;
+ }
+ }
+
+ ///
+ /// Brushes of the toggle switch (MahApps) that have a disabled variant (...Disabled).
+ ///
+ private static readonly string[] ToggleSwitchBrushNames =
+ [
+ "ContainerBackground", "ContentForeground", "HeaderForeground", "FillOff", "FillOn", "StrokeOff", "StrokeOn",
+ "KnobFillOff", "KnobFillOn"
+ ];
+
+ ///
+ /// Override the selection brushes of the data grids (MahApps uses them via DynamicResource): a tint of the accent
+ /// color with the normal text instead of the accent color with white text, a neutral tint on mouse over instead
+ /// of the accent color and no accent border around the selected row.
+ ///
+ /// Theme that was applied.
+ /// Foreground color of the theme.
+ private static void ApplyDataGridBrushes(Theme theme, Color foreground)
+ {
+ var accent = theme.Resources["MahApps.Colors.Accent"] is Color color ? color : Colors.Gray;
+
+ var appResources = System.Windows.Application.Current.Resources;
+
+ var foregroundBrush = CreateFrozenBrush(foreground, 1);
+ var transparentBrush = CreateFrozenBrush(Colors.Transparent, 1);
+
+ appResources["MahApps.Brushes.DataGrid.Selection.Background"] = CreateFrozenBrush(accent, 0.30);
+ appResources["MahApps.Brushes.DataGrid.Selection.Background.Inactive"] = CreateFrozenBrush(accent, 0.20);
+ appResources["MahApps.Brushes.DataGrid.Selection.Background.MouseOver"] = CreateFrozenBrush(foreground, 0.08);
+ appResources[DataGridSelectionMouseOverBrushKey] = CreateFrozenBrush(accent, 0.38);
+
+ appResources["MahApps.Brushes.DataGrid.Selection.BorderBrush"] = transparentBrush;
+ appResources["MahApps.Brushes.DataGrid.Selection.BorderBrush.Inactive"] = transparentBrush;
+ appResources["MahApps.Brushes.DataGrid.Selection.BorderBrush.MouseOver"] = transparentBrush;
+
+ appResources["MahApps.Brushes.DataGrid.Selection.Text"] = foregroundBrush;
+ appResources["MahApps.Brushes.DataGrid.Selection.Text.Inactive"] = foregroundBrush;
+ appResources["MahApps.Brushes.DataGrid.Selection.Text.MouseOver"] = foregroundBrush;
+ }
+
+ ///
+ /// Set the status colors (success, warning, error) for a dark or light theme (also custom themes, based on their
+ /// base color scheme). The dark colors are the original colors of the application (error brighter, the dark red
+ /// was hard to read as thin icon lines on dark backgrounds), the light ones are darker to be readable on a white
+ /// background (contrast ≥ 4:1).
+ ///
+ /// Theme that was applied.
+ private static void ApplyStatusBrushes(Theme theme)
+ {
+ var isDark = ThemeVariants.IsDark(theme);
+
+ var appResources = System.Windows.Application.Current.Resources;
+
+ appResources[StatusSuccessBrushKey] = CreateFrozenBrush(isDark ? "#badc58" : "#558b16");
+ appResources[StatusWarningBrushKey] = CreateFrozenBrush(isDark ? "#f1b856" : "#b06d00");
+ appResources[StatusErrorBrushKey] = CreateFrozenBrush(isDark ? "#e5605a" : "#b95353");
+ }
+
+ ///
+ /// Create a frozen brush from a color string (e.g. "#badc58").
+ ///
+ /// Color as string.
+ /// Frozen brush.
+ private static SolidColorBrush CreateFrozenBrush(string color)
+ {
+ return CreateFrozenBrush((Color)ColorConverter.ConvertFromString(color), 1);
+ }
+
+ ///
+ /// Create a frozen brush with the given color and opacity.
+ ///
+ /// Color of the brush.
+ /// Opacity of the brush (0 - 1).
+ /// Frozen brush.
+ private static SolidColorBrush CreateFrozenBrush(Color color, double opacity)
+ {
+ var brush = new SolidColorBrush(color) { Opacity = opacity };
+ brush.Freeze();
+
+ return brush;
+ }
+
+ ///
+ /// Apply the brush overrides of the built-in light / dark theme (not for custom themes).
+ ///
+ /// Theme that was applied.
+ private static void ApplyCustomThemeFixes(Theme theme)
+ {
+ // Don't apply on custom themes (only built-in and additional themes)
+ if (CustomThemes.Any(x => x.Name.Equals(theme.Name, StringComparison.OrdinalIgnoreCase)))
return;
// Get application resources
var appResources = System.Windows.Application.Current.Resources;
- // Remove any existing theme overrides
- appResources.MergedDictionaries.Remove(LightThemeOverrideDictionary);
- appResources.MergedDictionaries.Remove(DarkThemeOverrideDictionary);
+ // Remove the overrides of the previous theme
+ if (_themeOverrideDictionary != null)
+ appResources.MergedDictionaries.Remove(_themeOverrideDictionary);
+ // Light or dark by the background (also the additional themes, e.g. Mist, Midnight), not by the name. The grays
+ // are tinted like the other grays of an additional theme (e.g. the blue-gray of Mist)
+ var source = ThemeVariants.IsDark(theme) ? DarkThemeOverrideDictionary : LightThemeOverrideDictionary;
- // Theme name is in format "theme.accent"
- switch (theme.ToLowerInvariant().Split('.')[0])
- {
- case "light":
- appResources.MergedDictionaries.Add(LightThemeOverrideDictionary);
- break;
+ _themeOverrideDictionary = new ResourceDictionary();
- case "dark":
- appResources.MergedDictionaries.Add(DarkThemeOverrideDictionary);
- break;
+ foreach (var key in source.Keys)
+ {
+ if (source[key] is SolidColorBrush brush)
+ _themeOverrideDictionary[key] = CreateFrozenBrush(ThemeVariants.TintGray(brush.Color, theme), 1);
}
+ appResources.MergedDictionaries.Add(_themeOverrideDictionary);
+
// Refresh UI
foreach (Window window in System.Windows.Application.Current.Windows)
{
@@ -180,7 +606,7 @@ private static void ApplyCustomThemeFixes(string theme)
#region Events
private static void Current_ThemeChanged(object sender, ThemeChangedEventArgs e)
{
- ApplyCustomThemeFixes(e.NewTheme.Name);
+ ApplyThemeResources(e.NewTheme);
}
#endregion
}
diff --git a/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs b/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs
index 164f09a5b1..c44628327f 100644
--- a/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs
+++ b/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs
@@ -1,6 +1,7 @@
using DnsClient;
using Lextm.SharpSnmpLib.Messaging;
using NETworkManager.Models;
+using NETworkManager.Models.Appearance;
using NETworkManager.Models.Export;
using NETworkManager.Models.Network;
using NETworkManager.Models.PowerShell;
@@ -63,6 +64,9 @@ public static class GlobalStaticConfiguration
public static int Profile_EncryptionKeySize => 256;
public static int Profile_EncryptionIterations => 1000000;
+ // Window
+ public static int Window_MaxTabWidth => 300;
+
// Filter for file dialog
public static string ApplicationFileExtensionFilter => "Application (*.exe)|*.exe";
public static string PuTTYPrivateKeyFileExtensionFilter => "PuTTY Private Key Files (*.ppk)|*.ppk";
@@ -83,8 +87,13 @@ public static class GlobalStaticConfiguration
// Settings: Appearance
public static string Appearance_Theme => "Dark";
- public static string Appearance_Accent => "Lime";
+ // Mint (additional accent, see ThemeVariants): calmer than Lime, better contrast on light backgrounds. Only for new
+ // installations, the accent is saved in the settings.
+ public static string Appearance_Accent => "Mint";
public static bool Appearance_UseCustomTheme => false;
+ public static AnimationMode Appearance_Animations => AnimationMode.System;
+ // Medium for new installations (subtle, static); saved in the settings
+ public static AccentGlowIntensity Appearance_AccentGlowIntensity => AccentGlowIntensity.Medium;
// Settings: Network
public static bool Network_AddDNSSuffix => true;
diff --git a/Source/NETworkManager.Settings/NETworkManager.Settings.csproj b/Source/NETworkManager.Settings/NETworkManager.Settings.csproj
index f0fe80e440..44fe2e3086 100644
--- a/Source/NETworkManager.Settings/NETworkManager.Settings.csproj
+++ b/Source/NETworkManager.Settings/NETworkManager.Settings.csproj
@@ -53,11 +53,6 @@
-
-
-
-
-
diff --git a/Source/NETworkManager.Settings/PolicyInfo.cs b/Source/NETworkManager.Settings/PolicyInfo.cs
index 6d24437e36..895eb02e28 100644
--- a/Source/NETworkManager.Settings/PolicyInfo.cs
+++ b/Source/NETworkManager.Settings/PolicyInfo.cs
@@ -8,6 +8,9 @@ namespace NETworkManager.Settings;
///
public class PolicyInfo
{
+ [JsonPropertyName("Appearance_Animations")]
+ public bool? Appearance_Animations { get; set; }
+
[JsonPropertyName("Update_CheckForUpdatesAtStartup")]
public bool? Update_CheckForUpdatesAtStartup { get; set; }
diff --git a/Source/NETworkManager.Settings/PolicyManager.cs b/Source/NETworkManager.Settings/PolicyManager.cs
index f61fc15d89..41f91eac98 100644
--- a/Source/NETworkManager.Settings/PolicyManager.cs
+++ b/Source/NETworkManager.Settings/PolicyManager.cs
@@ -83,6 +83,7 @@ public static void Load()
Log.Info("System-wide policies loaded successfully.");
// Log enabled settings
+ Log.Info($"System-wide policy - Appearance_Animations: {Current.Appearance_Animations?.ToString() ?? "Not set"}");
Log.Info($"System-wide policy - Update_CheckForUpdatesAtStartup: {Current.Update_CheckForUpdatesAtStartup?.ToString() ?? "Not set"}");
Log.Info($"System-wide policy - Profiles_FolderLocation: {Current.Profiles_FolderLocation ?? "Not set"}");
Log.Info($"System-wide policy - Settings_FolderLocation: {Current.Settings_FolderLocation ?? "Not set"}");
diff --git a/Source/NETworkManager.Settings/SettingsInfo.cs b/Source/NETworkManager.Settings/SettingsInfo.cs
index 15dd18dcc3..67966df2a8 100644
--- a/Source/NETworkManager.Settings/SettingsInfo.cs
+++ b/Source/NETworkManager.Settings/SettingsInfo.cs
@@ -2,6 +2,7 @@
using Lextm.SharpSnmpLib.Messaging;
using NETworkManager.Controls;
using NETworkManager.Models;
+using NETworkManager.Models.Appearance;
using NETworkManager.Models.Export;
using NETworkManager.Models.Network;
using NETworkManager.Models.PowerShell;
@@ -249,6 +250,32 @@ public bool Window_MinimizeToTrayInsteadOfTaskbar
}
}
+ public bool Window_DynamicTabWidth
+ {
+ get;
+ set
+ {
+ if (value == field)
+ return;
+
+ field = value;
+ OnPropertyChanged();
+ }
+ }
+
+ public int Window_MaxTabWidth
+ {
+ get;
+ set
+ {
+ if (value == field)
+ return;
+
+ field = value;
+ OnPropertyChanged();
+ }
+ } = GlobalStaticConfiguration.Window_MaxTabWidth;
+
// TrayIcon
public bool TrayIcon_AlwaysShowIcon
@@ -333,6 +360,32 @@ public string Appearance_CustomThemeName
}
}
+ public AccentGlowIntensity Appearance_AccentGlowIntensity
+ {
+ get;
+ set
+ {
+ if (value == field)
+ return;
+
+ field = value;
+ OnPropertyChanged();
+ }
+ } = GlobalStaticConfiguration.Appearance_AccentGlowIntensity;
+
+ public AnimationMode Appearance_Animations
+ {
+ get;
+ set
+ {
+ if (value == field)
+ return;
+
+ field = value;
+ OnPropertyChanged();
+ }
+ } = GlobalStaticConfiguration.Appearance_Animations;
+
public bool Appearance_PowerShellModifyGlobalProfile
{
get;
diff --git a/Source/NETworkManager.Settings/SettingsViewManager.cs b/Source/NETworkManager.Settings/SettingsViewManager.cs
index b19c8e7eb7..03f7d87348 100644
--- a/Source/NETworkManager.Settings/SettingsViewManager.cs
+++ b/Source/NETworkManager.Settings/SettingsViewManager.cs
@@ -1,5 +1,5 @@
using System.Collections.Generic;
-using MahApps.Metro.IconPacks;
+using NETworkManager.Controls;
using NETworkManager.Models;
namespace NETworkManager.Settings;
@@ -21,28 +21,28 @@ public static class SettingsViewManager
public static List List =>
[
// General
- new(SettingsName.General, new PackIconModern { Kind = PackIconModernKind.Layer },
+ new(SettingsName.General, new LucideIcon { Kind = LucideIconKind.Layers },
SettingsGroup.General),
- new(SettingsName.Window, new PackIconOcticons { Kind = PackIconOcticonsKind.Browser },
+ new(SettingsName.Window, new LucideIcon { Kind = LucideIconKind.AppWindow },
SettingsGroup.General),
- new(SettingsName.Appearance, new PackIconMaterial { Kind = PackIconMaterialKind.Palette },
+ new(SettingsName.Appearance, new LucideIcon { Kind = LucideIconKind.Palette },
SettingsGroup.General),
- new(SettingsName.Language, new PackIconMaterial { Kind = PackIconMaterialKind.Translate },
+ new(SettingsName.Language, new LucideIcon { Kind = LucideIconKind.Languages },
SettingsGroup.General),
- new(SettingsName.Network, new PackIconModern { Kind = PackIconModernKind.Network },
+ new(SettingsName.Network, new LucideIcon { Kind = LucideIconKind.EthernetPort },
SettingsGroup.General),
- new(SettingsName.Status, new PackIconMaterial { Kind = PackIconMaterialKind.Pulse },
+ new(SettingsName.Status, new LucideIcon { Kind = LucideIconKind.Activity },
SettingsGroup.General),
new(SettingsName.HotKeys,
- new PackIconFontAwesome { Kind = PackIconFontAwesomeKind.KeyboardRegular },
+ new LucideIcon { Kind = LucideIconKind.Keyboard },
SettingsGroup.General),
- new(SettingsName.Autostart, new PackIconMaterial { Kind = PackIconMaterialKind.Power },
+ new(SettingsName.Autostart, new LucideIcon { Kind = LucideIconKind.Power },
SettingsGroup.General),
new(SettingsName.Update,
- new PackIconMaterial { Kind = PackIconMaterialKind.RocketLaunchOutline }, SettingsGroup.General),
+ new LucideIcon { Kind = LucideIconKind.Rocket }, SettingsGroup.General),
new(SettingsName.Profiles,
- new PackIconFontAwesome { Kind = PackIconFontAwesomeKind.ServerSolid }, SettingsGroup.General),
- new(SettingsName.Settings, new PackIconMaterialLight { Kind = PackIconMaterialLightKind.Cog },
+ new LucideIcon { Kind = LucideIconKind.Server }, SettingsGroup.General),
+ new(SettingsName.Settings, new LucideIcon { Kind = LucideIconKind.Settings },
SettingsGroup.General),
// Applications
diff --git a/Source/NETworkManager.Settings/ThemeVariants.cs b/Source/NETworkManager.Settings/ThemeVariants.cs
new file mode 100644
index 0000000000..b0c732d840
--- /dev/null
+++ b/Source/NETworkManager.Settings/ThemeVariants.cs
@@ -0,0 +1,299 @@
+using ControlzEx.Theming;
+using log4net;
+using MahApps.Metro.Theming;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Windows;
+using System.Windows.Media;
+
+namespace NETworkManager.Settings;
+
+///
+/// Additional themes (Black, Midnight, Steel, Indigo) and accents (Sky, Ocean, ...) of the application, in addition
+/// to the themes (Light, Dark) and accents of MahApps.
+///
+/// A theme is a copy of a MahApps theme with recolored resources (created when it is used, see
+/// ):
+///
+/// Theme: the dark / light theme with the same accent, the neutral grays (backgrounds, borders, disabled text) get the
+/// background of the theme - dark grays fully, lighter grays less, the text stays neutral. The accent colors are not
+/// changed.
+/// Accent: the theme with the accent Blue, the colors of the accent (all opacities) and the highlight are
+/// replaced.
+///
+///
+public static class ThemeVariants
+{
+ private static readonly ILog Log = LogManager.GetLogger(typeof(ThemeVariants));
+
+ ///
+ /// Additional theme: name, background of the boxes, the theme of MahApps it is based on (Dark or Light) and an
+ /// optional color of the frame (otherwise computed from the background, see ).
+ ///
+ public sealed record ThemeVariant(string Name, Color Background, string SourceBaseColorScheme, Color? Frame = null);
+
+ ///
+ /// Additional themes: dark (Black, Midnight, Steel, Indigo) and dimmed light themes (Mist like the Blue theme
+ /// of Visual Studio, Soft, Paper) with an own, clearly visible frame.
+ ///
+ public static readonly IReadOnlyList Themes =
+ [
+ new("Black", Color.FromRgb(0x14, 0x14, 0x14), ThemeManager.BaseColorDark),
+ new("Midnight", Color.FromRgb(0x1C, 0x22, 0x30), ThemeManager.BaseColorDark),
+ new("Steel", Color.FromRgb(0x2A, 0x30, 0x38), ThemeManager.BaseColorDark),
+ new("Indigo", Color.FromRgb(0x1F, 0x1C, 0x2E), ThemeManager.BaseColorDark),
+ new("Mist", Color.FromRgb(0xF2, 0xF4, 0xF9), ThemeManager.BaseColorLight, Color.FromRgb(0xD6, 0xDB, 0xE9)),
+ new("Soft", Color.FromRgb(0xEC, 0xEC, 0xEC), ThemeManager.BaseColorLight, Color.FromRgb(0xDA, 0xDA, 0xDA)),
+ new("Paper", Color.FromRgb(0xF5, 0xF2, 0xEA), ThemeManager.BaseColorLight, Color.FromRgb(0xE3, 0xDE, 0xD3))
+ ];
+
+ ///
+ /// Additional accents (white text on them, like the accents of MahApps).
+ ///
+ public static readonly IReadOnlyList<(string Name, Color Color)> Accents =
+ [
+ ("Sky", Color.FromRgb(0x2E, 0x9C, 0xDB)),
+ ("Ocean", Color.FromRgb(0x0E, 0x7C, 0x86)),
+ ("Mint", Color.FromRgb(0x2A, 0xA8, 0x86)),
+ ("Rose", Color.FromRgb(0xD9, 0x4F, 0x82)),
+ ("Coral", Color.FromRgb(0xE8, 0x65, 0x4E)),
+ ("Gold", Color.FromRgb(0xC9, 0x96, 0x0C)),
+ ("Lavender", Color.FromRgb(0x8E, 0x72, 0xD6)),
+ ("Slate", Color.FromRgb(0x5A, 0x76, 0x8F)),
+ // Neutral gray for a colorless look (slightly cool: not treated as a neutral gray of a tinted theme)
+ ("Graphite", Color.FromRgb(0x6E, 0x76, 0x81))
+ ];
+
+ // Source of an accent (the accent Blue of MahApps)
+ private const string SourceColorScheme = "Blue";
+
+ // Neutral gray: difference of the channels up to this value
+ private const int NeutralTolerance = 8;
+
+ // Grays from this luminance (light grays, text) are not tinted
+ private const double TintEndLuminance = 0xC0;
+
+ ///
+ /// Creates and registers the theme (e.g. "Midnight.Teal", "Dark.Sky") in the if it
+ /// is an additional theme or accent and doesn't exist yet.
+ ///
+ /// Theme name as "theme.accent".
+ /// if the theme could not be created (the caller falls back to a theme of MahApps).
+ public static bool EnsureTheme(string name)
+ {
+ try
+ {
+ CreateTheme(name);
+
+ return true;
+ }
+ catch (Exception ex)
+ {
+ Log.Error($"Could not create the theme \"{name}\".", ex);
+
+ return false;
+ }
+ }
+
+ private static void CreateTheme(string name)
+ {
+ if (string.IsNullOrEmpty(name) || ThemeManager.Current.GetTheme(name) != null)
+ return;
+
+ var parts = name.Split('.');
+
+ if (parts.Length != 2)
+ return;
+
+ var (baseColorScheme, colorScheme) = (parts[0], parts[1]);
+
+ var theme = Themes.FirstOrDefault(x => x.Name == baseColorScheme);
+ var accent = Accents.FirstOrDefault(x => x.Name == colorScheme);
+
+ var isTheme = theme != null;
+ var isAccent = accent.Name != null;
+
+ if (!isTheme && !isAccent)
+ return;
+
+ var source = ThemeManager.Current.GetTheme(
+ $"{(isTheme ? theme.SourceBaseColorScheme : baseColorScheme)}.{(isAccent ? SourceColorScheme : colorScheme)}");
+
+ if (source == null)
+ return;
+
+ var resources = Copy(source);
+
+ if (isAccent)
+ RecolorAccent(resources, accent.Color);
+
+ if (isTheme)
+ RecolorBase(resources, theme.Background);
+
+ resources["Theme.Name"] = name;
+ resources["Theme.DisplayName"] = $"{colorScheme} ({baseColorScheme})";
+ resources["Theme.BaseColorScheme"] = baseColorScheme;
+ resources["Theme.ColorScheme"] = colorScheme;
+ resources["Theme.Origin"] = "NETworkManager";
+
+ ThemeManager.Current.AddLibraryTheme(new LibraryTheme(resources, MahAppsLibraryThemeProvider.DefaultInstance));
+ }
+
+ ///
+ /// Own frame color of an additional theme (e.g. the light blue-gray of Mist), otherwise .
+ ///
+ public static Color? GetFrame(Theme theme) =>
+ Themes.FirstOrDefault(x => x.Name == theme.BaseColorScheme)?.Frame;
+
+ ///
+ /// if the theme has a dark background (the additional themes are dark, also custom
+ /// themes are detected by their background).
+ ///
+ public static bool IsDark(Theme theme) =>
+ theme.Resources["MahApps.Colors.ThemeBackground"] is not Color background || IsDark(background);
+
+ ///
+ /// if the background color is dark (luminance below the middle). The one rule for light /
+ /// dark in the application (themes, overrides, charts).
+ ///
+ public static bool IsDark(Color background) => Luminance(background) < 128;
+
+ private static ResourceDictionary Copy(Theme source)
+ {
+ var copy = new ResourceDictionary();
+
+ foreach (var dictionary in source.GetAllResources())
+ foreach (var key in dictionary.Keys)
+ copy[key] = dictionary[key];
+
+ return copy;
+ }
+
+ private static void RecolorAccent(ResourceDictionary resources, Color accent)
+ {
+ if (resources["MahApps.Colors.AccentBase"] is not Color sourceAccent)
+ return;
+
+ var sourceHighlight = resources["MahApps.Colors.Highlight"] as Color?;
+
+ // Highlight (e.g. pressed): a bit darker than the accent
+ var highlight = Blend(accent, Colors.Black, 0.2);
+
+ Recolor(resources, color =>
+ {
+ if (SameRgb(color, sourceAccent))
+ return WithAlpha(accent, color.A);
+
+ if (sourceHighlight != null && SameRgb(color, sourceHighlight.Value))
+ return WithAlpha(highlight, color.A);
+
+ return color;
+ });
+ }
+
+ private static void RecolorBase(ResourceDictionary resources, Color background)
+ {
+ if (resources["MahApps.Colors.ThemeBackground"] is not Color sourceBackground)
+ return;
+
+ Recolor(resources, color => TintGray(color, sourceBackground, background));
+ }
+
+ ///
+ /// A neutral gray of the source theme tinted toward the background of the additional theme: fully at the
+ /// background, less for darker (black stays black) and lighter grays; other colors are not changed.
+ ///
+ private static Color TintGray(Color color, Color sourceBackground, Color background)
+ {
+ if (Math.Max(color.R, Math.Max(color.G, color.B)) - Math.Min(color.R, Math.Min(color.G, color.B)) >
+ NeutralTolerance)
+ return color;
+
+ var sourceLuminance = Luminance(sourceBackground);
+ var luminance = Luminance(color);
+
+ var weight = luminance <= sourceLuminance
+ ? sourceLuminance <= 0 ? 1 : luminance / sourceLuminance
+ : Math.Clamp(1 - (luminance - sourceLuminance) / (TintEndLuminance - sourceLuminance), 0, 1);
+
+ if (weight <= 0)
+ return color;
+
+ return Color.FromArgb(color.A,
+ Shift(color.R, background.R - sourceBackground.R, weight),
+ Shift(color.G, background.G - sourceBackground.G, weight),
+ Shift(color.B, background.B - sourceBackground.B, weight));
+ }
+
+ ///
+ /// A neutral gray (e.g. of the light / dark overrides of ) tinted like the grays of
+ /// the theme, if it is an additional theme (e.g. Mist); otherwise the color itself.
+ ///
+ /// Neutral gray for the theme of MahApps the theme is based on.
+ /// Theme that is applied.
+ internal static Color TintGray(Color color, Theme theme)
+ {
+ var variant = Themes.FirstOrDefault(x => x.Name == theme.BaseColorScheme);
+
+ if (variant == null ||
+ ThemeManager.Current.GetTheme($"{variant.SourceBaseColorScheme}.{SourceColorScheme}")?.Resources[
+ "MahApps.Colors.ThemeBackground"] is not Color sourceBackground)
+ return color;
+
+ return TintGray(color, sourceBackground, variant.Background);
+ }
+
+ ///
+ /// Replaces the colors of all colors and brushes (solid and gradient) in the resources.
+ ///
+ private static void Recolor(ResourceDictionary resources, Func map)
+ {
+ foreach (var key in resources.Keys.Cast