From 94088eec2c2b1bcf550fa0445bfbc45e5d5345ca Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:46:44 +0100 Subject: [PATCH 001/232] Design: disabled inputs dimmed instead of a white overlay (D1.1) MahApps draws DisabledVisualElement over a disabled ComboBox, TextBox, PasswordBox and NumericUpDown, filled with MahApps.Brushes.Control.Disabled (#A5FFFFFF in every theme) - a light gray veil, worst in the dark theme (e.g. inputs disabled while a scan runs). The default styles hide the overlay (brush transparent in Style.Resources, also for custom themes) and set Opacity 0.55 instead, like DisabledTextBlock and the MahApps DropDownButton. Co-Authored-By: Claude Opus 5.5 --- .../Resources/Styles/ComboBoxStyles.xaml | 10 ++++++++ .../Resources/Styles/NumericUpDownStyles.xaml | 9 +++++++ .../Resources/Styles/PasswordBoxStyles.xaml | 7 ++++++ .../Resources/Styles/TextBoxStyles.xaml | 25 +++++++++++++++++++ 4 files changed, 51 insertions(+) diff --git a/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml b/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml index 568f649f88..bff364fe36 100644 --- a/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml @@ -4,11 +4,21 @@ xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters"> @@ -20,6 +29,10 @@ @@ -50,6 +66,10 @@ \ No newline at end of file From f4bcc3c1fadaa7de0f59beafd3a00bacaa2ee456 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:46:51 +0100 Subject: [PATCH 002/232] Design: disabled buttons dimmed instead of a gray fill (D1.2) DefaultButton (and HighlightedButton, ImageButton, ... based on it) set the background to Gray8 when disabled, a highlighted button lost its accent and MahApps Flat set the text to Gray2. Keep background and foreground and dim the button (Opacity 0.55), like the inputs (D1.1). Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/Resources/Styles/ButtonStyles.xaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/NETworkManager/Resources/Styles/ButtonStyles.xaml b/Source/NETworkManager/Resources/Styles/ButtonStyles.xaml index 2af71e7374..e169a539b8 100644 --- a/Source/NETworkManager/Resources/Styles/ButtonStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ButtonStyles.xaml @@ -9,8 +9,11 @@ + - + + From fb00cb2993980656dc187818be048aaba2dc760a Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:47:03 +0100 Subject: [PATCH 003/232] Design: remove the local disabled workaround of the profile file ComboBox (D1.3) The title bar ComboBox overrode MahApps.Brushes.Control.Disabled with Gray8 to soften the overlay. DefaultComboBox now hides the overlay and dims the control (D1.1), the override would bring the gray veil back. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/MainWindow.xaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index c844512895..0890542794 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -147,10 +147,6 @@ Focusable="False" VerticalAlignment="Center" Height="30"> - - - - From 049308965415a70983d19d8aeff18a83a0f198bb Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:47:48 +0100 Subject: [PATCH 004/232] Design: changelog for the disabled states (D1) Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 34f264e4ff..de400cd2ad 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -69,6 +69,7 @@ Release date: **xx.xx.2026** - Actions that require elevated rights now show a tooltip with the reason when they are disabled because the application is not running as administrator (e.g. **Apply**, **Flush DNS cache** and **Release & Renew** in **Network Interface**, the context menu and **Add entry...** in **Hosts File Editor**, **Firewall** and **Neighbor Table**, and **Capture** in **Discovery Protocol**). [#3626](https://github.com/BornToBeRoot/NETworkManager/pull/3626) - The collapsed/expanded state of profile groups (e.g. **linux-server**) is now remembered per profile file and shared across all tools, instead of resetting every time you switch tools or restart the application. [#3539](https://github.com/BornToBeRoot/NETworkManager/pull/3539) - The **Experimental features** setting in **Settings > Update** is removed: features in testing are marked with a **Beta** label at their own setting instead (e.g. **Read Windows host information** of the **IP Scanner**). [#3691](https://github.com/BornToBeRoot/NETworkManager/pull/3691) +- Disabled inputs and buttons (e.g. while a scan or refresh is running) are dimmed instead of covered by a light gray overlay (especially visible in the dark theme); disabled buttons keep their color. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From 9bcc7ef91a1921cc5be4732111e6c9e0734fc33a Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:55:52 +0100 Subject: [PATCH 005/232] Design: subtle mouse over / pressed background for buttons (D1.6) AppearanceManager sets Brushes.Control.MouseOver / Brushes.Control.Pressed on every theme change (also custom themes): the theme foreground with 8 % / 12 % opacity. DefaultButton uses them instead of Gray10 / Gray9 (Gray9 = #5EC9C9C9, a light gray when a button is clicked in the dark theme). Co-Authored-By: Claude Opus 5.5 --- .../AppearanceManager.cs | 45 ++++++++++++++++++- .../Resources/Styles/ButtonStyles.xaml | 5 ++- 2 files changed, 46 insertions(+), 4 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index c8c8741b7e..ca00911671 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -36,6 +36,16 @@ 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"; + /// /// Name of the folder inside the application directory where the custom themes are stored. /// @@ -138,9 +148,39 @@ public static void ChangeTheme(string theme, string accent) } /// - /// + /// Set the backgrounds of controls (e.g. buttons, ComboBox) for mouse over and pressed: 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); + } + + /// + /// 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 name as "theme.accent". private static void ApplyCustomThemeFixes(string theme) { // Don't apply on custom themes (only built-in light/dark themes) @@ -180,6 +220,7 @@ private static void ApplyCustomThemeFixes(string theme) #region Events private static void Current_ThemeChanged(object sender, ThemeChangedEventArgs e) { + ApplyControlStateBrushes(e.NewTheme); ApplyCustomThemeFixes(e.NewTheme.Name); } #endregion diff --git a/Source/NETworkManager/Resources/Styles/ButtonStyles.xaml b/Source/NETworkManager/Resources/Styles/ButtonStyles.xaml index e169a539b8..a11d9710d8 100644 --- a/Source/NETworkManager/Resources/Styles/ButtonStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ButtonStyles.xaml @@ -15,11 +15,12 @@ + - + - + From d315d56fdc8de83969163fbbd9309ff45bd5f646 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:55:52 +0100 Subject: [PATCH 006/232] Design: subtle mouse over / pressed background for ComboBox (D1.7) Not editable: mouse over uses Brushes.Control.MouseOver instead of Gray9 (style trigger, wins over the template trigger). The drop-down toggle (copy of MahApps.Styles.ToggleButton.ComboBoxDropDown 2.4.11 in the Style.Resources of DefaultComboBox) uses the subtle brushes instead of Gray5 (arrow mouse over), Gray3 / Gray7 (pressed). Co-Authored-By: Claude Opus 5.5 --- .../Resources/Styles/ComboBoxStyles.xaml | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml b/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml index bff364fe36..0694590758 100644 --- a/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml @@ -3,11 +3,75 @@ xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters"> + + @@ -15,6 +79,15 @@ + + + + + + + + From c2f6a09f59ce2d5c8ad93a026a13fbbaf61226fb Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:56:04 +0100 Subject: [PATCH 007/232] Design: changelog for the mouse over / pressed background (D1) Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index de400cd2ad..d7867a8b3f 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -69,7 +69,7 @@ Release date: **xx.xx.2026** - Actions that require elevated rights now show a tooltip with the reason when they are disabled because the application is not running as administrator (e.g. **Apply**, **Flush DNS cache** and **Release & Renew** in **Network Interface**, the context menu and **Add entry...** in **Hosts File Editor**, **Firewall** and **Neighbor Table**, and **Capture** in **Discovery Protocol**). [#3626](https://github.com/BornToBeRoot/NETworkManager/pull/3626) - The collapsed/expanded state of profile groups (e.g. **linux-server**) is now remembered per profile file and shared across all tools, instead of resetting every time you switch tools or restart the application. [#3539](https://github.com/BornToBeRoot/NETworkManager/pull/3539) - The **Experimental features** setting in **Settings > Update** is removed: features in testing are marked with a **Beta** label at their own setting instead (e.g. **Read Windows host information** of the **IP Scanner**). [#3691](https://github.com/BornToBeRoot/NETworkManager/pull/3691) -- Disabled inputs and buttons (e.g. while a scan or refresh is running) are dimmed instead of covered by a light gray overlay (especially visible in the dark theme); disabled buttons keep their color. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Disabled inputs and buttons (e.g. while a scan or refresh is running) are dimmed instead of covered by a light gray overlay (especially visible in the dark theme); disabled buttons keep their color. Buttons and drop-downs (e.g. the adapter in **WiFi**) use a subtle background when the mouse is over them or they are clicked instead of a light gray. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From c37061f4728897a1b3c24f410ca7906e63c81a4d Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:58:26 +0100 Subject: [PATCH 008/232] Fix: read-only ComboBox can't change its value while a tool is running (D1.8) About 25 inputs set IsReadOnly="{Binding IsRunning}" (IP Scanner, Port Scanner, Ping Monitor, Traceroute, DNS Lookup, SNMP, Whois, ...). IsReadOnly only blocks typing: the history could still be selected via the drop-down, Up/Down, Page Up/Down, F4 or Alt+Up/Down, and on a non-editable ComboBox (SNMP version / mode) it had no effect at all. New ComboBoxReadOnlyBehavior (enabled in DefaultComboBox) blocks these keys and typing to select (not editable) while read-only and closes the drop-down if it is opened anyway. The drop-down toggle is not hit-test visible while read-only (arrow dimmed), the mouse over background is not shown. The ComboBox keeps the focus, the text can be selected and copied; Tab, Enter and Esc (cancel) still work. Co-Authored-By: Claude Opus 5.5 --- .../ComboBoxReadOnlyBehavior.cs | 94 +++++++++++++++++++ .../Resources/Styles/ComboBoxStyles.xaml | 8 ++ Website/docs/changelog/next-release.md | 1 + 3 files changed, 103 insertions(+) create mode 100644 Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs diff --git a/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs b/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs new file mode 100644 index 0000000000..23248cbd2e --- /dev/null +++ b/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs @@ -0,0 +1,94 @@ +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 +{ + 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.PreviewKeyDown += ComboBox_PreviewKeyDown; + comboBox.PreviewTextInput += ComboBox_PreviewTextInput; + comboBox.DropDownOpened += ComboBox_DropDownOpened; + } + else + { + comboBox.PreviewKeyDown -= ComboBox_PreviewKeyDown; + 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) + return; + + var key = e.Key == Key.System ? e.SystemKey : e.Key; + + switch (key) + { + // Select another entry or open the drop-down (F4, Alt + Up / Down) + case Key.Up: + case Key.Down: + case Key.PageUp: + case Key.PageDown: + case Key.F4: + 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/Resources/Styles/ComboBoxStyles.xaml b/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml index 0694590758..7e69b28d10 100644 --- a/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml @@ -67,6 +67,12 @@ + + + + + @@ -78,12 +84,14 @@ + + diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index d7867a8b3f..16a50f75f3 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -277,6 +277,7 @@ Release date: **xx.xx.2026** ## Bug Fixes +- Fixed that the input of a running tool (e.g. the host of the **IP Scanner**, **Port Scanner**, **Ping Monitor**, **Traceroute** or **DNS Lookup**, the version / mode of **SNMP**) could still be changed by selecting an entry of the history (drop-down, `Up`/`Down`, `F4`). The input stays read-only while the tool is running, the text can still be selected and copied. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Fixed changes to lists in the settings (e.g. query histories, port profiles, custom commands) not being saved if no other setting was changed in the same session. This happened since the settings are stored as JSON. [#3607](https://github.com/BornToBeRoot/NETworkManager/pull/3607) - Fixed the profile search (profile list in the tools, **Profiles** settings and import result) filtering the profiles while still typing. The profiles are now filtered once after the user stopped typing, instead of every 750 ms after the first key press. [#3638](https://github.com/BornToBeRoot/NETworkManager/pull/3638) - Fixed the application list not scrolling to the selected application if it was opened from somewhere else (e.g. from the **Dashboard**, another application or the run command). [#3644](https://github.com/BornToBeRoot/NETworkManager/pull/3644) From 953764ec4e359803078ee8ae300ae13f0976593a Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:01:37 +0100 Subject: [PATCH 009/232] Fix: Up/Down still selected another entry of a read-only editable ComboBox (D1.8) An editable ComboBox selects the next / previous entry in its own OnPreviewKeyDown, which runs before handlers added to the instance. Block the keys in a class handler of ComboBox (runs before it), only for ComboBoxes with PreventSelectionWhenReadOnly. Co-Authored-By: Claude Opus 5.5 --- .../ComboBoxReadOnlyBehavior.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs b/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs index 23248cbd2e..eebe0b9ff2 100644 --- a/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs +++ b/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs @@ -19,6 +19,16 @@ namespace NETworkManager.Controls; /// 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", @@ -40,13 +50,11 @@ private static void OnPreventSelectionWhenReadOnlyChanged(DependencyObject d, if ((bool)e.NewValue) { - comboBox.PreviewKeyDown += ComboBox_PreviewKeyDown; comboBox.PreviewTextInput += ComboBox_PreviewTextInput; comboBox.DropDownOpened += ComboBox_DropDownOpened; } else { - comboBox.PreviewKeyDown -= ComboBox_PreviewKeyDown; comboBox.PreviewTextInput -= ComboBox_PreviewTextInput; comboBox.DropDownOpened -= ComboBox_DropDownOpened; } @@ -54,7 +62,7 @@ private static void OnPreventSelectionWhenReadOnlyChanged(DependencyObject d, private static void ComboBox_PreviewKeyDown(object sender, KeyEventArgs e) { - if (sender is not ComboBox { IsReadOnly: true } comboBox) + if (sender is not ComboBox { IsReadOnly: true } comboBox || !GetPreventSelectionWhenReadOnly(comboBox)) return; var key = e.Key == Key.System ? e.SystemKey : e.Key; From b3cffa87bec9da8709be1fc527366f9345dc9373 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:07:03 +0100 Subject: [PATCH 010/232] Design: status colors as theme resources (D2.1) AppearanceManager sets Brushes.Status.Success / Warning / Error on every theme change (also custom themes, by their base color scheme). Dark keeps the colors of the application (#badc58, #f1b856, #b95353), light uses a darker green (#558b16) and orange (#b06d00) - the old ones had a contrast of 1.6:1 / 1.8:1 on white. Error stays #b95353 (4.75:1 / 3.2:1). Replaces the hard-coded colors in the styles (status / help rectangles, error text), the validation template, the views (IP Scanner, Port Scanner, Ping Monitor, WiFi, Firewall, profile import, language, run command), the close button / menu item of the main window and the notification window. Chart / map colors are unchanged. Co-Authored-By: Claude Opus 5.5 --- .../AppearanceManager.cs | 43 +++++++++++++++++++ Source/NETworkManager/MainWindow.xaml | 4 +- .../NETworkManager/NotificationWindow.xaml.cs | 28 ++++++++---- .../Resources/Styles/RectangleStyles.xaml | 18 ++++---- .../Resources/Styles/TextBlockStyles.xaml | 2 +- .../Templates/ValidationErrorTemplates.xaml | 4 +- Source/NETworkManager/Views/FirewallView.xaml | 8 ++-- .../NETworkManager/Views/IPScannerView.xaml | 10 ++--- .../ImportProfilesResultChildWindow.xaml | 8 ++-- .../NETworkManager/Views/PingMonitorView.xaml | 2 +- .../NETworkManager/Views/PortScannerView.xaml | 4 +- .../Views/RunCommandChildWindow.xaml | 2 +- .../Views/SettingsLanguageView.xaml | 6 +-- Source/NETworkManager/Views/WiFiView.xaml | 8 ++-- 14 files changed, 101 insertions(+), 46 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index ca00911671..bc789418d7 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -46,6 +46,21 @@ public static class AppearanceManager /// public const string ControlPressedBrushKey = "Brushes.Control.Pressed"; + /// + /// 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. /// @@ -163,6 +178,33 @@ private static void ApplyControlStateBrushes(Theme theme) appResources[ControlPressedBrushKey] = CreateFrozenBrush(foreground, 0.12); } + /// + /// 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, 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 = theme.BaseColorScheme == ThemeManager.BaseColorDark; + + var appResources = System.Windows.Application.Current.Resources; + + appResources[StatusSuccessBrushKey] = CreateFrozenBrush(isDark ? "#badc58" : "#558b16"); + appResources[StatusWarningBrushKey] = CreateFrozenBrush(isDark ? "#f1b856" : "#b06d00"); + appResources[StatusErrorBrushKey] = CreateFrozenBrush("#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. /// @@ -221,6 +263,7 @@ private static void ApplyCustomThemeFixes(string theme) private static void Current_ThemeChanged(object sender, ThemeChangedEventArgs e) { ApplyControlStateBrushes(e.NewTheme); + ApplyStatusBrushes(e.NewTheme); ApplyCustomThemeFixes(e.NewTheme.Name); } #endregion diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index 0890542794..be59141b4d 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -64,7 +64,7 @@ - + @@ -240,7 +240,7 @@ - + diff --git a/Source/NETworkManager/NotificationWindow.xaml.cs b/Source/NETworkManager/NotificationWindow.xaml.cs index a315eed52d..35837a735b 100644 --- a/Source/NETworkManager/NotificationWindow.xaml.cs +++ b/Source/NETworkManager/NotificationWindow.xaml.cs @@ -1,6 +1,7 @@ using MahApps.Metro.IconPacks; using NETworkManager.Localization; using NETworkManager.Models; +using NETworkManager.Settings; using NETworkManager.Utilities; using System; using System.Collections.Generic; @@ -133,10 +134,18 @@ private void ShowMainWindow() #region Methods - // Colors of the application (status icons, "Since last scan" of the scanners) - private static readonly Color UpColor = (Color)ColorConverter.ConvertFromString("#badc58"); - private static readonly Color DownColor = (Color)ColorConverter.ConvertFromString("#b95353"); - private static readonly Color ChangedColor = (Color)ColorConverter.ConvertFromString("#f1b856"); + /// + /// Gets a status color of the current theme (status icons, "Since last scan" of the scanners), see + /// . + /// + /// Resource key of the status brush. + /// Color of the brush, gray if it is not found. + private static Color GetStatusColor(string key) + { + return System.Windows.Application.Current.TryFindResource(key) is SolidColorBrush brush + ? brush.Color + : Colors.Gray; + } /// /// Gets the icon and its brush of a status: up green, down red, up and down half green / half red (split along the @@ -167,16 +176,19 @@ private static (PackIconMaterialKind kind, Brush brush) GetStatusIcon(Notificati /// Frozen brush. private static Brush GetStatusBrush(NotificationStatus status) { + var upColor = GetStatusColor(AppearanceManager.StatusSuccessBrushKey); + var downColor = GetStatusColor(AppearanceManager.StatusErrorBrushKey); + Brush brush = status switch { - NotificationStatus.Up => new SolidColorBrush(UpColor), - NotificationStatus.Down => new SolidColorBrush(DownColor), + NotificationStatus.Up => new SolidColorBrush(upColor), + NotificationStatus.Down => new SolidColorBrush(downColor), NotificationStatus.UpAndDown => new LinearGradientBrush(new GradientStopCollection { // Two stops at the same offset: a sharp diagonal edge instead of a gradient - new(UpColor, 0), new(UpColor, 0.5), new(DownColor, 0.5), new(DownColor, 1) + new(upColor, 0), new(upColor, 0.5), new(downColor, 0.5), new(downColor, 1) }, new Point(0, 0), new Point(1, 1)), - _ => new SolidColorBrush(ChangedColor) + _ => new SolidColorBrush(GetStatusColor(AppearanceManager.StatusWarningBrushKey)) }; brush.Freeze(); diff --git a/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml index aa22eeb4bf..5aa67e2fed 100644 --- a/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml @@ -54,7 +54,7 @@ diff --git a/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml b/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml index c66593e4ab..e2ff71efaf 100644 --- a/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml +++ b/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml @@ -124,24 +124,24 @@ - + - + - + - + diff --git a/Source/NETworkManager/Views/PingMonitorView.xaml b/Source/NETworkManager/Views/PingMonitorView.xaml index 8f7936acbb..3f85602379 100644 --- a/Source/NETworkManager/Views/PingMonitorView.xaml +++ b/Source/NETworkManager/Views/PingMonitorView.xaml @@ -118,7 +118,7 @@ - + diff --git a/Source/NETworkManager/Views/PortScannerView.xaml b/Source/NETworkManager/Views/PortScannerView.xaml index 21c140b4ae..2df6c7065f 100644 --- a/Source/NETworkManager/Views/PortScannerView.xaml +++ b/Source/NETworkManager/Views/PortScannerView.xaml @@ -942,13 +942,13 @@ - + - + diff --git a/Source/NETworkManager/Views/RunCommandChildWindow.xaml b/Source/NETworkManager/Views/RunCommandChildWindow.xaml index 0f5f3a4855..ef5024c7a3 100644 --- a/Source/NETworkManager/Views/RunCommandChildWindow.xaml +++ b/Source/NETworkManager/Views/RunCommandChildWindow.xaml @@ -127,7 +127,7 @@ diff --git a/Source/NETworkManager/Views/SettingsLanguageView.xaml b/Source/NETworkManager/Views/SettingsLanguageView.xaml index 82a8bc9396..904a239b93 100644 --- a/Source/NETworkManager/Views/SettingsLanguageView.xaml +++ b/Source/NETworkManager/Views/SettingsLanguageView.xaml @@ -56,7 +56,7 @@ - @@ -68,12 +68,12 @@ diff --git a/Source/NETworkManager/Views/WiFiView.xaml b/Source/NETworkManager/Views/WiFiView.xaml index 84c3428540..e93a50515d 100644 --- a/Source/NETworkManager/Views/WiFiView.xaml +++ b/Source/NETworkManager/Views/WiFiView.xaml @@ -702,7 +702,7 @@ - + + Value="{DynamicResource Brushes.Status.Error}" /> - + + Value="{DynamicResource Brushes.Status.Warning}" /> From 956c0520a5a4cc77e4b6b9703f8f4d6f04e1dcbf Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:07:36 +0100 Subject: [PATCH 011/232] Design: monospace font as resource, Cascadia Mono with Consolas fallback (D2.2) New Resources/Styles/Theme.xaml (theme-independent design resources, merged before the styles) with Fonts.Family.Mono = "Cascadia Mono, Consolas": Cascadia Mono ships with Windows 11, Windows 10 falls back to Consolas. Used instead of the hard-coded Consolas (ConsoleTextBlock, ConsoleTextBox, run command, Network Interface). The fonts of PowerShell and PuTTY (console settings) are unchanged. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/App.xaml | 2 ++ .../Resources/Styles/TextBlockStyles.xaml | 2 +- .../Resources/Styles/TextBoxStyles.xaml | 2 +- .../NETworkManager/Resources/Styles/Theme.xaml | 11 +++++++++++ .../Views/NetworkInterfaceView.xaml | 2 +- .../Views/RunCommandChildWindow.xaml | 16 ++++++++-------- 6 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 Source/NETworkManager/Resources/Styles/Theme.xaml diff --git a/Source/NETworkManager/App.xaml b/Source/NETworkManager/App.xaml index 730d0e4469..39a92ae774 100644 --- a/Source/NETworkManager/App.xaml +++ b/Source/NETworkManager/App.xaml @@ -19,6 +19,8 @@ Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.FlatSlider.xaml" /> + + diff --git a/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml index 813d886778..2eb4201738 100644 --- a/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml @@ -60,7 +60,7 @@ diff --git a/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml b/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml index 99154eb2ec..7700ced0d5 100644 --- a/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml @@ -25,7 +25,7 @@ @@ -104,7 +104,7 @@ @@ -164,7 +164,7 @@ @@ -332,7 +332,7 @@ Date: Mon, 9 Nov 2026 23:07:42 +0100 Subject: [PATCH 012/232] Design: changelog for the status colors and the monospace font (D2) Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 16a50f75f3..b06b6aaeac 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -70,6 +70,7 @@ Release date: **xx.xx.2026** - The collapsed/expanded state of profile groups (e.g. **linux-server**) is now remembered per profile file and shared across all tools, instead of resetting every time you switch tools or restart the application. [#3539](https://github.com/BornToBeRoot/NETworkManager/pull/3539) - The **Experimental features** setting in **Settings > Update** is removed: features in testing are marked with a **Beta** label at their own setting instead (e.g. **Read Windows host information** of the **IP Scanner**). [#3691](https://github.com/BornToBeRoot/NETworkManager/pull/3691) - Disabled inputs and buttons (e.g. while a scan or refresh is running) are dimmed instead of covered by a light gray overlay (especially visible in the dark theme); disabled buttons keep their color. Buttons and drop-downs (e.g. the adapter in **WiFi**) use a subtle background when the mouse is over them or they are clicked instead of a light gray. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The status colors (e.g. host up / down, port open / closed, changes since the last scan, warnings and errors) are darker in the light theme and easier to read on the white background. Monospace text (e.g. the run command, console output) uses **Cascadia Mono** on Windows 11 (Consolas on Windows 10). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From b085441bf464cfe20fe064771bf55f557463fa6c Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:13:24 +0100 Subject: [PATCH 013/232] Design: monospace font for addresses and technical values in data grids (D2.3) IP / MAC addresses, hostnames, ports, BSSID, OIDs, servers, subnets, DNS records and RDAP ranges / digests use Fonts.Family.Mono (Cascadia Mono, Consolas) in the grids of IP Scanner, Port Scanner, Traceroute, DNS Lookup, SNTP Lookup, WiFi, Connections, Listeners, Neighbor Table, Firewall, Hosts File Editor, Subnet Calculator, Lookup, SNMP, RDAP, profiles, profile import result and the settings (DNS / SNTP servers, port profiles, OID profiles). Names, descriptions, vendors, states and times stay in the UI font. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/Views/ConnectionsView.xaml | 10 +++++----- .../NETworkManager/Views/DNSLookupSettingsView.xaml | 2 +- Source/NETworkManager/Views/DNSLookupView.xaml | 4 ++-- Source/NETworkManager/Views/FirewallView.xaml | 8 ++++---- Source/NETworkManager/Views/HostsFileEditorView.xaml | 4 ++-- Source/NETworkManager/Views/IPScannerView.xaml | 8 ++++---- .../Views/ImportProfilesResultChildWindow.xaml | 2 +- Source/NETworkManager/Views/ListenersView.xaml | 4 ++-- Source/NETworkManager/Views/LookupOUILookupView.xaml | 2 +- .../NETworkManager/Views/LookupPortLookupView.xaml | 2 +- Source/NETworkManager/Views/NeighborTableView.xaml | 4 ++-- .../Views/PortScannerSettingsView.xaml | 2 +- Source/NETworkManager/Views/PortScannerView.xaml | 6 +++--- Source/NETworkManager/Views/ProfilesView.xaml | 2 +- Source/NETworkManager/Views/RDAPView.xaml | 8 ++++---- .../Views/SNMPOIDProfilesChildWindow.xaml | 2 +- Source/NETworkManager/Views/SNMPSettingsView.xaml | 2 +- Source/NETworkManager/Views/SNMPView.xaml | 2 +- .../NETworkManager/Views/SNTPLookupSettingsView.xaml | 2 +- Source/NETworkManager/Views/SNTPLookupView.xaml | 4 ++-- .../ServerConnectionInfoProfileChildWindow.xaml | 4 ++-- .../Views/SubnetCalculatorSubnettingView.xaml | 12 ++++++------ Source/NETworkManager/Views/TracerouteView.xaml | 4 ++-- Source/NETworkManager/Views/WiFiView.xaml | 2 +- 24 files changed, 51 insertions(+), 51 deletions(-) diff --git a/Source/NETworkManager/Views/ConnectionsView.xaml b/Source/NETworkManager/Views/ConnectionsView.xaml index c58937708a..0fd8cd98a9 100644 --- a/Source/NETworkManager/Views/ConnectionsView.xaml +++ b/Source/NETworkManager/Views/ConnectionsView.xaml @@ -176,19 +176,19 @@ - - - - - - diff --git a/Source/NETworkManager/Views/DNSLookupView.xaml b/Source/NETworkManager/Views/DNSLookupView.xaml index 7a7bc6bf99..c6c0c1d49f 100644 --- a/Source/NETworkManager/Views/DNSLookupView.xaml +++ b/Source/NETworkManager/Views/DNSLookupView.xaml @@ -247,7 +247,7 @@ - @@ -263,7 +263,7 @@ Binding="{Binding Path=(network:DNSLookupRecordInfo.RecordType)}" SortMemberPath="RecordType" MinWidth="80" /> - diff --git a/Source/NETworkManager/Views/FirewallView.xaml b/Source/NETworkManager/Views/FirewallView.xaml index f8d33afce7..16c6655e70 100644 --- a/Source/NETworkManager/Views/FirewallView.xaml +++ b/Source/NETworkManager/Views/FirewallView.xaml @@ -567,7 +567,7 @@ MinWidth="80" /> - @@ -580,7 +580,7 @@ - @@ -593,7 +593,7 @@ - @@ -606,7 +606,7 @@ - diff --git a/Source/NETworkManager/Views/HostsFileEditorView.xaml b/Source/NETworkManager/Views/HostsFileEditorView.xaml index 16cbaa2f2a..0eefa1fb22 100644 --- a/Source/NETworkManager/Views/HostsFileEditorView.xaml +++ b/Source/NETworkManager/Views/HostsFileEditorView.xaml @@ -284,11 +284,11 @@ Binding="{Binding Path=(hostsFileEditor:HostsFileEntry.IsEnabled)}" SortMemberPath="IsEnabled" MinWidth="100" /> - - diff --git a/Source/NETworkManager/Views/IPScannerView.xaml b/Source/NETworkManager/Views/IPScannerView.xaml index 5a16fff9fc..75a5a8c98b 100644 --- a/Source/NETworkManager/Views/IPScannerView.xaml +++ b/Source/NETworkManager/Views/IPScannerView.xaml @@ -1107,11 +1107,11 @@ - - @@ -1231,7 +1231,7 @@ - @@ -1351,7 +1351,7 @@ - diff --git a/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml b/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml index e2ff71efaf..f644ed5e61 100644 --- a/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml +++ b/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml @@ -102,7 +102,7 @@ wpfHelpers:DataGridHelper.IsFillColumn="True"> - + diff --git a/Source/NETworkManager/Views/ListenersView.xaml b/Source/NETworkManager/Views/ListenersView.xaml index 8c41627d75..26147d84dd 100644 --- a/Source/NETworkManager/Views/ListenersView.xaml +++ b/Source/NETworkManager/Views/ListenersView.xaml @@ -148,11 +148,11 @@ Binding="{Binding (network:ListenerInfo.Protocol)}" SortMemberPath="Protocol" MinWidth="100" /> - - diff --git a/Source/NETworkManager/Views/LookupOUILookupView.xaml b/Source/NETworkManager/Views/LookupOUILookupView.xaml index e4d023c35d..9056caeb89 100644 --- a/Source/NETworkManager/Views/LookupOUILookupView.xaml +++ b/Source/NETworkManager/Views/LookupOUILookupView.xaml @@ -158,7 +158,7 @@ - diff --git a/Source/NETworkManager/Views/LookupPortLookupView.xaml b/Source/NETworkManager/Views/LookupPortLookupView.xaml index 91b237f774..3279019188 100644 --- a/Source/NETworkManager/Views/LookupPortLookupView.xaml +++ b/Source/NETworkManager/Views/LookupPortLookupView.xaml @@ -165,7 +165,7 @@ - - @@ -186,7 +186,7 @@ Binding="{Binding (network:NeighborInfo.InterfaceAlias)}" SortMemberPath="InterfaceAlias" MinWidth="200" /> - diff --git a/Source/NETworkManager/Views/PortScannerSettingsView.xaml b/Source/NETworkManager/Views/PortScannerSettingsView.xaml index f576851618..515d30c103 100644 --- a/Source/NETworkManager/Views/PortScannerSettingsView.xaml +++ b/Source/NETworkManager/Views/PortScannerSettingsView.xaml @@ -67,7 +67,7 @@ MinWidth="200" SortMemberPath="Name" Width="Auto" /> - diff --git a/Source/NETworkManager/Views/PortScannerView.xaml b/Source/NETworkManager/Views/PortScannerView.xaml index 2df6c7065f..d6804d7960 100644 --- a/Source/NETworkManager/Views/PortScannerView.xaml +++ b/Source/NETworkManager/Views/PortScannerView.xaml @@ -897,16 +897,16 @@ - - - diff --git a/Source/NETworkManager/Views/ProfilesView.xaml b/Source/NETworkManager/Views/ProfilesView.xaml index 1e5be34812..1343290480 100644 --- a/Source/NETworkManager/Views/ProfilesView.xaml +++ b/Source/NETworkManager/Views/ProfilesView.xaml @@ -417,7 +417,7 @@ - - @@ -325,7 +325,7 @@ Binding="{Binding Algorithm}" MinWidth="80" /> - @@ -355,7 +355,7 @@ Binding="{Binding Handle}" MinWidth="150" /> - @@ -388,7 +388,7 @@ Binding="{Binding Handle}" MinWidth="150" /> - diff --git a/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml b/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml index 990f59ffdc..4463b44283 100644 --- a/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml +++ b/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml @@ -38,7 +38,7 @@ Binding="{Binding Path=(network:SNMPOIDProfileInfo.Name)}" SortMemberPath="Name" MinWidth="150" /> - - - diff --git a/Source/NETworkManager/Views/SNTPLookupSettingsView.xaml b/Source/NETworkManager/Views/SNTPLookupSettingsView.xaml index 83e090960d..e8c4931d51 100644 --- a/Source/NETworkManager/Views/SNTPLookupSettingsView.xaml +++ b/Source/NETworkManager/Views/SNTPLookupSettingsView.xaml @@ -48,7 +48,7 @@ Binding="{Binding (network:ServerConnectionInfoProfile.Name)}" SortMemberPath="Name" MinWidth="200" /> - diff --git a/Source/NETworkManager/Views/SNTPLookupView.xaml b/Source/NETworkManager/Views/SNTPLookupView.xaml index da70ae96e9..501bb64ebe 100644 --- a/Source/NETworkManager/Views/SNTPLookupView.xaml +++ b/Source/NETworkManager/Views/SNTPLookupView.xaml @@ -195,11 +195,11 @@ - - diff --git a/Source/NETworkManager/Views/ServerConnectionInfoProfileChildWindow.xaml b/Source/NETworkManager/Views/ServerConnectionInfoProfileChildWindow.xaml index 119492eab3..bbd9889fee 100644 --- a/Source/NETworkManager/Views/ServerConnectionInfoProfileChildWindow.xaml +++ b/Source/NETworkManager/Views/ServerConnectionInfoProfileChildWindow.xaml @@ -84,11 +84,11 @@ - - diff --git a/Source/NETworkManager/Views/SubnetCalculatorSubnettingView.xaml b/Source/NETworkManager/Views/SubnetCalculatorSubnettingView.xaml index 39b61ba7ea..69c8bff2ed 100644 --- a/Source/NETworkManager/Views/SubnetCalculatorSubnettingView.xaml +++ b/Source/NETworkManager/Views/SubnetCalculatorSubnettingView.xaml @@ -219,29 +219,29 @@ - - - - - - diff --git a/Source/NETworkManager/Views/TracerouteView.xaml b/Source/NETworkManager/Views/TracerouteView.xaml index da2cef9fd7..fe84760c75 100644 --- a/Source/NETworkManager/Views/TracerouteView.xaml +++ b/Source/NETworkManager/Views/TracerouteView.xaml @@ -512,10 +512,10 @@ - - - From 26b27449366243cb761bed2d7ce08724336fc5d8 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:14:22 +0100 Subject: [PATCH 014/232] Design: monospace font for address / port inputs and raw output (D2.3) Inputs for hosts, IP / MAC addresses, subnets, gateways, DNS servers, ports, servers, OIDs, URLs and DNS suffixes use Fonts.Family.Mono - every input whose watermark is such an example (StaticStrings.Example*) in the tools, connect dialogs, profile / group dialogs and settings, plus the RDAP query, the SNMP OID and the Whois domain. Usernames, domains of credentials, paths, names, SSIDs and baud rates stay in the UI font. Raw output of Whois and RDAP (JSON) uses it too. Co-Authored-By: Claude Opus 5.5 --- .../Views/DNSLookupSettingsView.xaml | 2 +- .../NETworkManager/Views/DNSLookupView.xaml | 2 +- .../Views/DashboardSettingsView.xaml | 8 +-- .../Views/FirewallRuleChildWindow.xaml | 8 +-- .../Views/GroupChildWindow.xaml | 10 ++-- .../HostsFileEditorEntryChildWindow.xaml | 4 +- .../IPAddressAndSubnetmaskChildWindow.xaml | 4 +- .../NETworkManager/Views/IPAddressDialog.xaml | 2 +- .../Views/IPGeolocationView.xaml | 2 +- .../Views/IPScannerSettingsView.xaml | 4 +- .../NETworkManager/Views/IPScannerView.xaml | 2 +- .../Views/ImportAdComputersChildWindow.xaml | 2 +- .../Views/LookupOUILookupView.xaml | 2 +- .../Views/LookupPortLookupView.xaml | 2 +- .../NeighborTableAddEntryChildWindow.xaml | 4 +- .../Views/NetworkInterfaceView.xaml | 10 ++-- .../Views/PingMonitorHostView.xaml | 2 +- .../Views/PortProfileChildWindow.xaml | 4 +- .../NETworkManager/Views/PortScannerView.xaml | 4 +- .../Views/PowerShellConnectChildWindow.xaml | 2 +- .../Views/ProfileChildWindow.xaml | 56 +++++++++---------- .../Views/PuTTYConnectChildWindow.xaml | 4 +- .../Views/PuTTYSettingsView.xaml | 6 +- Source/NETworkManager/Views/RDAPView.xaml | 4 +- .../RemoteDesktopConnectChildWindow.xaml | 2 +- .../Views/RemoteDesktopSettingsView.xaml | 4 +- .../Views/SNMPOIDProfileChildWindow.xaml | 2 +- .../Views/SNMPSettingsView.xaml | 2 +- Source/NETworkManager/Views/SNMPView.xaml | 4 +- ...erverConnectionInfoProfileChildWindow.xaml | 2 +- .../Views/SettingsNetworkView.xaml | 2 +- .../Views/SubnetCalculatorCalculatorView.xaml | 2 +- .../Views/SubnetCalculatorSubnettingView.xaml | 4 +- .../Views/SubnetCalculatorWideSubnetView.xaml | 4 +- .../Views/TigerVNCConnectChildWindow.xaml | 4 +- .../Views/TigerVNCSettingsView.xaml | 2 +- .../NETworkManager/Views/TracerouteView.xaml | 2 +- .../Views/WakeOnLANSettingsView.xaml | 2 +- .../NETworkManager/Views/WakeOnLANView.xaml | 4 +- .../Views/WebConsoleConnectChildWindow.xaml | 2 +- Source/NETworkManager/Views/WhoisView.xaml | 4 +- 41 files changed, 99 insertions(+), 99 deletions(-) diff --git a/Source/NETworkManager/Views/DNSLookupSettingsView.xaml b/Source/NETworkManager/Views/DNSLookupSettingsView.xaml index d0109412a5..d8148b433d 100644 --- a/Source/NETworkManager/Views/DNSLookupSettingsView.xaml +++ b/Source/NETworkManager/Views/DNSLookupSettingsView.xaml @@ -98,7 +98,7 @@ + mah:TextBoxHelper.Watermark="{x:Static localization:StaticStrings.ExampleSuffix}" FontFamily="{StaticResource Fonts.Family.Mono}" Margin="0,0,0,10"> + + From db9f0516c6341278f93b83e7a11d291add449422 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:43:49 +0100 Subject: [PATCH 029/232] Design: gray focus border for inputs instead of accent (D3.3) TextBox (default, search, browse folder), ComboBox, PasswordBox and NumericUpDown use Gray5 while they have the focus, like the keyboard focus ring (D3.4). Co-Authored-By: Claude Opus 5.5 --- .../Resources/Styles/ComboBoxStyles.xaml | 5 +++-- .../Resources/Styles/NumericUpDownStyles.xaml | 2 +- .../Resources/Styles/PasswordBoxStyles.xaml | 5 +++-- .../Resources/Styles/TextBoxStyles.xaml | 12 +++++++----- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml b/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml index a82a5753ee..19ffe53918 100644 --- a/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml @@ -85,8 +85,9 @@ - - + + diff --git a/Source/NETworkManager/Resources/Styles/NumericUpDownStyles.xaml b/Source/NETworkManager/Resources/Styles/NumericUpDownStyles.xaml index 48dc8ecc48..d98fe6e313 100644 --- a/Source/NETworkManager/Resources/Styles/NumericUpDownStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/NumericUpDownStyles.xaml @@ -10,7 +10,7 @@ - + diff --git a/Source/NETworkManager/Resources/Styles/PasswordBoxStyles.xaml b/Source/NETworkManager/Resources/Styles/PasswordBoxStyles.xaml index d0cd586c45..1e9c0be629 100644 --- a/Source/NETworkManager/Resources/Styles/PasswordBoxStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/PasswordBoxStyles.xaml @@ -14,8 +14,9 @@ - - + + diff --git a/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml b/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml index 558bf1fb61..dcdaf22769 100644 --- a/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml @@ -9,8 +9,9 @@ - - + + @@ -39,8 +40,9 @@ - - + + @@ -79,7 +81,7 @@ - + From 40902e2412befe4773bbb74513c977d86d2237c1 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:43:49 +0100 Subject: [PATCH 030/232] Design: subtler scrollbar on mouse over, rounded thumb (D3) The scrollbar went from 25 % to 100 % opacity on mouse over and the MahApps thumb (Gray5) got a white overlay of 60 % (mouse over) / 80 % (drag) - almost white in the dark theme. Mouse over now 60 % opacity, own thumb style (MahApps.Styles.Thumb.ScrollBar in the Style.Resources, used by the MahApps template via DynamicResource): rounded (CornerRadius.Control), 80 % opacity, 100 % on mouse over / drag, no overlay. Co-Authored-By: Claude Opus 5.5 --- .../Resources/Styles/ScrollBarStyles.xaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Source/NETworkManager/Resources/Styles/ScrollBarStyles.xaml b/Source/NETworkManager/Resources/Styles/ScrollBarStyles.xaml index 096092d264..53c1f9e888 100644 --- a/Source/NETworkManager/Resources/Styles/ScrollBarStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ScrollBarStyles.xaml @@ -1,6 +1,37 @@  + @@ -15,6 +46,12 @@ Value="False"> + + + + From adbeb4ff77888ce68e99ba6460ede5975311c98e Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:43:49 +0100 Subject: [PATCH 031/232] Design: changelog for the gray focus and the scrollbar (D3) Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 3cdab62db8..1220999ade 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -71,7 +71,7 @@ Release date: **xx.xx.2026** - The **Experimental features** setting in **Settings > Update** is removed: features in testing are marked with a **Beta** label at their own setting instead (e.g. **Read Windows host information** of the **IP Scanner**). [#3691](https://github.com/BornToBeRoot/NETworkManager/pull/3691) - Disabled inputs and buttons (e.g. while a scan or refresh is running) are dimmed instead of covered by a light gray overlay (especially visible in the dark theme); disabled buttons keep their color. Buttons and drop-downs (e.g. the adapter in **WiFi**) use a subtle background when the mouse is over them or they are clicked instead of a light gray. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - The status colors (e.g. host up / down, port open / closed, changes since the last scan, warnings and errors) are darker in the light theme and easier to read on the white background. Monospace text uses **Cascadia Mono** on Windows 11 (Consolas on Windows 10): IP and MAC addresses, hostnames, ports, subnets and other technical values in the lists, inputs and details of all tools (e.g. **IP Scanner**, **Port Scanner**, **Network Interface**, **Subnet Calculator**), the run command and console output. Names, descriptions and labels keep the normal font. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- Buttons, inputs, tooltips and context menus have rounded corners. Buttons have a subtle background instead of a border and are narrower (min. width 100 instead of 150), icon buttons (e.g. next to the inputs) are transparent until the mouse is over them; the main action (e.g. **Scan**, **Connect**) keeps the accent color. Inputs show an accent-colored border while they have the focus and a slightly stronger border when the mouse is over them. Keyboard navigation (`Tab`) shows an accent-colored focus ring instead of a dotted rectangle. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Buttons, inputs, tooltips and context menus have rounded corners. Buttons have a subtle background instead of a border and are narrower (min. width 100 instead of 150), icon buttons (e.g. next to the inputs) are transparent until the mouse is over them; the main action (e.g. **Scan**, **Connect**) keeps the accent color. Inputs show a gray border while they have the focus and a slightly stronger border when the mouse is over them. Keyboard navigation (`Tab`) shows a gray focus ring instead of a dotted rectangle. Scrollbars have a rounded thumb and are less bright when the mouse is over them. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From 12cb5b5d97120a0fff70f1e6d6d7793ba7ff42a6 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:50:08 +0100 Subject: [PATCH 032/232] Design: rounded submenus of context menus (D3.5) Submenus (e.g. "Copy >" in IP Scanner, Port Scanner, Firewall, ...) opened as a square popup next to the rounded context menu. DefaultContextMenu overrides the two templates MahApps resolves via DynamicResource from the menu items: SubmenuContent (border, now CornerRadius.Control) and SubmenuHeaderTemplateKey (copy of MahApps 2.4.11, the square LayoutRoot rectangle that draws the shadow replaced by a rounded Border). Co-Authored-By: Claude Opus 5.5 --- .../Resources/Styles/ContextMenuStyles.xaml | 116 ++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/Source/NETworkManager/Resources/Styles/ContextMenuStyles.xaml b/Source/NETworkManager/Resources/Styles/ContextMenuStyles.xaml index f52ed0d683..e2d23db83b 100644 --- a/Source/NETworkManager/Resources/Styles/ContextMenuStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ContextMenuStyles.xaml @@ -48,6 +48,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 9b8558c055173aba585264c9a5b0ee0fb5be14b6 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:54:17 +0100 Subject: [PATCH 033/232] Design: cards for the Dashboard widgets and the Ping Monitor hosts (D4.1) - Brushes.Surface.Card (theme foreground with 3 % opacity, set by AppearanceManager) and CornerRadius.Card (8). - New BorderStyles.xaml with CardBorder (card background, Gray8 border, radius 8): Dashboard widgets (network connection - one card in three parts, speed test, IP geolocation, DNS resolver). - PingMonitorExpander: card background (header + content) and radius 8 (the MahApps Expander rounds the header / content per state). - TextBlockAsTextBox (read-only values that look like text) has a transparent background, so it doesn't show as a rectangle on a card. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager.Settings/AppearanceManager.cs | 9 ++++++++- Source/NETworkManager/App.xaml | 1 + .../NETworkManager/Resources/Styles/BorderStyles.xaml | 10 ++++++++++ .../Resources/Styles/ExpanderStyles.xaml | 5 +++++ .../NETworkManager/Resources/Styles/TextBoxStyles.xaml | 2 ++ Source/NETworkManager/Resources/Styles/Theme.xaml | 2 ++ .../Views/IPApiDNSResolverWidgetView.xaml | 2 +- .../Views/IPApiIPGeolocationWidgetView.xaml | 2 +- .../Views/NetworkConnectionWidgetView.xaml | 7 ++++--- Source/NETworkManager/Views/SpeedTestWidgetView.xaml | 2 +- 10 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 Source/NETworkManager/Resources/Styles/BorderStyles.xaml diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 186e61773c..e3cdfe84fe 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -61,6 +61,11 @@ public static class AppearanceManager /// public const string ButtonPressedBrushKey = "Brushes.Button.Pressed"; + /// + /// Resource key of the background of a card (e.g. Dashboard widget, Ping Monitor host). + /// + public const string SurfaceCardBrushKey = "Brushes.Surface.Card"; + /// /// Resource key of the border of an input (e.g. TextBox, ComboBox) when the mouse is over it. /// @@ -184,7 +189,7 @@ 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 and the border of inputs for mouse over: the foreground color of + /// (secondary) buttons and cards 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. /// @@ -202,6 +207,8 @@ private static void ApplyControlStateBrushes(Theme theme) appResources[ButtonBackgroundBrushKey] = CreateFrozenBrush(foreground, 0.06); appResources[ButtonMouseOverBrushKey] = CreateFrozenBrush(foreground, 0.10); appResources[ButtonPressedBrushKey] = CreateFrozenBrush(foreground, 0.14); + + appResources[SurfaceCardBrushKey] = CreateFrozenBrush(foreground, 0.03); } /// diff --git a/Source/NETworkManager/App.xaml b/Source/NETworkManager/App.xaml index 39a92ae774..0a397cc502 100644 --- a/Source/NETworkManager/App.xaml +++ b/Source/NETworkManager/App.xaml @@ -27,6 +27,7 @@ + diff --git a/Source/NETworkManager/Resources/Styles/BorderStyles.xaml b/Source/NETworkManager/Resources/Styles/BorderStyles.xaml new file mode 100644 index 0000000000..06d2729e75 --- /dev/null +++ b/Source/NETworkManager/Resources/Styles/BorderStyles.xaml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml index 5d9a6e02ae..471e66f569 100644 --- a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml @@ -139,6 +139,11 @@ diff --git a/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml b/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml index dcdaf22769..f81ddc4831 100644 --- a/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TextBoxStyles.xaml @@ -64,6 +64,8 @@ - + + + + + + + + + - + \ No newline at end of file diff --git a/Source/NETworkManager/Resources/Styles/Theme.xaml b/Source/NETworkManager/Resources/Styles/Theme.xaml index b21aa759c5..f0db409f23 100644 --- a/Source/NETworkManager/Resources/Styles/Theme.xaml +++ b/Source/NETworkManager/Resources/Styles/Theme.xaml @@ -17,6 +17,9 @@ 8 + + + + + From b6418d33f5538e2c459187e3040501c8da72534a Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:01:56 +0100 Subject: [PATCH 039/232] Design: tabs with an accent line and a subtle mouse over (D4.5) Tab header (own Dragablz styles, not the 3rdparty submodule): the selected tab has a 2 px accent line at the bottom and the text in the theme foreground (was the accent color), mouse over shows Brushes.Control.MouseOver; the close button turns Brushes.Status.Error on mouse over (was Red). Co-Authored-By: Claude Opus 5.5 --- .../Resources/Styles/DragablzStyles.xaml | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml index 8aba3d5e29..8a6232fd17 100644 --- a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml @@ -68,6 +68,17 @@ + + + + @@ -92,7 +103,7 @@ Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type dragablz:DragablzItem}}, Path=IsSelected}" Value="True"> + Value="{DynamicResource MahApps.Brushes.ThemeForeground}" /> @@ -116,7 +127,7 @@ - + @@ -124,6 +135,18 @@ + + + + + From 6cb8e5e1d692981ade4090191ef175d681c6dc55 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:02:18 +0100 Subject: [PATCH 040/232] Design: changelog for the surfaces and layout (D4) Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 1220999ade..625f528e99 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -72,6 +72,7 @@ Release date: **xx.xx.2026** - Disabled inputs and buttons (e.g. while a scan or refresh is running) are dimmed instead of covered by a light gray overlay (especially visible in the dark theme); disabled buttons keep their color. Buttons and drop-downs (e.g. the adapter in **WiFi**) use a subtle background when the mouse is over them or they are clicked instead of a light gray. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - The status colors (e.g. host up / down, port open / closed, changes since the last scan, warnings and errors) are darker in the light theme and easier to read on the white background. Monospace text uses **Cascadia Mono** on Windows 11 (Consolas on Windows 10): IP and MAC addresses, hostnames, ports, subnets and other technical values in the lists, inputs and details of all tools (e.g. **IP Scanner**, **Port Scanner**, **Network Interface**, **Subnet Calculator**), the run command and console output. Names, descriptions and labels keep the normal font. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Buttons, inputs, tooltips and context menus have rounded corners. Buttons have a subtle background instead of a border and are narrower (min. width 100 instead of 150), icon buttons (e.g. next to the inputs) are transparent until the mouse is over them; the main action (e.g. **Scan**, **Connect**) keeps the accent color. Inputs show a gray border while they have the focus and a slightly stronger border when the mouse is over them. Keyboard navigation (`Tab`) shows a gray focus ring instead of a dotted rectangle. Scrollbars have a rounded thumb and are less bright when the mouse is over them. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- New layout: the navigation and the profiles have their own background to separate them from the main view; the selected application is shown with a rounded background and a short accent indicator. Dialogs are rounded with a soft shadow and darken the window behind them. **Dashboard** widgets and **Ping Monitor** hosts are shown as rounded cards. Lists have taller rows, a subtle mouse over and a light accent-colored selection (instead of the full accent color). Tabs show an accent line below the selected tab. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From 2343046028b3555e11b8bef8d0de8dcb23079d8a Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:18:11 +0100 Subject: [PATCH 041/232] Fix: navigation pill covers the whole row when the navigation is expanded (D4.2) The ListView of the applications scrolled horizontally, the items were only as wide as their text. Horizontal scrolling disabled, items stretched. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/MainWindow.xaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index 2bf2dd3406..aaf0bd2de1 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -596,6 +596,7 @@ SelectionChanged="ListViewApplication_OnSelectionChanged" SelectionMode="Single" Background="Transparent" + ScrollViewer.HorizontalScrollBarVisibility="Disabled" BorderThickness="0" dd:DragDrop.IsDragSource="True" dd:DragDrop.IsDropTarget="True"> @@ -807,12 +808,15 @@ + + + + + @@ -1013,73 +1030,76 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Source/NETworkManager/Resources/Styles/BorderStyles.xaml b/Source/NETworkManager/Resources/Styles/BorderStyles.xaml index 06d2729e75..325f70164a 100644 --- a/Source/NETworkManager/Resources/Styles/BorderStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/BorderStyles.xaml @@ -1,5 +1,6 @@  + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"> + + + \ No newline at end of file diff --git a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml index 9b38d3ed24..f53c7ebf0f 100644 --- a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml @@ -207,13 +207,15 @@ + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - + + + + + + + + + + + + + + - + + + + + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - + + + + + + + + + + + + + + - + + + + + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + Text="{x:Static localization:Strings.CurrentUploadSpeed}" /> + + + + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> diff --git a/Source/NETworkManager/Views/PingMonitorHostView.xaml b/Source/NETworkManager/Views/PingMonitorHostView.xaml index d689bd9dbe..5f30c348d9 100644 --- a/Source/NETworkManager/Views/PingMonitorHostView.xaml +++ b/Source/NETworkManager/Views/PingMonitorHostView.xaml @@ -1,4 +1,5 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - + + + + + + + + + + + + + + - + + + + + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - + + + + + + + + + + + + + + - + + + + + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - + + + + + + + + + + + + + + - + + + + + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - + + + + + + + + + + + + + + - + + + + + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> diff --git a/Source/NETworkManager/Views/WebConsoleHostView.xaml b/Source/NETworkManager/Views/WebConsoleHostView.xaml index 2b23a34b9c..26243aa7ab 100644 --- a/Source/NETworkManager/Views/WebConsoleHostView.xaml +++ b/Source/NETworkManager/Views/WebConsoleHostView.xaml @@ -1,4 +1,5 @@  - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> - - - - + + + + + + + + + + + + + + - + + + + + + - - - - - - - - - - - - - - - - + + + + + + + Style="{StaticResource VerticalGapGridSplitter}" /> Date: Tue, 10 Nov 2026 00:24:16 +0100 Subject: [PATCH 045/232] Design: Ping Monitor groups as sections (D4.8) New SectionExpander (no box, thin Gray8 line below the header, content 10 below): the groups of the Ping Monitor use it, the group name is semibold (16) in the text color instead of the light gray header font. The host cards give the structure, no box in a box. Co-Authored-By: Claude Opus 5.5 --- .../Resources/Styles/ExpanderStyles.xaml | 20 +++++++++++++++++++ .../Views/PingMonitorHostView.xaml | 7 +++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml index f53c7ebf0f..322f88b654 100644 --- a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml @@ -75,6 +75,26 @@ Value="{DynamicResource ResourceKey=ExpanderDownHeader}" /> + + + + + - + + From c27c7158cb3307af78a482f48ed7ab35a416e252 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:30:14 +0100 Subject: [PATCH 049/232] Fix: profile panel box without rounded top corners (D4.8) The expanded ProfileExpander hides its header, the MahApps template rounds only the bottom of the content. The box (ViewBox) is now around the expander in ProfileExpanderPanel, the expander has no border / background. Co-Authored-By: Claude Opus 5.5 --- .../Resources/Styles/ExpanderStyles.xaml | 11 +- .../Views/Controls/ProfileExpanderPanel.xaml | 1135 +++++++++-------- 2 files changed, 574 insertions(+), 572 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml index 322f88b654..470c9111e9 100644 --- a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml @@ -227,15 +227,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + From d93b65cb7f3f98a714fd920e3d5e343d7c20ebcf Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:30:21 +0100 Subject: [PATCH 050/232] Fix: expand button of the navigation visible above the search box The button had only triggers that make it visible (no default), so it was always visible - hidden behind the opaque search box, which is transparent now (D4.1). It is hidden with the same conditions as the search box is shown: expanded, or open and the search box focused / the mouse over the navigation. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/MainWindow.xaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index 9642513392..a2c0e67089 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -395,29 +395,32 @@ ToolTip="{x:Static localization:Strings.ExpandAndOpenSearchDots}" Focusable="False"> + - - + + diff --git a/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml b/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml index 1c2b4c93db..435e430c43 100644 --- a/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml @@ -4,8 +4,8 @@ - - + + From 35cd8a1053af4b9123390fc12b4f552f23041685 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:39:24 +0100 Subject: [PATCH 054/232] Design: navigation box with the color of the frame (D4.8) The application list has the frame color (Brushes.Surface.Frame, like the side panel color before the box layout): part of the window, the main view and the profiles stand out as boxes. The rounded border stays. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/MainWindow.xaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index e9feda578e..64b8df763d 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -342,8 +342,10 @@ - - + + From de645a7c08f12422a744e7bc477ab4f8652638b7 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:43:39 +0100 Subject: [PATCH 055/232] Design: run command box and profile file ComboBox integrated in the title bar (D4.8) They used the box color (theme background) and stood out on the frame. Now the subtle tint of the secondary buttons (Brushes.Button.Background, Brushes.Button.MouseOver on mouse over - the run command box used Gray9), without border, rounded. The profile file ComboBox gets it via a style based on DefaultComboBox (a local Background would block the mouse over). The "Administrator" badge has no background (text only). Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/MainWindow.xaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index 64b8df763d..13985cf3d6 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -85,7 +85,7 @@ - + + + + @@ -277,8 +287,9 @@ shell:WindowChrome.IsHitTestVisibleInChrome="True"> + @@ -313,7 +324,7 @@ + Value="{DynamicResource Brushes.Button.MouseOver}" /> From 2e7908f97592195859906e5409feb4d87c85c11e Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:49:25 +0100 Subject: [PATCH 056/232] Fix: no drag preview line for the splitter between tool area and profiles (D4.8) The preview rectangle has a margin of 3 (for the 7 px default splitter), the 6 px gap splitter left nothing. VerticalGapGridSplitter uses GridSplitterGapPreviewStyle (2 px line in the middle of the gap), the default preview uses Gray5 instead of Gray8 with 50 % opacity (hard to see). Co-Authored-By: Claude Opus 5.5 --- .../Resources/Styles/GridSplitterStyles.xaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml b/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml index 06271654af..cae2e429eb 100644 --- a/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml @@ -10,7 +10,19 @@ - + + + + + + + + - + From a0e71e8f70617156580fa234b4febf6173121cf1 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:50:16 +0100 Subject: [PATCH 058/232] Design: tab headers of Remote Desktop, PuTTY, PowerShell, TigerVNC, Web Console like the other tools (D4.8) These views have their own TabHeaderTemplate (connection context menu) and still had the old header: 36 high instead of 32, mouse over background, accent line below the selected tab, text of the selected tab in the theme foreground (was accent), close button Brushes.Status.Error on mouse over (was Red) - like DragablzStyles. Co-Authored-By: Claude Opus 5.5 --- .../Views/PowerShellHostView.xaml | 29 +++++++++++++++++-- .../NETworkManager/Views/PuTTYHostView.xaml | 29 +++++++++++++++++-- .../Views/RemoteDesktopHostView.xaml | 29 +++++++++++++++++-- .../Views/TigerVNCHostView.xaml | 29 +++++++++++++++++-- .../Views/WebConsoleHostView.xaml | 29 +++++++++++++++++-- 5 files changed, 130 insertions(+), 15 deletions(-) diff --git a/Source/NETworkManager/Views/PowerShellHostView.xaml b/Source/NETworkManager/Views/PowerShellHostView.xaml index 6dd76a94d5..705fffcbb4 100644 --- a/Source/NETworkManager/Views/PowerShellHostView.xaml +++ b/Source/NETworkManager/Views/PowerShellHostView.xaml @@ -101,7 +101,18 @@ - + + + + + @@ -158,7 +169,7 @@ Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type dragablz:DragablzItem}}, Path=IsSelected}" Value="True"> + Value="{DynamicResource MahApps.Brushes.ThemeForeground}" /> @@ -183,7 +194,7 @@ - + @@ -191,6 +202,18 @@ + + + + + diff --git a/Source/NETworkManager/Views/PuTTYHostView.xaml b/Source/NETworkManager/Views/PuTTYHostView.xaml index 584f26836d..34e3303380 100644 --- a/Source/NETworkManager/Views/PuTTYHostView.xaml +++ b/Source/NETworkManager/Views/PuTTYHostView.xaml @@ -100,7 +100,18 @@ - + + + + + @@ -170,7 +181,7 @@ Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type dragablz:DragablzItem}}, Path=IsSelected}" Value="True"> + Value="{DynamicResource MahApps.Brushes.ThemeForeground}" /> @@ -195,7 +206,7 @@ - + @@ -203,6 +214,18 @@ + + + + + diff --git a/Source/NETworkManager/Views/RemoteDesktopHostView.xaml b/Source/NETworkManager/Views/RemoteDesktopHostView.xaml index 94142a0f70..edfb66931e 100644 --- a/Source/NETworkManager/Views/RemoteDesktopHostView.xaml +++ b/Source/NETworkManager/Views/RemoteDesktopHostView.xaml @@ -98,7 +98,18 @@ - + + + + + + Value="{DynamicResource MahApps.Brushes.ThemeForeground}" /> @@ -274,7 +285,7 @@ - + @@ -282,6 +293,18 @@ + + + + + diff --git a/Source/NETworkManager/Views/TigerVNCHostView.xaml b/Source/NETworkManager/Views/TigerVNCHostView.xaml index ae4d2a8214..9a7c54595a 100644 --- a/Source/NETworkManager/Views/TigerVNCHostView.xaml +++ b/Source/NETworkManager/Views/TigerVNCHostView.xaml @@ -99,7 +99,18 @@ - + + + + + + Value="{DynamicResource MahApps.Brushes.ThemeForeground}" /> @@ -166,7 +177,7 @@ - + @@ -174,6 +185,18 @@ + + + + + diff --git a/Source/NETworkManager/Views/WebConsoleHostView.xaml b/Source/NETworkManager/Views/WebConsoleHostView.xaml index 26243aa7ab..24780e9d86 100644 --- a/Source/NETworkManager/Views/WebConsoleHostView.xaml +++ b/Source/NETworkManager/Views/WebConsoleHostView.xaml @@ -87,7 +87,18 @@ - + + + + + + Value="{DynamicResource MahApps.Brushes.ThemeForeground}" /> @@ -154,7 +165,7 @@ - + @@ -162,6 +173,18 @@ + + + + + From af58b317328365dd69011ccbb16e4879f9a2e980 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:56:06 +0100 Subject: [PATCH 059/232] Fix: line below the tabs of Dashboard, WiFi, ... 1 px lower than the navigation (D4.8) DefaultTabItem 36 + the border of the box put the line 1 px below the one of the navigation header and of the Dragablz tabs (header 36 with a top margin of 2, the content border overlaps it by 1, control margin -2). DefaultTabItem is 35 high. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/Resources/Styles/TabControlStyles.xaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml b/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml index 435e430c43..9c31802b46 100644 --- a/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml @@ -4,8 +4,9 @@ - - + + From 97ffd24d9c7fa56706e72f55e10781930ab46405 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:56:06 +0100 Subject: [PATCH 060/232] Fix: tab header too low without a tab (e.g. Remote Desktop, PuTTY) (D4.8) Without a tab the height of the header comes from the suffix content (add tab button, 32 high), not from a tab (36). The container of the add tab button is 36 high in all host views. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/Views/DNSLookupHostView.xaml | 2 +- Source/NETworkManager/Views/IPGeolocationHostView.xaml | 2 +- Source/NETworkManager/Views/IPScannerHostView.xaml | 2 +- Source/NETworkManager/Views/PortScannerHostView.xaml | 2 +- Source/NETworkManager/Views/PowerShellHostView.xaml | 2 +- Source/NETworkManager/Views/PuTTYHostView.xaml | 2 +- Source/NETworkManager/Views/RDAPHostView.xaml | 2 +- Source/NETworkManager/Views/RemoteDesktopHostView.xaml | 2 +- Source/NETworkManager/Views/SNMPHostView.xaml | 2 +- Source/NETworkManager/Views/SNTPLookupHostView.xaml | 2 +- Source/NETworkManager/Views/TigerVNCHostView.xaml | 2 +- Source/NETworkManager/Views/TracerouteHostView.xaml | 2 +- Source/NETworkManager/Views/WebConsoleHostView.xaml | 2 +- Source/NETworkManager/Views/WhoisHostView.xaml | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Source/NETworkManager/Views/DNSLookupHostView.xaml b/Source/NETworkManager/Views/DNSLookupHostView.xaml index 4445e87695..d8ed67d72a 100644 --- a/Source/NETworkManager/Views/DNSLookupHostView.xaml +++ b/Source/NETworkManager/Views/DNSLookupHostView.xaml @@ -94,7 +94,7 @@ MoveWindowWithSolitaryTabs="False" /> - + - + + + - - - - - - + + + + + + + - - - + + + @@ -184,6 +192,22 @@ + + + + + + + + + + + @@ -204,6 +228,22 @@ + + + + + + + + + + + From ed95544432ae244fcba1edb7b3414c5d72dde3de Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:03:24 +0100 Subject: [PATCH 074/232] Design: changelog for the dialog animation (D5.2) Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 3197c0643d..d3b7d45afd 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -74,6 +74,7 @@ Release date: **xx.xx.2026** - The status colors (e.g. host up / down, port open / closed, changes since the last scan, warnings and errors) are darker in the light theme and easier to read on the white background. Monospace text uses **Cascadia Mono** on Windows 11 (Consolas on Windows 10): IP and MAC addresses, hostnames, ports, subnets and other technical values in the lists, inputs and details of all tools (e.g. **IP Scanner**, **Port Scanner**, **Network Interface**, **Subnet Calculator**), the run command and console output. Names, descriptions and labels keep the normal font. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Buttons, inputs, tooltips and context menus have rounded corners. Buttons have a subtle background instead of a border and are narrower (min. width 100 instead of 150), icon buttons (e.g. next to the inputs) are transparent until the mouse is over them; the main action (e.g. **Scan**, **Connect**) keeps the accent color. Inputs show a gray border while they have the focus and a slightly stronger border when the mouse is over them. Drop-downs (e.g. the profile file in the title bar) are rounded with a shadow like the context menus and show the selected entry with a subtle background instead of the accent color. Keyboard navigation (`Tab`) shows a gray focus ring instead of a dotted rectangle. Scrollbars have a rounded thumb and are less bright when the mouse is over them. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - New layout: the navigation, the main view and the profiles are shown as rounded boxes on a slightly tinted window background (like Visual Studio); the selected application is shown with a rounded background over the whole row and a short accent indicator. The groups of the **Ping Monitor** are shown as sections with a line below the group name. Dialogs are rounded with a soft shadow and darken the window behind them. **Dashboard** widgets and **Ping Monitor** hosts are shown as rounded cards. Lists have taller rows, a subtle mouse over and a light accent-colored selection (instead of the full accent color). Tabs show an accent line below the selected tab; a view with only one tab (e.g. **Dashboard**, **Firewall**) shows its name as a title instead of a tab. On Windows 11, the windows have rounded corners. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Dialogs (e.g. add / edit profile, settings) open with a short zoom and fade and close faster. If **Animation effects** are turned off in Windows (Settings > Accessibility > Visual effects), they only fade. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From 455f7ad351433369a313b5ed4e70c33624c3351e Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:17:18 +0100 Subject: [PATCH 075/232] Design: dialog zoom stronger and started after the first layout (D5.2) User: no zoom visible. 96 % in 180 ms was too subtle, and the storyboard started when the dialog was opened: a heavy dialog (e.g. the profile dialog) was shown when the animation was almost over. New ChildWindowAnimation behavior (set in DefaultChildWindow) instead of the scale animations in the storyboards: on IsOpenChanged it holds the dialog at 92 % until the first layout / render (Dispatcher, Loaded priority) and then grows to 100 % in 220 ms (ease-out); closing shrinks to 98 % in 100 ms (ease-in, same as the overlay fade). Checks SystemParameters.ClientAreaAnimation on every opening (live), so Motion (x:Static values read once when the styles are loaded) is removed. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager.Utilities.WPF/Motion.cs | 29 ----- Source/NETworkManager/ChildWindowAnimation.cs | 122 ++++++++++++++++++ .../Resources/Styles/ChildWindowStyles.xaml | 43 +----- 3 files changed, 127 insertions(+), 67 deletions(-) delete mode 100644 Source/NETworkManager.Utilities.WPF/Motion.cs create mode 100644 Source/NETworkManager/ChildWindowAnimation.cs diff --git a/Source/NETworkManager.Utilities.WPF/Motion.cs b/Source/NETworkManager.Utilities.WPF/Motion.cs deleted file mode 100644 index 4869ee0378..0000000000 --- a/Source/NETworkManager.Utilities.WPF/Motion.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.Windows; - -namespace NETworkManager.Utilities.WPF; - -/// -/// Values for the animations of the styles (e.g. dialogs), used with x:Static in the storyboards (storyboards -/// in templates are frozen, DynamicResource can't be used there). -/// -/// Reduced motion: if "Animation effects" is turned off in Windows (Settings > Accessibility > Visual effects, -/// ), elements don't move or scale, they only fade. Read once when -/// the styles are loaded, a change applies after a restart of the application. -/// -public static class Motion -{ - /// - /// true if Windows shows animations ("Animation effects" turned on). - /// - public static bool IsEnabled { get; } = SystemParameters.ClientAreaAnimation; - - /// - /// Scale of a dialog when it starts to open (grows to 1). - /// - public static double DialogShowScale { get; } = IsEnabled ? 0.96 : 1; - - /// - /// Scale of a dialog when it is closed (shrinks from 1). - /// - public static double DialogHideScale { get; } = IsEnabled ? 0.98 : 1; -} diff --git a/Source/NETworkManager/ChildWindowAnimation.cs b/Source/NETworkManager/ChildWindowAnimation.cs new file mode 100644 index 0000000000..3ce8e07dc5 --- /dev/null +++ b/Source/NETworkManager/ChildWindowAnimation.cs @@ -0,0 +1,122 @@ +using System; +using System.Windows; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Threading; +using MahApps.Metro.SimpleChildWindow; + +namespace NETworkManager; + +/// +/// Attached property that zooms a dialog ( with the DefaultChildWindowTemplate) when +/// it is opened (grows from 92 % to its size, ease-out) and closed (shrinks to 98 %, ease-in). The overlay fades in / +/// out in the template (Show / Hide visual states), the zoom runs at the same time. +/// +/// Done in code instead of the storyboards of the template: the zoom starts after the first layout of the dialog +/// (otherwise a heavy dialog, e.g. the profile dialog, is shown when the animation is almost over) and checks +/// whether animations are enabled each time a dialog is opened. +/// +/// The zoom is applied to the WindowScale grid inside PART_Window: the ChildWindow sets the +/// RenderTransform of the window itself (TranslateTransform to move the dialog). +/// +public static class ChildWindowAnimation +{ + private const double ShowScale = 0.92; + private const double HideScale = 0.98; + + private static readonly Duration ShowDuration = new(TimeSpan.FromMilliseconds(220)); + + // Same as the fade out of the overlay (HideStoryboard), the dialog is removed when it ends + private static readonly Duration HideDuration = new(TimeSpan.FromMilliseconds(100)); + + public static readonly DependencyProperty IsEnabledProperty = + DependencyProperty.RegisterAttached( + "IsEnabled", + typeof(bool), + typeof(ChildWindowAnimation), + new PropertyMetadata(false, OnIsEnabledChanged)); + + public static void SetIsEnabled(UIElement element, bool value) => + element.SetValue(IsEnabledProperty, value); + + public static bool GetIsEnabled(UIElement element) => + (bool)element.GetValue(IsEnabledProperty); + + private static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) + { + if (d is not ChildWindow childWindow) + return; + + if ((bool)e.NewValue) + childWindow.IsOpenChanged += ChildWindow_IsOpenChanged; + else + childWindow.IsOpenChanged -= ChildWindow_IsOpenChanged; + } + + private static void ChildWindow_IsOpenChanged(object sender, RoutedEventArgs e) + { + if (sender is not ChildWindow childWindow) + return; + + childWindow.ApplyTemplate(); + + if (childWindow.Template?.FindName("WindowScale", childWindow) is not FrameworkElement windowScale) + return; + + // Own transform (a transform of the template could be frozen / shared) + if (windowScale.RenderTransform is not ScaleTransform { IsFrozen: false } scaleTransform) + { + scaleTransform = new ScaleTransform(); + windowScale.RenderTransform = scaleTransform; + } + + if (!IsAnimationEnabled()) + { + Animate(scaleTransform, 1, null, null); + return; + } + + if (childWindow.IsOpen) + { + // Hold the start value until the dialog is laid out and rendered for the first time + Animate(scaleTransform, ShowScale, null, null); + + childWindow.Dispatcher.BeginInvoke(DispatcherPriority.Loaded, () => + { + if (childWindow.IsOpen) + Animate(scaleTransform, 1, ShowDuration, new CubicEase { EasingMode = EasingMode.EaseOut }); + }); + } + else + { + Animate(scaleTransform, HideScale, HideDuration, new CubicEase { EasingMode = EasingMode.EaseIn }); + } + } + + /// + /// Animates the scale to the value, or sets it immediately without a duration. + /// + private static void Animate(ScaleTransform scaleTransform, double to, Duration? duration, + IEasingFunction easingFunction) + { + if (duration == null) + { + // Remove a running animation, then set the value + scaleTransform.BeginAnimation(ScaleTransform.ScaleXProperty, null); + scaleTransform.BeginAnimation(ScaleTransform.ScaleYProperty, null); + scaleTransform.ScaleX = to; + scaleTransform.ScaleY = to; + return; + } + + var animation = new DoubleAnimation(to, duration.Value) { EasingFunction = easingFunction }; + + scaleTransform.BeginAnimation(ScaleTransform.ScaleXProperty, animation); + scaleTransform.BeginAnimation(ScaleTransform.ScaleYProperty, animation); + } + + /// + /// Animations follow the Windows setting "Animation effects" (Settings > Accessibility > Visual effects). + /// + private static bool IsAnimationEnabled() => SystemParameters.ClientAreaAnimation; +} diff --git a/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml b/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml index 86ab4e86af..5bbc5c0d51 100644 --- a/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml @@ -3,7 +3,7 @@ xmlns:mahControls="http://metro.mahapps.com/winfx/xaml/controls" xmlns:mahConverters="http://metro.mahapps.com/winfx/xaml/shared" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF"> + xmlns:networkManager="clr-namespace:NETworkManager"> + - - - - - - - - - - - - - - @@ -228,22 +209,6 @@ - - - - - - - - - - - @@ -274,6 +239,8 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -111,345 +461,39 @@ - - - - - + + diff --git a/Source/NETworkManager/Views/ProfileChildWindow.xaml b/Source/NETworkManager/Views/ProfileChildWindow.xaml index e4833bd59e..32df8c45f5 100644 --- a/Source/NETworkManager/Views/ProfileChildWindow.xaml +++ b/Source/NETworkManager/Views/ProfileChildWindow.xaml @@ -65,6 +65,904 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -125,890 +1023,66 @@ - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -273,7 +297,19 @@ - + + + + + @@ -315,11 +351,11 @@ - @@ -359,7 +395,7 @@ - + @@ -367,6 +403,18 @@ + + + + + @@ -383,7 +431,19 @@ - + + + + + @@ -439,11 +499,11 @@ - @@ -483,7 +543,7 @@ - + @@ -491,6 +551,18 @@ + + + + + @@ -507,7 +579,19 @@ - + + + + + - @@ -577,7 +661,7 @@ - + @@ -585,6 +669,18 @@ + + + + + @@ -601,7 +697,19 @@ - + + + + + - @@ -671,7 +779,7 @@ - + @@ -679,6 +787,18 @@ + + + + + From a0e910b6dd13538a3fe6201d0225db666fd4a2db Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:45:39 +0100 Subject: [PATCH 087/232] Design: changelog without the command line window (D4.12) Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 163a8cd8dd..f7b011f8de 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -73,7 +73,7 @@ Release date: **xx.xx.2026** - Disabled inputs and buttons (e.g. while a scan or refresh is running) are dimmed instead of covered by a light gray overlay (especially visible in the dark theme); disabled buttons keep their color. Disabled check boxes, radio buttons and toggle switches are dimmed the same way instead of shown in gray. Buttons and drop-downs (e.g. the adapter in **WiFi**) use a subtle background when the mouse is over them or they are clicked instead of a light gray. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - The status colors (e.g. host up / down, port open / closed, changes since the last scan, warnings and errors) are darker in the light theme and easier to read on the white background. Monospace text uses **Cascadia Mono** on Windows 11 (Consolas on Windows 10): IP and MAC addresses, hostnames, ports, subnets and other technical values in the lists, inputs and details of all tools (e.g. **IP Scanner**, **Port Scanner**, **Network Interface**, **Subnet Calculator**), the run command and console output. Names, descriptions and labels keep the normal font. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Buttons, inputs, tooltips and context menus have rounded corners. Buttons have a subtle background instead of a border and are narrower (min. width 100 instead of 150), icon buttons (e.g. next to the inputs) are transparent until the mouse is over them; the main action (e.g. **Scan**, **Connect**) keeps the accent color. Inputs show a gray border while they have the focus and a slightly stronger border when the mouse is over them. Drop-downs (e.g. the profile file in the title bar) are rounded with a shadow like the context menus and show the selected entry with a subtle background instead of the accent color. Keyboard navigation (`Tab`) shows a gray focus ring instead of a dotted rectangle. Scrollbars have a rounded thumb and are less bright when the mouse is over them. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- New layout: the navigation, the main view and the profiles are shown as rounded boxes on a slightly tinted window background (like Visual Studio); the selected application is shown with a rounded background over the whole row and a short accent indicator. The groups of the **Ping Monitor** are shown as sections with a line below the group name. Dialogs are rounded with a soft shadow and darken the window behind them. **Dashboard** widgets and **Ping Monitor** hosts are shown as rounded cards. Lists have taller rows, a subtle mouse over and a light accent-colored selection (instead of the full accent color). The window with dragged-out tabs, the status window and the command line window use the same layout. Tabs show an accent line below the selected tab; a view with only one tab (e.g. **Dashboard**, **Firewall**) shows its name as a title instead of a tab. On Windows 11, the windows have rounded corners. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- New layout: the navigation, the main view and the profiles are shown as rounded boxes on a slightly tinted window background (like Visual Studio); the selected application is shown with a rounded background over the whole row and a short accent indicator. The groups of the **Ping Monitor** are shown as sections with a line below the group name. Dialogs are rounded with a soft shadow and darken the window behind them. **Dashboard** widgets and **Ping Monitor** hosts are shown as rounded cards. Lists have taller rows, a subtle mouse over and a light accent-colored selection (instead of the full accent color). The window with dragged-out tabs and the status window use the same layout. Tabs show an accent line below the selected tab; a view with only one tab (e.g. **Dashboard**, **Firewall**) shows its name as a title instead of a tab. On Windows 11, the windows have rounded corners. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Dialogs (e.g. add / edit profile, settings) open with a short zoom and fade and close faster. New setting **Animations** in [Settings > Appearance](../settings/appearance.md#animations): `System` (default, follows the Windows setting **Animation effects**), `On` or `Off`; can be turned on or off for all users with the system-wide policy `Appearance_Animations` (e.g. on a terminal server). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From 618129d2f61113685e9e54910a2a8c4eaad57030 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:58:06 +0100 Subject: [PATCH 088/232] Refactor: screenshot of the AirspacePanel reusable for any element CaptureScreenshot(FrameworkElement) is public and static, so the content of embedded windows can also be shown as a screenshot while a tab is dragged (next commit). No change in behaviour. Co-Authored-By: Claude Opus 5.5 --- .../NETworkManager.Controls/AirspacePanel.cs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Source/NETworkManager.Controls/AirspacePanel.cs b/Source/NETworkManager.Controls/AirspacePanel.cs index e03927cc18..524e87b4eb 100644 --- a/Source/NETworkManager.Controls/AirspacePanel.cs +++ b/Source/NETworkManager.Controls/AirspacePanel.cs @@ -87,7 +87,7 @@ private void UpdateAirspace(bool fix) if (fix) { // Content not visible or not shown in a window - nothing to capture, keep the content - var screenshot = CreateScreenshotFromContent(); + var screenshot = CaptureScreenshot(_airspaceContent); if (screenshot == null) return; @@ -111,9 +111,16 @@ private void UpdateAirspace(bool fix) } } - private BitmapSource CreateScreenshotFromContent() + /// + /// Takes a screenshot of the area of the element on the screen, including embedded windows (e.g. Remote + /// Desktop, PuTTY, WebView2), which are not part of the WPF rendering. Also used to show the content of the + /// embedded windows while a tab is dragged (EmbeddedWindowDragPresenter). + /// + /// Element to capture. + /// Screenshot, or if the element is not shown in a window or has no size. + public static BitmapSource CaptureScreenshot(FrameworkElement element) { - var presentationSource = PresentationSource.FromVisual(_airspaceContent); + var presentationSource = PresentationSource.FromVisual(element); if (presentationSource?.CompositionTarget == null) return null; @@ -122,9 +129,9 @@ private BitmapSource CreateScreenshotFromContent() // pixels, but the size is in device independent pixels and has to be scaled with the DPI of the monitor. var transformToDevice = presentationSource.CompositionTarget.TransformToDevice; - var upperLeftPoint = _airspaceContent.PointToScreen(new Point(0, 0)); - var width = (int)Math.Round(_airspaceContent.ActualWidth * transformToDevice.M11); - var height = (int)Math.Round(_airspaceContent.ActualHeight * transformToDevice.M22); + var upperLeftPoint = element.PointToScreen(new Point(0, 0)); + var width = (int)Math.Round(element.ActualWidth * transformToDevice.M11); + var height = (int)Math.Round(element.ActualHeight * transformToDevice.M22); if (width <= 0 || height <= 0) return null; From 881f02b9b2bdff70d6b986081240bcc67652111e Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:58:06 +0100 Subject: [PATCH 089/232] Improvement: screenshot of embedded windows while a tab is dragged While a window with Remote Desktop, PowerShell, PuTTY, TigerVNC or Web Console tabs was dragged (e.g. a tab dragged out), the embedded windows of the application were hidden in all windows (they are drawn on top of WPF and would cover the drop zones of Dragablz), an empty area was shown. The other tools (e.g. IP Scanner) keep their content visible. New EmbeddedWindowDragPresenter around the embedded window of the five controls (replaces the Is*WindowDragging triggers): during the drag it shows a screenshot of the embedded window (AirspacePanel.CaptureScreenshot, WPF image, so the drop zones are drawn above it). In the dragged window itself (just created, its content is not on the screen yet - detected by TabablzControl.IsDraggingWindow) or if no screenshot can be taken, a placeholder with the icon of the application and the title of the tab. Hidden tabs stay hidden. No change in Dragablz. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/App.xaml | 1 + .../Controls/EmbeddedWindowDragPresenter.cs | 136 ++++++++++++++++++ .../Controls/PowerShellControl.xaml | 36 ++--- .../NETworkManager/Controls/PuTTYControl.xaml | 36 ++--- .../Controls/RemoteDesktopControl.xaml | 40 +++--- .../Controls/TigerVNCControl.xaml | 34 ++--- .../Controls/WebConsoleControl.xaml | 32 ++--- .../EmbeddedWindowDragPresenterStyles.xaml | 38 +++++ 8 files changed, 264 insertions(+), 89 deletions(-) create mode 100644 Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs create mode 100644 Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml diff --git a/Source/NETworkManager/App.xaml b/Source/NETworkManager/App.xaml index 0a397cc502..5d2632c6fd 100644 --- a/Source/NETworkManager/App.xaml +++ b/Source/NETworkManager/App.xaml @@ -54,6 +54,7 @@ + diff --git a/Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs b/Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs new file mode 100644 index 0000000000..d3eb886b42 --- /dev/null +++ b/Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs @@ -0,0 +1,136 @@ +using System.Windows; +using System.Windows.Controls; +using System.Windows.Media; +using Dragablz; +using NETworkManager.Models; + +namespace NETworkManager.Controls; + +/// +/// Hosts an embedded window (Remote Desktop, PowerShell, PuTTY, TigerVNC, WebView2) of a tab. While a window with +/// tabs of the application is dragged (, e.g. a tab is dragged out), the embedded window +/// is hidden: it is always drawn on top of WPF elements (airspace) and would cover the drop zones of Dragablz +/// (split the tabs). Instead of an empty area, a screenshot of the embedded window is shown, like the content of +/// the other tools (e.g. IP Scanner) stays visible during a drag. In the dragged window itself (just created, its +/// content is not on the screen yet) and if no screenshot can be taken, a placeholder with the icon of the +/// application and the title of the tab is shown. +/// The template is defined in Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml. +/// +[TemplatePart(Name = PartContent, Type = typeof(ContentPresenter))] +[TemplatePart(Name = PartScreenshot, Type = typeof(Image))] +[TemplatePart(Name = PartPlaceholder, Type = typeof(FrameworkElement))] +public class EmbeddedWindowDragPresenter : ContentControl +{ + private const string PartContent = "PART_Content"; + private const string PartScreenshot = "PART_Screenshot"; + private const string PartPlaceholder = "PART_Placeholder"; + + public static readonly DependencyProperty IsDraggingProperty = DependencyProperty.Register(nameof(IsDragging), + typeof(bool), typeof(EmbeddedWindowDragPresenter), new FrameworkPropertyMetadata(false, OnIsDraggingChanged)); + + public static readonly DependencyProperty ApplicationNameProperty = DependencyProperty.Register( + nameof(ApplicationName), typeof(ApplicationName), typeof(EmbeddedWindowDragPresenter), + new FrameworkPropertyMetadata(ApplicationName.None)); + + private ContentPresenter _content; + private Image _screenshot; + private FrameworkElement _placeholder; + + /// + /// A window with tabs of the application is dragged (e.g. + /// ). + /// + public bool IsDragging + { + get => (bool)GetValue(IsDraggingProperty); + set => SetValue(IsDraggingProperty, value); + } + + /// + /// Application of the tab, for the icon of the placeholder. + /// + public ApplicationName ApplicationName + { + get => (ApplicationName)GetValue(ApplicationNameProperty); + set => SetValue(ApplicationNameProperty, value); + } + + public override void OnApplyTemplate() + { + base.OnApplyTemplate(); + + _content = GetTemplateChild(PartContent) as ContentPresenter; + _screenshot = GetTemplateChild(PartScreenshot) as Image; + _placeholder = GetTemplateChild(PartPlaceholder) as FrameworkElement; + + Update(IsDragging); + } + + private static void OnIsDraggingChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) + { + if (d is EmbeddedWindowDragPresenter presenter) + presenter.Update((bool)e.NewValue); + } + + private void Update(bool isDragging) + { + // Template not applied (yet) + if (_content == null || _screenshot == null || _placeholder == null) + return; + + if (!isDragging) + { + _content.Visibility = Visibility.Visible; + _screenshot.Visibility = Visibility.Hidden; + _screenshot.Source = null; + _screenshot.ClearValue(WidthProperty); + _screenshot.ClearValue(HeightProperty); + _placeholder.Visibility = Visibility.Hidden; + + return; + } + + // Tab not shown (e.g. another tab is selected) - nothing to show, hide the embedded window as before + if (IsVisible) + { + // The dragged window was just created, its content is not on the screen yet: a screenshot would show + // what is behind it + var screenshot = IsInDraggedWindow() ? null : AirspacePanel.CaptureScreenshot(_content); + + if (screenshot != null) + { + // Size of the content when the screenshot was taken (top left aligned), not stretched if the window + // is resized during the drag + _screenshot.Width = _content.ActualWidth; + _screenshot.Height = _content.ActualHeight; + _screenshot.Source = screenshot; + _screenshot.Visibility = Visibility.Visible; + } + else + { + _placeholder.Visibility = Visibility.Visible; + } + } + + _content.Visibility = Visibility.Hidden; + } + + /// + /// Whether this tab is in the window that is dragged (Dragablz sets + /// on the tab control of the dragged window). + /// + private bool IsInDraggedWindow() + { + DependencyObject element = this; + + while (element != null) + { + if (element is TabablzControl { IsDraggingWindow: true }) + return true; + + element = VisualTreeHelper.GetParent(element); + } + + return false; + } +} diff --git a/Source/NETworkManager/Controls/PowerShellControl.xaml b/Source/NETworkManager/Controls/PowerShellControl.xaml index 7730f87c68..de2d49076b 100644 --- a/Source/NETworkManager/Controls/PowerShellControl.xaml +++ b/Source/NETworkManager/Controls/PowerShellControl.xaml @@ -19,24 +19,24 @@ - - - - - - + + + + + + + + + diff --git a/Source/NETworkManager/Controls/PuTTYControl.xaml b/Source/NETworkManager/Controls/PuTTYControl.xaml index 5958d5424b..059a89ae88 100644 --- a/Source/NETworkManager/Controls/PuTTYControl.xaml +++ b/Source/NETworkManager/Controls/PuTTYControl.xaml @@ -19,24 +19,24 @@ - - - - - - + + + + + + + + + diff --git a/Source/NETworkManager/Controls/RemoteDesktopControl.xaml b/Source/NETworkManager/Controls/RemoteDesktopControl.xaml index 3418e5932e..59df96ffbc 100644 --- a/Source/NETworkManager/Controls/RemoteDesktopControl.xaml +++ b/Source/NETworkManager/Controls/RemoteDesktopControl.xaml @@ -18,26 +18,26 @@ - - - - - - + + + + + + + + + diff --git a/Source/NETworkManager/Controls/TigerVNCControl.xaml b/Source/NETworkManager/Controls/TigerVNCControl.xaml index eaa52952ef..f3c1ba7e97 100644 --- a/Source/NETworkManager/Controls/TigerVNCControl.xaml +++ b/Source/NETworkManager/Controls/TigerVNCControl.xaml @@ -19,23 +19,23 @@ - - - - - - + + + + + + + + + diff --git a/Source/NETworkManager/Controls/WebConsoleControl.xaml b/Source/NETworkManager/Controls/WebConsoleControl.xaml index 0a658c3a98..c3093df2b2 100644 --- a/Source/NETworkManager/Controls/WebConsoleControl.xaml +++ b/Source/NETworkManager/Controls/WebConsoleControl.xaml @@ -166,21 +166,21 @@ - - - - - + + + + + + + + \ No newline at end of file diff --git a/Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml b/Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml new file mode 100644 index 0000000000..f7988bad66 --- /dev/null +++ b/Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml @@ -0,0 +1,38 @@ + + + + + + \ No newline at end of file From 0f4c6d56dfe142bc7277430616a4952ae549f947 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:58:06 +0100 Subject: [PATCH 090/232] Changelog: screenshot of embedded windows while a tab is dragged Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index f7b011f8de..08a6153935 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -75,6 +75,7 @@ Release date: **xx.xx.2026** - Buttons, inputs, tooltips and context menus have rounded corners. Buttons have a subtle background instead of a border and are narrower (min. width 100 instead of 150), icon buttons (e.g. next to the inputs) are transparent until the mouse is over them; the main action (e.g. **Scan**, **Connect**) keeps the accent color. Inputs show a gray border while they have the focus and a slightly stronger border when the mouse is over them. Drop-downs (e.g. the profile file in the title bar) are rounded with a shadow like the context menus and show the selected entry with a subtle background instead of the accent color. Keyboard navigation (`Tab`) shows a gray focus ring instead of a dotted rectangle. Scrollbars have a rounded thumb and are less bright when the mouse is over them. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - New layout: the navigation, the main view and the profiles are shown as rounded boxes on a slightly tinted window background (like Visual Studio); the selected application is shown with a rounded background over the whole row and a short accent indicator. The groups of the **Ping Monitor** are shown as sections with a line below the group name. Dialogs are rounded with a soft shadow and darken the window behind them. **Dashboard** widgets and **Ping Monitor** hosts are shown as rounded cards. Lists have taller rows, a subtle mouse over and a light accent-colored selection (instead of the full accent color). The window with dragged-out tabs and the status window use the same layout. Tabs show an accent line below the selected tab; a view with only one tab (e.g. **Dashboard**, **Firewall**) shows its name as a title instead of a tab. On Windows 11, the windows have rounded corners. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Dialogs (e.g. add / edit profile, settings) open with a short zoom and fade and close faster. New setting **Animations** in [Settings > Appearance](../settings/appearance.md#animations): `System` (default, follows the Windows setting **Animation effects**), `On` or `Off`; can be turned on or off for all users with the system-wide policy `Appearance_Animations` (e.g. on a terminal server). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- While a tab is dragged (e.g. to another window or to split the view), **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show a picture of their content instead of an empty area, like the other tools; the window that is dragged shows the icon and the title of the tab. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From b03725ef3a47a60c4a6aec49e4f822b4589e5b9a Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 18:03:55 +0100 Subject: [PATCH 091/232] Improvement: placeholder instead of a screenshot while a tab is dragged User: the screenshots looked bad - sometimes blurry, offset, broken or with a part of the dragged-out window. They are taken when the dragged window is already shown above the tab, the embedded window (ActiveX, WebView2) is not always drawn and the picture is scaled between physical pixels and WPF units (DPI). The EmbeddedWindowDragPresenter now always shows the placeholder (icon of the application and title of the tab) instead of the embedded window during the drag, in all windows. Not for a hidden embedded window (e.g. a disconnected tab, which shows its own message in the center). Co-Authored-By: Claude Opus 5.5 --- .../Controls/EmbeddedWindowDragPresenter.cs | 77 ++++--------------- .../Controls/PowerShellControl.xaml | 2 +- .../NETworkManager/Controls/PuTTYControl.xaml | 2 +- .../Controls/RemoteDesktopControl.xaml | 2 +- .../Controls/TigerVNCControl.xaml | 2 +- .../Controls/WebConsoleControl.xaml | 2 +- .../EmbeddedWindowDragPresenterStyles.xaml | 9 +-- 7 files changed, 20 insertions(+), 76 deletions(-) diff --git a/Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs b/Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs index d3eb886b42..5209883801 100644 --- a/Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs +++ b/Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs @@ -1,7 +1,5 @@ using System.Windows; using System.Windows.Controls; -using System.Windows.Media; -using Dragablz; using NETworkManager.Models; namespace NETworkManager.Controls; @@ -10,19 +8,20 @@ namespace NETworkManager.Controls; /// Hosts an embedded window (Remote Desktop, PowerShell, PuTTY, TigerVNC, WebView2) of a tab. While a window with /// tabs of the application is dragged (, e.g. a tab is dragged out), the embedded window /// is hidden: it is always drawn on top of WPF elements (airspace) and would cover the drop zones of Dragablz -/// (split the tabs). Instead of an empty area, a screenshot of the embedded window is shown, like the content of -/// the other tools (e.g. IP Scanner) stays visible during a drag. In the dragged window itself (just created, its -/// content is not on the screen yet) and if no screenshot can be taken, a placeholder with the icon of the -/// application and the title of the tab is shown. +/// (split the tabs). Instead of an empty area, a placeholder with the icon of the application and the title of the +/// tab is shown. +/// +/// A screenshot of the embedded window was tried instead of the placeholder, but it is taken when the dragged +/// window is already shown above the tab and the embedded window is not always drawn: parts of the dragged +/// window, offset and blurry (DPI scaling) pictures. +/// /// The template is defined in Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml. /// [TemplatePart(Name = PartContent, Type = typeof(ContentPresenter))] -[TemplatePart(Name = PartScreenshot, Type = typeof(Image))] [TemplatePart(Name = PartPlaceholder, Type = typeof(FrameworkElement))] public class EmbeddedWindowDragPresenter : ContentControl { private const string PartContent = "PART_Content"; - private const string PartScreenshot = "PART_Screenshot"; private const string PartPlaceholder = "PART_Placeholder"; public static readonly DependencyProperty IsDraggingProperty = DependencyProperty.Register(nameof(IsDragging), @@ -33,7 +32,6 @@ public class EmbeddedWindowDragPresenter : ContentControl new FrameworkPropertyMetadata(ApplicationName.None)); private ContentPresenter _content; - private Image _screenshot; private FrameworkElement _placeholder; /// @@ -60,7 +58,6 @@ public override void OnApplyTemplate() base.OnApplyTemplate(); _content = GetTemplateChild(PartContent) as ContentPresenter; - _screenshot = GetTemplateChild(PartScreenshot) as Image; _placeholder = GetTemplateChild(PartPlaceholder) as FrameworkElement; Update(IsDragging); @@ -75,62 +72,14 @@ private static void OnIsDraggingChanged(DependencyObject d, DependencyPropertyCh private void Update(bool isDragging) { // Template not applied (yet) - if (_content == null || _screenshot == null || _placeholder == null) + if (_content == null || _placeholder == null) return; - if (!isDragging) - { - _content.Visibility = Visibility.Visible; - _screenshot.Visibility = Visibility.Hidden; - _screenshot.Source = null; - _screenshot.ClearValue(WidthProperty); - _screenshot.ClearValue(HeightProperty); - _placeholder.Visibility = Visibility.Hidden; + _content.Visibility = isDragging ? Visibility.Hidden : Visibility.Visible; - return; - } - - // Tab not shown (e.g. another tab is selected) - nothing to show, hide the embedded window as before - if (IsVisible) - { - // The dragged window was just created, its content is not on the screen yet: a screenshot would show - // what is behind it - var screenshot = IsInDraggedWindow() ? null : AirspacePanel.CaptureScreenshot(_content); - - if (screenshot != null) - { - // Size of the content when the screenshot was taken (top left aligned), not stretched if the window - // is resized during the drag - _screenshot.Width = _content.ActualWidth; - _screenshot.Height = _content.ActualHeight; - _screenshot.Source = screenshot; - _screenshot.Visibility = Visibility.Visible; - } - else - { - _placeholder.Visibility = Visibility.Visible; - } - } - - _content.Visibility = Visibility.Hidden; - } - - /// - /// Whether this tab is in the window that is dragged (Dragablz sets - /// on the tab control of the dragged window). - /// - private bool IsInDraggedWindow() - { - DependencyObject element = this; - - while (element != null) - { - if (element is TabablzControl { IsDraggingWindow: true }) - return true; - - element = VisualTreeHelper.GetParent(element); - } - - return false; + // Only instead of a shown embedded window: e.g. a disconnected tab hides it and shows its own message + _placeholder.Visibility = isDragging && Content is UIElement { Visibility: Visibility.Visible } + ? Visibility.Visible + : Visibility.Hidden; } } diff --git a/Source/NETworkManager/Controls/PowerShellControl.xaml b/Source/NETworkManager/Controls/PowerShellControl.xaml index de2d49076b..bde6724cc1 100644 --- a/Source/NETworkManager/Controls/PowerShellControl.xaml +++ b/Source/NETworkManager/Controls/PowerShellControl.xaml @@ -19,7 +19,7 @@ - diff --git a/Source/NETworkManager/Controls/PuTTYControl.xaml b/Source/NETworkManager/Controls/PuTTYControl.xaml index 059a89ae88..3125e9c023 100644 --- a/Source/NETworkManager/Controls/PuTTYControl.xaml +++ b/Source/NETworkManager/Controls/PuTTYControl.xaml @@ -19,7 +19,7 @@ - diff --git a/Source/NETworkManager/Controls/RemoteDesktopControl.xaml b/Source/NETworkManager/Controls/RemoteDesktopControl.xaml index 59df96ffbc..ca34d9f749 100644 --- a/Source/NETworkManager/Controls/RemoteDesktopControl.xaml +++ b/Source/NETworkManager/Controls/RemoteDesktopControl.xaml @@ -18,7 +18,7 @@ - diff --git a/Source/NETworkManager/Controls/TigerVNCControl.xaml b/Source/NETworkManager/Controls/TigerVNCControl.xaml index f3c1ba7e97..5998602dc1 100644 --- a/Source/NETworkManager/Controls/TigerVNCControl.xaml +++ b/Source/NETworkManager/Controls/TigerVNCControl.xaml @@ -19,7 +19,7 @@ - diff --git a/Source/NETworkManager/Controls/WebConsoleControl.xaml b/Source/NETworkManager/Controls/WebConsoleControl.xaml index c3093df2b2..0dc0c02efd 100644 --- a/Source/NETworkManager/Controls/WebConsoleControl.xaml +++ b/Source/NETworkManager/Controls/WebConsoleControl.xaml @@ -166,7 +166,7 @@ - diff --git a/Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml b/Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml index f7988bad66..548a82bcf1 100644 --- a/Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml @@ -5,18 +5,13 @@ xmlns:controls="clr-namespace:NETworkManager.Controls"> - + - + + HorizontalAlignment="Left" VerticalAlignment="Center" + networkManager:SelectionIndicatorAnimation.IsSelected="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListViewItem}}}"> - + @@ -208,29 +195,7 @@ - - - - + Margin="10,0" Style="{StaticResource DragablzTabHeaderTitle}" /> @@ -248,39 +213,15 @@ Command="dragablz:TabablzControl.CloseItemCommand" ToolTip="{x:Static localization:Strings.Close}" Margin="0,0,10,0"> - + - - - - - - - - + @@ -295,20 +236,7 @@ - - - - - + - - - - + Margin="10,0" Style="{StaticResource DragablzTabHeaderTitle}" /> @@ -382,39 +288,15 @@ Command="dragablz:TabablzControl.CloseItemCommand" ToolTip="{x:Static localization:Strings.Close}" Margin="0,0,10,0"> - + - - - - - - - - + @@ -429,20 +311,7 @@ - - - - - + - - - - + Margin="10,0" Style="{StaticResource DragablzTabHeaderTitle}" /> @@ -530,39 +377,15 @@ Command="dragablz:TabablzControl.CloseItemCommand" ToolTip="{x:Static localization:Strings.Close}" Margin="0,0,10,0"> - + - - - - - - - - + @@ -577,20 +400,7 @@ - - - - - + @@ -618,29 +428,7 @@ - - - - + Margin="10,0" Style="{StaticResource DragablzTabHeaderTitle}" /> @@ -648,39 +436,15 @@ Command="dragablz:TabablzControl.CloseItemCommand" ToolTip="{x:Static localization:Strings.Close}" Margin="0,0,10,0"> - + - - - - - - - - + @@ -695,20 +459,7 @@ - - - - - + @@ -736,29 +487,7 @@ - - - - + Margin="10,0" Style="{StaticResource DragablzTabHeaderTitle}" /> @@ -766,39 +495,15 @@ Command="dragablz:TabablzControl.CloseItemCommand" ToolTip="{x:Static localization:Strings.Close}" Margin="0,0,10,0"> - + - - - - - - - - + diff --git a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml index 8da2431fc5..0ba7cba615 100644 --- a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml @@ -26,6 +26,60 @@ + + + + + + + + + + + + + - - + - - - - - + - - - - - + diff --git a/Source/NETworkManager/Views/PowerShellHostView.xaml b/Source/NETworkManager/Views/PowerShellHostView.xaml index 8de5470966..b89e326c11 100644 --- a/Source/NETworkManager/Views/PowerShellHostView.xaml +++ b/Source/NETworkManager/Views/PowerShellHostView.xaml @@ -100,18 +100,7 @@ Partition="{Binding InterTabPartition}"> - - - - - + - - - - - + - - - - - + diff --git a/Source/NETworkManager/Views/PuTTYHostView.xaml b/Source/NETworkManager/Views/PuTTYHostView.xaml index a0964d3488..4a23d76e31 100644 --- a/Source/NETworkManager/Views/PuTTYHostView.xaml +++ b/Source/NETworkManager/Views/PuTTYHostView.xaml @@ -99,18 +99,7 @@ Partition="{Binding InterTabPartition}"> - - - - - + - - - - - + - - - - - + diff --git a/Source/NETworkManager/Views/RemoteDesktopHostView.xaml b/Source/NETworkManager/Views/RemoteDesktopHostView.xaml index 27bdc74252..76774865c3 100644 --- a/Source/NETworkManager/Views/RemoteDesktopHostView.xaml +++ b/Source/NETworkManager/Views/RemoteDesktopHostView.xaml @@ -97,18 +97,7 @@ Partition="{Binding InterTabPartition}"> - - - - - + @@ -233,30 +222,7 @@ - - - - - + @@ -272,39 +238,15 @@ - - - - - + diff --git a/Source/NETworkManager/Views/TigerVNCHostView.xaml b/Source/NETworkManager/Views/TigerVNCHostView.xaml index f17bd915dd..4a98ca3ec8 100644 --- a/Source/NETworkManager/Views/TigerVNCHostView.xaml +++ b/Source/NETworkManager/Views/TigerVNCHostView.xaml @@ -98,18 +98,7 @@ Partition="{Binding InterTabPartition}"> - - - - - + @@ -134,69 +123,22 @@ - - - - - + - - - - - + diff --git a/Source/NETworkManager/Views/WebConsoleHostView.xaml b/Source/NETworkManager/Views/WebConsoleHostView.xaml index 3705edf0c3..0756478646 100644 --- a/Source/NETworkManager/Views/WebConsoleHostView.xaml +++ b/Source/NETworkManager/Views/WebConsoleHostView.xaml @@ -86,18 +86,7 @@ Partition="{Binding InterTabPartition}"> - - - - - + @@ -122,69 +111,22 @@ - - - - - + - - - - - + From d3816c6e6c9891a60e3f031003d9c22009bc73c2 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 18:15:04 +0100 Subject: [PATCH 098/232] Design: navigation indicator grows slower (D5.4) User: barely visible. 150 ms with a cubic ease-out did most of the growth in the first 50 ms. Now 250 ms with a quadratic ease-out. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/SelectionIndicatorAnimation.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/NETworkManager/SelectionIndicatorAnimation.cs b/Source/NETworkManager/SelectionIndicatorAnimation.cs index 746a32c60b..ae3d58e46f 100644 --- a/Source/NETworkManager/SelectionIndicatorAnimation.cs +++ b/Source/NETworkManager/SelectionIndicatorAnimation.cs @@ -8,12 +8,13 @@ namespace NETworkManager; /// /// Attached property for the accent indicator of a selected item (e.g. the navigation): bind it to the selection of -/// the item. When the item is selected, the indicator grows from its center (height 0 to its size, 150 ms, ease-out). +/// the item. When the item is selected, the indicator grows from its center (height 0 to its size, 250 ms, quadratic ease-out - visible +/// over the whole duration, a cubic ease-out does most of it in the first 50 ms). /// Checks whether animations are enabled each time (see ). /// public static class SelectionIndicatorAnimation { - private static readonly Duration Duration = new(TimeSpan.FromMilliseconds(150)); + private static readonly Duration Duration = new(TimeSpan.FromMilliseconds(250)); public static readonly DependencyProperty IsSelectedProperty = DependencyProperty.RegisterAttached( @@ -43,6 +44,6 @@ private static void OnIsSelectedChanged(DependencyObject d, DependencyPropertyCh element.RenderTransformOrigin = new Point(0.5, 0.5); scale.BeginAnimation(ScaleTransform.ScaleYProperty, - new DoubleAnimation(0, 1, Duration) { EasingFunction = new CubicEase { EasingMode = EasingMode.EaseOut } }); + new DoubleAnimation(0, 1, Duration) { EasingFunction = new QuadraticEase { EasingMode = EasingMode.EaseOut } }); } } From 342a2d976afcdb96dc77e91cf4746dd8dbfa206d Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 18:16:25 +0100 Subject: [PATCH 099/232] Design: tabs like VS Code (D4.13) User idea (screenshot of the VS Code tabs): the tab bar has the frame color, the selected tab has the background of the page with the accent line on top and is part of the page (no line below it). - Dragablz tabs: dockablz:Layout (around the tab controls of the host views and DragablzTabHostWindow) in Brushes.Surface.Frame, the TabablzControl content in ThemeBackground - only the header row shows the frame color, also for split tabs. DragablzTabHeaderBorder: selected tab ThemeBackground (the header overlaps the top border of the content by 1 and is drawn above it, so it covers the line); DragablzTabHeaderAccentLine on top. - DefaultTabControl / DefaultTabItem (fixed tabs, e.g. WiFi, Settings): header in the frame color above the content (ZIndex), separator on the right, selected tab ThemeBackground + accent line on top + 1 px cover over the line. A single tab stays a centered title on the bar with the line below. Heights unchanged (aligned with the navigation). Co-Authored-By: Claude Opus 5.5 --- .../Resources/Styles/DragablzStyles.xaml | 28 ++++++++++++++++--- .../Resources/Styles/TabControlStyles.xaml | 23 ++++++++++++--- 2 files changed, 43 insertions(+), 8 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml index 0ba7cba615..b9a67da9ca 100644 --- a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml @@ -2,6 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" + xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" xmlns:networkManagerControls="clr-namespace:NETworkManager.Controls" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:settings="clr-namespace:NETworkManager.Settings;assembly=NETworkManager.Settings"> @@ -31,7 +32,12 @@ Remote Desktop, PowerShell, PuTTY, TigerVNC and Web Console (host views and DragablzTabHostWindow, which only differ in their context menu). Change the look of the tabs here. --> - + @@ -67,10 +76,10 @@ - + \ No newline at end of file diff --git a/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml b/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml index a67392e8ad..13dad48985 100644 --- a/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml @@ -3,7 +3,9 @@ + + - - - - + + \ No newline at end of file diff --git a/Source/NETworkManager/Views/AboutView.xaml b/Source/NETworkManager/Views/AboutView.xaml index 525c134e27..5a0d75e9e8 100644 --- a/Source/NETworkManager/Views/AboutView.xaml +++ b/Source/NETworkManager/Views/AboutView.xaml @@ -119,10 +119,8 @@ - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + networkManager:SmoothProgress.Value="{Binding HostsScanned}"> + networkManager:SmoothProgress.Value="{Binding PortsScanned}"> - + + + + + + + @@ -77,23 +157,54 @@ - + + + + - + + - + - + From 408da7247465feaeb7e46a8e383125a11908faa2 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 18:54:00 +0100 Subject: [PATCH 116/232] Design: notifications slide in from the right (D5.9) The notification popup appeared instantly at the bottom right. It now slides in 40 px from the right edge of the screen (200 ms, quadratic ease-out). Only the position of the window (Left): the window is not transparent (rounded corners, shadow) and can't fade. The animation stops at the end (FillBehavior Stop + removed), so the positioning of the stack (ApplyPosition when another popup closes / resizes) keeps working. Follows the Animations setting. Co-Authored-By: Claude Opus 5.5 --- .../NETworkManager/NotificationWindow.xaml.cs | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Source/NETworkManager/NotificationWindow.xaml.cs b/Source/NETworkManager/NotificationWindow.xaml.cs index 35837a735b..837b2f2c09 100644 --- a/Source/NETworkManager/NotificationWindow.xaml.cs +++ b/Source/NETworkManager/NotificationWindow.xaml.cs @@ -221,6 +221,33 @@ private void ApplyPosition() Top = area.Bottom / scale - ActualHeight - NotificationManager.WindowMargin - offset; } + /// + /// Slides the popup in from the right edge of the screen (40 px, 200 ms, quadratic ease-out). Only the position: + /// the window is not transparent (rounded corners, shadow), so it can't fade. The animation is removed when it + /// ends, so (stack changes) keeps working. Not without animations + /// (). + /// + private void SlideIn() + { + if (!AppearanceManager.AnimationsEnabled) + return; + + var animation = new System.Windows.Media.Animation.DoubleAnimation(Left + SlideInOffset, Left, + new Duration(TimeSpan.FromMilliseconds(200))) + { + EasingFunction = new System.Windows.Media.Animation.QuadraticEase + { EasingMode = System.Windows.Media.Animation.EasingMode.EaseOut }, + FillBehavior = System.Windows.Media.Animation.FillBehavior.Stop + }; + + // The local value (set by ApplyPosition, also if the stack changed during the animation) applies again + animation.Completed += (_, _) => BeginAnimation(LeftProperty, null); + + BeginAnimation(LeftProperty, animation); + } + + private const double SlideInOffset = 40; + private void CloseWindow() { _timer.Stop(); @@ -240,6 +267,7 @@ protected override void OnSourceInitialized(EventArgs e) base.OnSourceInitialized(e); ApplyPosition(); + SlideIn(); _stopwatch.Restart(); _timer.Start(); From da3978b5575853fa0d34d18ea7fcfe299b3d3a97 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 18:54:00 +0100 Subject: [PATCH 117/232] Design: changelog for the motion and progress indicators (D5) Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 0ad90b09ce..b9ac5c65a8 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -74,7 +74,8 @@ Release date: **xx.xx.2026** - The status colors (e.g. host up / down, port open / closed, changes since the last scan, warnings and errors) are darker in the light theme and easier to read on the white background. Monospace text uses **Cascadia Mono** on Windows 11 (Consolas on Windows 10): IP and MAC addresses, hostnames, ports, subnets and other technical values in the lists, inputs and details of all tools (e.g. **IP Scanner**, **Port Scanner**, **Network Interface**, **Subnet Calculator**), the run command and console output. Names, descriptions and labels keep the normal font. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Buttons, inputs, tooltips and context menus have rounded corners. Buttons have a subtle background instead of a border and are narrower (min. width 100 instead of 150), icon buttons (e.g. next to the inputs) are transparent until the mouse is over them; the main action (e.g. **Scan**, **Connect**) keeps the accent color. Inputs show a gray border while they have the focus and a slightly stronger border when the mouse is over them. Drop-downs (e.g. the profile file in the title bar) are rounded with a shadow like the context menus and show the selected entry with a subtle background instead of the accent color. Keyboard navigation (`Tab`) shows a gray focus ring instead of a dotted rectangle. Scrollbars have a rounded thumb and are less bright when the mouse is over them. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - New layout: the navigation, the main view and the profiles are shown as rounded boxes on a slightly tinted window background (like Visual Studio); the selected application is shown with a rounded background over the whole row and a short accent indicator. The groups of the **Ping Monitor** are shown as sections with a line below the group name. Dialogs are rounded with a soft shadow and darken the window behind them. **Dashboard** widgets and **Ping Monitor** hosts are shown as rounded cards. Lists have taller rows, a subtle mouse over and a light accent-colored selection (instead of the full accent color). The window with dragged-out tabs and the status window use the same layout. Tabs look like in VS Code: the tab bar has the color of the window frame, the selected tab has the background of the page with an accent line on top. On Windows 11, the windows have rounded corners. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- Dialogs (e.g. add / edit profile, settings) open with a short zoom and fade and close faster; the run command slides down from the top. The indicator of the selected tool in the navigation grows in. New setting **Animations** in [Settings > Appearance](../settings/appearance.md#animations): `System` (default, follows the Windows setting **Animation effects**), `On` or `Off`; can be turned on or off for all users with the system-wide policy `Appearance_Animations` (e.g. on a terminal server). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Dialogs (e.g. add / edit profile, settings) open with a short zoom and fade and close faster; the run command slides down from the top. The indicator of the selected tool in the navigation grows in, buttons and the navigation fade their mouse over / pressed background, expanders rotate their arrow and fade in their content, tooltips appear faster, notifications slide in from the right and the progress of the **IP Scanner** and **Port Scanner** moves smoothly (at most 10 updates per second of the bar, also for large scans). New setting **Animations** in [Settings > Appearance](../settings/appearance.md#animations): `System` (default, follows the Windows setting **Animation effects**), `On` or `Off`; can be turned on or off for all users with the system-wide policy `Appearance_Animations` (e.g. on a terminal server). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Progress bars and loading indicators look the same in all tools: progress bars in the accent color on a subtle track (also readable in the light theme), one kind of spinner in three sizes instead of three different loading animations. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - While a tab is dragged (e.g. to another window or to split the view), **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show the icon of the tool and the title of the tab instead of an empty area. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From 35cbe5baab2de7977de61f6f722f5ac0a392a557 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 19:13:10 +0100 Subject: [PATCH 118/232] Design: section headers 16 SemiBold (D7.2) HeaderTextBlock (175 uses: e.g. Firewall rules, the sections of the settings and the profile dialog) was 18 in the light header font (Segoe UI Light) in gray - thin, large and low contrast next to the 14 regular text and tabs. Decision (user): 16 SemiBold in the control font and the text color, like Windows 11 Settings / Visual Studio. The tab title (DragablzTabHeaderTextBlock, based on it) stays regular. Co-Authored-By: Claude Opus 5.5 --- .../NETworkManager/Resources/Styles/DragablzStyles.xaml | 1 + .../NETworkManager/Resources/Styles/TextBlockStyles.xaml | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml index b9a67da9ca..4fd8a31181 100644 --- a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml @@ -15,6 +15,7 @@ + From 60120af2a5d9dcf165a74c6fc698d89239a9f318 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 19:13:29 +0100 Subject: [PATCH 119/232] Design: navigation items 14 regular (D7.2) The names of the applications and the settings entry in the navigation were based on HeaderTextBlock (18 light header font, now the 16 SemiBold section header). Decision (user): 14 regular like the tabs, more tools fit. Colors (gray, mouse over, selected) unchanged. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/MainWindow.xaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index 304be05da3..866394f6b5 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -793,8 +793,9 @@ Text="{Binding Name, Converter={StaticResource ApplicationNameToTranslatedStringConverter}}" Margin="2,0,0,0"> + + From 4b79520479d976acaeb637f621fd31208e0b35b0 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 19:14:14 +0100 Subject: [PATCH 122/232] Design: changelog for the typography (D7) Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index b9ac5c65a8..86328745ca 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -76,6 +76,7 @@ Release date: **xx.xx.2026** - New layout: the navigation, the main view and the profiles are shown as rounded boxes on a slightly tinted window background (like Visual Studio); the selected application is shown with a rounded background over the whole row and a short accent indicator. The groups of the **Ping Monitor** are shown as sections with a line below the group name. Dialogs are rounded with a soft shadow and darken the window behind them. **Dashboard** widgets and **Ping Monitor** hosts are shown as rounded cards. Lists have taller rows, a subtle mouse over and a light accent-colored selection (instead of the full accent color). The window with dragged-out tabs and the status window use the same layout. Tabs look like in VS Code: the tab bar has the color of the window frame, the selected tab has the background of the page with an accent line on top. On Windows 11, the windows have rounded corners. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Dialogs (e.g. add / edit profile, settings) open with a short zoom and fade and close faster; the run command slides down from the top. The indicator of the selected tool in the navigation grows in, buttons and the navigation fade their mouse over / pressed background, expanders rotate their arrow and fade in their content, tooltips appear faster, notifications slide in from the right and the progress of the **IP Scanner** and **Port Scanner** moves smoothly (at most 10 updates per second of the bar, also for large scans). New setting **Animations** in [Settings > Appearance](../settings/appearance.md#animations): `System` (default, follows the Windows setting **Animation effects**), `On` or `Off`; can be turned on or off for all users with the system-wide policy `Appearance_Animations` (e.g. on a terminal server). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Progress bars and loading indicators look the same in all tools: progress bars in the accent color on a subtle track (also readable in the light theme), one kind of spinner in three sizes instead of three different loading animations. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Clearer text: section headers (e.g. in the settings and the profile dialog) are 16 semibold instead of 18 light gray, the tools in the navigation 14 like the tabs, messages in empty areas 16. On Windows 11 the application uses **Segoe UI Variable** (Segoe UI on Windows 10). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - While a tab is dragged (e.g. to another window or to split the view), **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show the icon of the tool and the title of the tab instead of an empty area. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From 0993d93d8afa1c2cfc20aac6f6f5a3f5da795c35 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 19:20:41 +0100 Subject: [PATCH 123/232] Fix: no tab title in the placeholder of a dragged-out tab User: in the window of a dragged-out PuTTY / Remote Desktop tab the placeholder showed no title. It was bound to the selected item of the surrounding TabablzControl - in the window that was just created for the dragged tab, no tab is selected yet during the drag. EmbeddedWindowDragPresenter now finds its own tab when the drag starts (the DragablzTabItem of the TabablzControl whose view, e.g. PuTTYControl, contains the presenter; selected item as fallback) and shows its header (new Title property). Co-Authored-By: Claude Opus 5.5 --- .../Controls/EmbeddedWindowDragPresenter.cs | 48 ++++++++++++++++++- .../EmbeddedWindowDragPresenterStyles.xaml | 4 +- 2 files changed, 49 insertions(+), 3 deletions(-) diff --git a/Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs b/Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs index 5209883801..6ccbf5d35b 100644 --- a/Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs +++ b/Source/NETworkManager/Controls/EmbeddedWindowDragPresenter.cs @@ -1,5 +1,8 @@ -using System.Windows; +using System.Linq; +using System.Windows; using System.Windows.Controls; +using System.Windows.Media; +using Dragablz; using NETworkManager.Models; namespace NETworkManager.Controls; @@ -31,6 +34,9 @@ public class EmbeddedWindowDragPresenter : ContentControl nameof(ApplicationName), typeof(ApplicationName), typeof(EmbeddedWindowDragPresenter), new FrameworkPropertyMetadata(ApplicationName.None)); + public static readonly DependencyProperty TitleProperty = DependencyProperty.Register(nameof(Title), + typeof(string), typeof(EmbeddedWindowDragPresenter), new FrameworkPropertyMetadata(string.Empty)); + private ContentPresenter _content; private FrameworkElement _placeholder; @@ -53,6 +59,15 @@ public ApplicationName ApplicationName set => SetValue(ApplicationNameProperty, value); } + /// + /// Title of the tab, for the placeholder (set when the drag starts). + /// + public string Title + { + get => (string)GetValue(TitleProperty); + set => SetValue(TitleProperty, value); + } + public override void OnApplyTemplate() { base.OnApplyTemplate(); @@ -77,9 +92,40 @@ private void Update(bool isDragging) _content.Visibility = isDragging ? Visibility.Hidden : Visibility.Visible; + if (isDragging) + Title = FindTabItem()?.Header ?? string.Empty; + // Only instead of a shown embedded window: e.g. a disconnected tab hides it and shows its own message _placeholder.Visibility = isDragging && Content is UIElement { Visibility: Visibility.Visible } ? Visibility.Visible : Visibility.Hidden; } + + /// + /// The tab of this embedded window: the tab of the surrounding TabablzControl whose view (e.g. PuTTYControl) + /// contains this presenter. Not the selected item of the TabablzControl - in the window that was just + /// created for a dragged-out tab, no tab is selected yet during the drag. + /// + private DragablzTabItem FindTabItem() + { + UserControl view = null; + DependencyObject element = this; + + while (element != null) + { + element = VisualTreeHelper.GetParent(element); + + switch (element) + { + case UserControl userControl when view == null: + view = userControl; + break; + case TabablzControl tabablzControl: + return tabablzControl.Items.OfType().FirstOrDefault(x => ReferenceEquals(x.View, view)) + ?? tabablzControl.SelectedItem as DragablzTabItem; + } + } + + return null; + } } diff --git a/Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml b/Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml index 548a82bcf1..34c401a44b 100644 --- a/Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/EmbeddedWindowDragPresenterStyles.xaml @@ -18,11 +18,11 @@ - + + Text="{Binding Title, RelativeSource={RelativeSource TemplatedParent}}" /> From 36c6ba65a8fd17a21143a3c29fb42511d51d5a70 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 19:22:04 +0100 Subject: [PATCH 124/232] Design: own headings in Connections, Listeners, Neighbor Table, Hosts File Editor (D7.4) The heading in these views repeated the title of the tab (the name of the tool), more visible with the semibold headers. User: keep the layout (like the tabs of WiFi), but name the heading after what the list shows, like Firewall rules / Client (Wake on LAN): Active connections, Listening ports, Neighbor entries, Hosts file entries (new strings). Co-Authored-By: Claude Opus 5.5 --- .../Resources/Strings.Designer.cs | 36 +++++++++++++++++++ .../Resources/Strings.resx | 12 +++++++ .../NETworkManager/Views/ConnectionsView.xaml | 2 +- .../Views/HostsFileEditorView.xaml | 2 +- .../NETworkManager/Views/ListenersView.xaml | 2 +- .../Views/NeighborTableView.xaml | 2 +- 6 files changed, 52 insertions(+), 4 deletions(-) diff --git a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs index 5bff93942f..5a66558e4e 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs +++ b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs @@ -303,6 +303,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}. /// @@ -6608,6 +6617,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.. /// @@ -7680,6 +7698,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. /// @@ -8337,6 +8364,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. /// diff --git a/Source/NETworkManager.Localization/Resources/Strings.resx b/Source/NETworkManager.Localization/Resources/Strings.resx index 3eaadffba5..aaa70d508a 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.resx +++ b/Source/NETworkManager.Localization/Resources/Strings.resx @@ -5486,4 +5486,16 @@ Do you want to start the scan? 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 + \ No newline at end of file diff --git a/Source/NETworkManager/Views/ConnectionsView.xaml b/Source/NETworkManager/Views/ConnectionsView.xaml index 0fd8cd98a9..44de0f3b22 100644 --- a/Source/NETworkManager/Views/ConnectionsView.xaml +++ b/Source/NETworkManager/Views/ConnectionsView.xaml @@ -36,7 +36,7 @@ Date: Tue, 10 Nov 2026 19:22:04 +0100 Subject: [PATCH 125/232] Changelog: own headings in Connections, Listeners, Neighbor Table, Hosts File Editor Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 86328745ca..adcf5e116b 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -223,6 +223,7 @@ Release date: **xx.xx.2026** **Hosts File Editor** +- The list has its own heading **Hosts file entries** instead of repeating the name of the tool. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Added **Copy as...** to the context menu to create a new entry based on an existing one. The copy is added directly below the original entry. [0544698](https://github.com/BornToBeRoot/NETworkManager/commit/0544698aefc325ab36ca4c8e80250e1fe0b62d4a) - Multiple entries can now be selected to enable, disable or delete them at once, or to change their comment via **Edit entries...** (`F2`). The edit dialog switches to a bulk mode in which only the comment can be changed. [#3624](https://github.com/BornToBeRoot/NETworkManager/pull/3624) - Entries that don't change (e.g. enabling an already enabled entry, or confirming the edit dialog without changes) are no longer rewritten in the `hosts` file, so custom formatting such as tabs or alignment is kept. [#3624](https://github.com/BornToBeRoot/NETworkManager/pull/3624) @@ -269,18 +270,21 @@ Release date: **xx.xx.2026** **Connections** +- The list has its own heading **Active connections** instead of repeating the name of the tool. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - The search filters after a short delay while typing instead of on every key press (smoother with many connections), `Enter` filters right away. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - The time of the last refresh (`Reloaded at 14:32`, the date in the tooltip) is shown in the header instead of a status line below the list; with **Automatically update every**, a countdown to the next refresh (`Next refresh in 00:04`). A manual refresh is faster (the minimum of 2.5 seconds runs while loading, not before) and the refresh icon spins until it is finished. [#3685](https://github.com/BornToBeRoot/NETworkManager/pull/3685) - **Export...** exports the entries shown (search) in the order shown (sorting), the selected entries in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) **Listeners** +- The list has its own heading **Listening ports** instead of repeating the name of the tool. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - The search filters after a short delay while typing instead of on every key press (smoother with many listeners), `Enter` filters right away. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - The time of the last refresh (`Reloaded at 14:32`, the date in the tooltip) is shown in the header instead of a status line below the list; with **Automatically update every**, a countdown to the next refresh (`Next refresh in 00:04`). A manual refresh is faster (the minimum of 2.5 seconds runs while loading, not before) and the refresh icon spins until it is finished. [#3685](https://github.com/BornToBeRoot/NETworkManager/pull/3685) - **Export...** exports the entries shown (search) in the order shown (sorting), the selected entries in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) **Neighbor Table** +- The list has its own heading **Neighbor entries** instead of repeating the name of the tool. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - The search filters after a short delay while typing instead of on every key press (smoother with many entries), `Enter` filters right away. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - The time of the last refresh (`Reloaded at 14:32`, the date in the tooltip) is shown in the header instead of a status line below the list; with **Automatically update every**, a countdown to the next refresh (`Next refresh in 00:04`). The line below the list only shows errors. A manual refresh is faster (the minimum of 2.5 seconds runs while loading, not before) and the refresh icon spins until it is finished. [#3685](https://github.com/BornToBeRoot/NETworkManager/pull/3685) - **Export...** exports the entries shown (search) in the order shown (sorting), the selected entries in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) From 9d0a9830881b3779fd71438370aa9ce280e76e01 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 19:32:34 +0100 Subject: [PATCH 126/232] Design: boxes raised on a darker frame in the dark theme, softer border (D9.0) In the dark theme the frame (window, navigation, tab bar) was the background + 4 % white, so slightly lighter than the boxes. Now the frame is the background 18 % darker (MahApps dark: #1E1E1E frame, #252525 box) and the boxes look raised like in Visual Studio / the Windows 11 Settings. Light theme unchanged (4 % foreground, white boxes). Custom themes by their base color scheme. The border of the boxes (ViewBox) and cards (CardBorder) is the new Brushes.Surface.Border (10 % foreground) instead of Gray8: about the same in the dark theme, softer in the light theme. Co-Authored-By: Claude Opus 5.5 --- .../AppearanceManager.cs | 19 +++++++++++++++++-- .../Resources/Styles/BorderStyles.xaml | 4 ++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 75e23bc570..1eafa31ba2 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -77,6 +77,11 @@ public static class AppearanceManager /// 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 a selected row (data grid) when the mouse is over it. /// @@ -244,12 +249,22 @@ private static void ApplyControlStateBrushes(Theme theme) appResources[ButtonMouseOverOverlayBrushKey] = CreateFrozenBrush(foreground, 1 - 0.90 / 0.94); appResources[ControlPressedOverlayBrushKey] = CreateFrozenBrush(foreground, 1 - 0.86 / 0.90); - // Opaque (window background): 4 % of the foreground on the background of the theme + // Opaque (window background) around the boxes (theme background): the boxes look raised on the frame like in + // Visual Studio / Windows 11. Dark: the background 18 % darker (MahApps dark: #1E1E1E 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; - appResources[SurfaceFrameBrushKey] = CreateFrozenBrush(Blend(background, foreground, 0.04), 1); + var frame = theme.BaseColorScheme == ThemeManager.BaseColorDark + ? Blend(background, Colors.Black, 0.18) + : 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); ApplyDataGridBrushes(theme, foreground); ApplyToggleSwitchDisabledBrushes(theme); diff --git a/Source/NETworkManager/Resources/Styles/BorderStyles.xaml b/Source/NETworkManager/Resources/Styles/BorderStyles.xaml index cd1fc1ace5..e600f0a934 100644 --- a/Source/NETworkManager/Resources/Styles/BorderStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/BorderStyles.xaml @@ -5,7 +5,7 @@ (a tint would look like the frame of the window behind the box) --> @@ -17,7 +17,7 @@ --> From 2b29b406fb0275cf944a202d483c5617b3f64984 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 19:33:03 +0100 Subject: [PATCH 127/232] Design: selected tool in the navigation with an accent tint (D9.0) The selected application had a neutral gray pill (12 % foreground) with the accent indicator and icon. Now the pill is a light tint of the accent (new Brushes.Navigation.Selected, 15 % accent, AppearanceManager on every theme / accent change), like the accent line of the selected tab. Mouse over stays the neutral tint, so hover and selection differ. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager.Settings/AppearanceManager.cs | 9 +++++++++ Source/NETworkManager/MainWindow.xaml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 1eafa31ba2..1170933eed 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -82,6 +82,11 @@ public static class AppearanceManager /// 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 a selected row (data grid) when the mouse is over it. /// @@ -266,6 +271,10 @@ private static void ApplyControlStateBrushes(Theme theme) // contrast comes from the frame) appResources[SurfaceBorderBrushKey] = CreateFrozenBrush(foreground, 0.10); + // 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); + ApplyDataGridBrushes(theme, foreground); ApplyToggleSwitchDisabledBrushes(theme); } diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index 866394f6b5..b14689f390 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -742,7 +742,7 @@ Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListViewItem}}}" Value="True"> + Value="{DynamicResource Brushes.Navigation.Selected}" /> From 18c0b5e25ccf905794f0dad665e7107c7d9d0acf Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 19:34:49 +0100 Subject: [PATCH 128/232] Design: theme-aware chart colors, fading area fill (D9.3) The charts used fixed colors in both themes: #1ba1e2 (ping, download, cities of the traceroute map), #7fba00 (upload) and a fixed palette of 12 colors for the WiFi networks - too bright / too weak on white. New ChartColors (read when a chart is created): main and second series color and the WiFi palette per theme - same hues, a bit brighter on dark, darker on the light background. The fill below the lines (Ping Monitor, bandwidth of the Network Interface, speed test widget) fades from 33 % of the line color to transparent (LinearGradientPaint) instead of a flat 20 %. The WiFi channel trapezoids keep the flat fill (overlapping networks), the signal strength scale keeps its meaning colors. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager/ChartColors.cs | 78 +++++++++++++++++++ .../Controls/TracerouteMapControl.xaml.cs | 13 ++-- .../ViewModels/NetworkInterfaceViewModel.cs | 8 +- .../ViewModels/PingMonitorViewModel.cs | 4 +- .../ViewModels/SpeedTestWidgetViewModel.cs | 8 +- .../ViewModels/WiFiViewModel.cs | 17 +--- 6 files changed, 98 insertions(+), 30 deletions(-) create mode 100644 Source/NETworkManager/ChartColors.cs diff --git a/Source/NETworkManager/ChartColors.cs b/Source/NETworkManager/ChartColors.cs new file mode 100644 index 0000000000..6d81ae7624 --- /dev/null +++ b/Source/NETworkManager/ChartColors.cs @@ -0,0 +1,78 @@ +using System.Windows; +using System.Windows.Media; +using LiveChartsCore.Painting; +using LiveChartsCore.SkiaSharpView.Painting; +using SkiaSharp; + +namespace NETworkManager; + +/// +/// Colors of the charts and maps (Ping Monitor, bandwidth of the Network Interface, speed test, WiFi channels, +/// cities of the traceroute map) for the current theme: the same hues in both themes, a bit brighter on the dark and +/// darker on the light background for contrast. Read when a chart is created. +/// +public static class ChartColors +{ + // Dark theme: brighter than the former fixed colors (#1ba1e2, #7fba00); light theme: darker for the white + // background + private static readonly SKColor PrimaryDark = SKColor.Parse("#3aaee8"); + private static readonly SKColor PrimaryLight = SKColor.Parse("#0a76b5"); + private static readonly SKColor SecondaryDark = SKColor.Parse("#8cc63f"); + private static readonly SKColor SecondaryLight = SKColor.Parse("#4a8a00"); + + // One color per network (WiFi channels), distinct hues + private static readonly SKColor[] PaletteDark = + [ + SKColor.Parse("#3aaee8"), SKColor.Parse("#b5d335"), SKColor.Parse("#f5ad2a"), + SKColor.Parse("#ff5c4d"), SKColor.Parse("#8f5cff"), SKColor.Parse("#1ec2bf"), + SKColor.Parse("#ff4fa3"), SKColor.Parse("#7ccf3a"), SKColor.Parse("#ff8a3d"), + SKColor.Parse("#5a8cff"), SKColor.Parse("#c25cff"), SKColor.Parse("#c08a52") + ]; + + private static readonly SKColor[] PaletteLight = + [ + SKColor.Parse("#0a76b5"), SKColor.Parse("#6f8a00"), SKColor.Parse("#b8740a"), + SKColor.Parse("#c41200"), SKColor.Parse("#5a00d6"), SKColor.Parse("#008a88"), + SKColor.Parse("#b8005f"), SKColor.Parse("#3f8a10"), SKColor.Parse("#c95300"), + SKColor.Parse("#0042c4"), SKColor.Parse("#8a00cc"), SKColor.Parse("#6b4824") + ]; + + /// + /// if the current theme has a dark background. + /// + private static bool IsDark => + Application.Current?.TryFindResource("MahApps.Colors.ThemeBackground") is not Color background || + 0.2126 * background.R + 0.7152 * background.G + 0.0722 * background.B < 128; + + /// + /// Main series (ping time, download, cities of the traceroute map). + /// + public static SKColor Primary => IsDark ? PrimaryDark : PrimaryLight; + + /// + /// Second series (upload). + /// + public static SKColor Secondary => IsDark ? SecondaryDark : SecondaryLight; + + /// + /// Color of the series with the index (e.g. a WiFi network), repeats after 12 colors. + /// + public static SKColor GetPaletteColor(int index) + { + var palette = IsDark ? PaletteDark : PaletteLight; + + return palette[index % palette.Length]; + } + + /// + /// as WPF color (e.g. the traceroute map). + /// + public static Color PrimaryWpf => Color.FromRgb(Primary.Red, Primary.Green, Primary.Blue); + + /// + /// Fill below a line: from 33 % of the line color at the top to transparent at the bottom. + /// + public static Paint AreaFill(SKColor color) => + new LinearGradientPaint([color.WithAlpha(0x55), color.WithAlpha(0x00)], new SKPoint(0.5f, 0), + new SKPoint(0.5f, 1)); +} diff --git a/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs b/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs index a45b45b869..c49ec850c9 100644 --- a/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs +++ b/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs @@ -78,10 +78,11 @@ public partial class TracerouteMapControl // Hops/arrows and country labels follow the theme (accent / muted gray, via // SetResourceReference per element so they track theme switches a frozen brush couldn't). - // Cities deliberately don't: they keep a fixed brand blue (the speedtest download series' - // "#1ba1e2") so they stay a consistent "reference point" color that doesn't compete with the - // accent-colored traceroute path in either theme. - private static readonly Brush CityBrush = FreezeBrush(Color.FromRgb(0x1B, 0xA1, 0xE2)); + // Cities deliberately don't follow the accent: they use the main chart color (ChartColors.Primary, + // like the speedtest download series, darker in the light theme) so they stay a consistent + // "reference point" color that doesn't compete with the accent-colored traceroute path. + // Created with the map (theme of that moment). + private readonly Brush _cityBrush = FreezeBrush(ChartColors.PrimaryWpf); // Shared by every label/dot so a single assignment (in ApplyTransform) keeps their on-screen // size constant while the map itself is scaled by the parent Canvas' zoom transform. Elements @@ -353,7 +354,7 @@ private void BuildCities() { Width = CityDotSize, Height = CityDotSize, - Fill = CityBrush, + Fill = _cityBrush, RenderTransform = _inverseScaleTransform, RenderTransformOrigin = new Point(0.5, 0.5) }; @@ -370,7 +371,7 @@ private void BuildCities() { Text = city.N, FontSize = 11, - Foreground = CityBrush, + Foreground = _cityBrush, IsHitTestVisible = false, RenderTransform = _inverseScaleTransform, RenderTransformOrigin = new Point(0.5, 0.5) diff --git a/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs b/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs index 9a77766a01..734366d39d 100644 --- a/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs +++ b/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs @@ -558,8 +558,8 @@ private void InitialBandwidthChart() UpdateMaxBandwidthValues(); - var downloadColor = SKColor.Parse("#1ba1e2"); - var uploadColor = SKColor.Parse("#7fba00"); + var downloadColor = ChartColors.Primary; + var uploadColor = ChartColors.Secondary; var labelColor = Application.Current?.TryFindResource("MahApps.Brushes.Gray5") is System.Windows.Media.SolidColorBrush gray5 ? new SKColor(gray5.Color.R, gray5.Color.G, gray5.Color.B, gray5.Color.A) @@ -582,7 +582,7 @@ private void InitialBandwidthChart() LineSmoothness = 0.3, DataPadding = new LvcPoint(0, 0), Stroke = new SolidColorPaint(downloadColor) { StrokeThickness = 1.5f }, - Fill = new SolidColorPaint(downloadColor.WithAlpha(0x33)) + Fill = ChartColors.AreaFill(downloadColor) }, new LineSeries { @@ -595,7 +595,7 @@ private void InitialBandwidthChart() LineSmoothness = 0.3, DataPadding = new LvcPoint(0, 0), Stroke = new SolidColorPaint(uploadColor) { StrokeThickness = 1.5f }, - Fill = new SolidColorPaint(uploadColor.WithAlpha(0x33)) + Fill = ChartColors.AreaFill(uploadColor) } ]; diff --git a/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs b/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs index 62c2ca8833..fee96d425c 100644 --- a/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs +++ b/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs @@ -305,7 +305,7 @@ private void InitialTimeChart() { _pingValues = []; - var chartColor = SKColor.Parse("#1ba1e2"); + var chartColor = ChartColors.Primary; var labelColor = Application.Current?.TryFindResource("MahApps.Brushes.Gray5") is System.Windows.Media.SolidColorBrush gray5 ? new SKColor(gray5.Color.R, gray5.Color.G, gray5.Color.B, gray5.Color.A) @@ -328,7 +328,7 @@ private void InitialTimeChart() LineSmoothness = 0.3, DataPadding = new LvcPoint(0, 0), Stroke = new SolidColorPaint(chartColor) { StrokeThickness = 1.5f }, - Fill = new SolidColorPaint(chartColor.WithAlpha(0x33)) + Fill = ChartColors.AreaFill(chartColor) } ]; diff --git a/Source/NETworkManager/ViewModels/SpeedTestWidgetViewModel.cs b/Source/NETworkManager/ViewModels/SpeedTestWidgetViewModel.cs index 33c785213e..e2c7baf8e5 100644 --- a/Source/NETworkManager/ViewModels/SpeedTestWidgetViewModel.cs +++ b/Source/NETworkManager/ViewModels/SpeedTestWidgetViewModel.cs @@ -170,7 +170,7 @@ private set public SpeedTestWidgetViewModel() { - var downloadColor = SKColor.Parse("#1ba1e2"); + var downloadColor = ChartColors.Primary; DownloadSeries = [ new LineSeries @@ -181,11 +181,11 @@ public SpeedTestWidgetViewModel() LineSmoothness = 0.3, DataPadding = new LvcPoint(0, 0), Stroke = new SolidColorPaint(downloadColor) { StrokeThickness = 1.5f }, - Fill = new SolidColorPaint(downloadColor.WithAlpha(0x33)) + Fill = ChartColors.AreaFill(downloadColor) } ]; - var uploadColor = SKColor.Parse("#7fba00"); + var uploadColor = ChartColors.Secondary; UploadSeries = [ new LineSeries @@ -196,7 +196,7 @@ public SpeedTestWidgetViewModel() LineSmoothness = 0.3, DataPadding = new LvcPoint(0, 0), Stroke = new SolidColorPaint(uploadColor) { StrokeThickness = 1.5f }, - Fill = new SolidColorPaint(uploadColor.WithAlpha(0x33)) + Fill = ChartColors.AreaFill(uploadColor) } ]; } diff --git a/Source/NETworkManager/ViewModels/WiFiViewModel.cs b/Source/NETworkManager/ViewModels/WiFiViewModel.cs index 949ca1cf9b..f16574ede8 100644 --- a/Source/NETworkManager/ViewModels/WiFiViewModel.cs +++ b/Source/NETworkManager/ViewModels/WiFiViewModel.cs @@ -972,19 +972,6 @@ void AddToChart(WiFiChannelChart chart, WiFiNetworkInfo network, int? colorIndex } } - /// - /// Color palette used to assign a distinct, deterministic color to each network series. - /// Assigning the stroke explicitly (instead of relying on the LiveCharts2 theme) keeps the - /// legend, the chart and the tooltip in sync. - /// - private static readonly SKColor[] ChartPalette = - [ - SKColor.Parse("#1ba1e2"), SKColor.Parse("#a4c400"), SKColor.Parse("#f0a30a"), - SKColor.Parse("#e51400"), SKColor.Parse("#6a00ff"), SKColor.Parse("#00aba9"), - SKColor.Parse("#d80073"), SKColor.Parse("#60a917"), SKColor.Parse("#fa6800"), - SKColor.Parse("#0050ef"), SKColor.Parse("#aa00ff"), SKColor.Parse("#825a2c") - ]; - // The Y axis is plotted in 0..100 space (signal strength + 100) so the area fill drops to the // bottom baseline; the axis labeler converts back to real dBm for display. private const double SignalOffset = 100; @@ -1139,7 +1126,9 @@ private static RectangularSection NewSection(double yi, double yj, string color) /// private static (LineSeries Series, WiFiChannelLegendEntry Legend) BuildNetworkSeries(WiFiNetworkInfo network, int colorIndex) { - var color = ChartPalette[colorIndex % ChartPalette.Length]; + // Distinct, deterministic color per network (theme-aware, see ChartColors); assigned explicitly instead of the + // LiveCharts2 theme so the legend, the chart and the tooltip are in sync + var color = ChartColors.GetPaletteColor(colorIndex); double dbm = network.AvailableNetwork.NetworkRssiInDecibelMilliwatts; var center = WiFiChannelAxis.ChannelToPosition( From f589e69134e2a30f0aaea07bef3786b2428d06e3 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 19:36:48 +0100 Subject: [PATCH 129/232] Feature: optional accent glow in the main window (D9) User idea: a gradient from the accent color into the dark background, seen on websites. In the app almost everything is covered by the boxes, so only as a subtle, opt-in glow: new setting Settings > Appearance > Accent glow (Appearance_AccentGlow, default off). New Brushes.Surface.Window (AppearanceManager.ApplyWindowBrush, on every theme change and when the setting changes): the frame color, with the glow a radial gradient from 10 % accent in the top left corner to the frame color (700 x 500 px, absolute coordinates, so the window, the title bar and the navigation show one continuous gradient). Used for the background and title bar of the main window and the navigation; the boxes and other windows are unchanged. Co-Authored-By: Claude Opus 5.5 --- .../Resources/Strings.Designer.cs | 18 +++++++ .../Resources/Strings.resx | 6 +++ .../AppearanceManager.cs | 49 +++++++++++++++++++ .../GlobalStaticConfiguration.cs | 1 + .../NETworkManager.Settings/SettingsInfo.cs | 13 +++++ Source/NETworkManager/MainWindow.xaml | 13 ++--- .../ViewModels/SettingsAppearanceViewModel.cs | 20 ++++++++ .../Views/SettingsAppearanceView.xaml | 10 ++++ 8 files changed, 124 insertions(+), 6 deletions(-) diff --git a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs index 5a66558e4e..2e4c1deb48 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs +++ b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs @@ -294,6 +294,15 @@ 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 Action. /// @@ -5950,6 +5959,15 @@ public static string Help { } } + /// + /// Looks up a localized string similar to Shows a subtle glow of the accent color in the top left corner of the main window (window background, title bar and navigation).. + /// + 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.. /// diff --git a/Source/NETworkManager.Localization/Resources/Strings.resx b/Source/NETworkManager.Localization/Resources/Strings.resx index aaa70d508a..bb5879dbc9 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.resx +++ b/Source/NETworkManager.Localization/Resources/Strings.resx @@ -5498,4 +5498,10 @@ Do you want to start the scan? Neighbor entries + + Accent glow + + + Shows a subtle glow of the accent color in the top left corner of the main window (window background, title bar and navigation). + \ No newline at end of file diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 1170933eed..05cf3ab4e6 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -87,6 +87,15 @@ public static class AppearanceManager /// public const string NavigationSelectedBrushKey = "Brushes.Navigation.Selected"; + /// + /// Resource key of the background of the main 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"; + + 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. /// @@ -208,6 +217,42 @@ private static void LoadCustomThemes() CustomThemes = customThemes; } + /// + /// Sets the background of the main window (): the frame color, or with the + /// accent glow (Settings > Appearance) a radial gradient from 10 % of the accent 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() + { + Brush brush; + + if (SettingsManager.Current?.Appearance_AccentGlow == true) + { + 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(Blend(_frameColor, _accentColor, 0.10), 0)); + gradient.GradientStops.Add(new GradientStop(_frameColor, 1)); + gradient.Freeze(); + + brush = gradient; + } + else + { + brush = CreateFrozenBrush(_frameColor, 1); + } + + System.Windows.Application.Current.Resources[SurfaceWindowBrushKey] = brush; + } + /// /// Method to change the application theme (and accent). /// @@ -275,6 +320,10 @@ private static void ApplyControlStateBrushes(Theme theme) var accent = theme.Resources["MahApps.Colors.Accent"] is Color accentColor ? accentColor : Colors.Gray; appResources[NavigationSelectedBrushKey] = CreateFrozenBrush(accent, 0.15); + _frameColor = frame; + _accentColor = accent; + ApplyWindowBrush(); + ApplyDataGridBrushes(theme, foreground); ApplyToggleSwitchDisabledBrushes(theme); } diff --git a/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs b/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs index d527e09093..d7c2c98d13 100644 --- a/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs +++ b/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs @@ -90,6 +90,7 @@ public static class GlobalStaticConfiguration public static string Appearance_Accent => "Lime"; public static bool Appearance_UseCustomTheme => false; public static AnimationMode Appearance_Animations => AnimationMode.System; + public static bool Appearance_AccentGlow => false; // Settings: Network public static bool Network_AddDNSSuffix => true; diff --git a/Source/NETworkManager.Settings/SettingsInfo.cs b/Source/NETworkManager.Settings/SettingsInfo.cs index 3e50f4c688..3697d711fd 100644 --- a/Source/NETworkManager.Settings/SettingsInfo.cs +++ b/Source/NETworkManager.Settings/SettingsInfo.cs @@ -360,6 +360,19 @@ public string Appearance_CustomThemeName } } + public bool Appearance_AccentGlow + { + get; + set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } = GlobalStaticConfiguration.Appearance_AccentGlow; + public AnimationMode Appearance_Animations { get; diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index b14689f390..4948d29006 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -19,9 +19,9 @@ xmlns:models="clr-namespace:NETworkManager.Models;assembly=NETworkManager.Models" mc:Ignorable="d" Style="{DynamicResource ResourceKey=DefaultWindow}" - Background="{DynamicResource Brushes.Surface.Frame}" - WindowTitleBrush="{DynamicResource Brushes.Surface.Frame}" - NonActiveWindowTitleBrush="{DynamicResource Brushes.Surface.Frame}" + Background="{DynamicResource Brushes.Surface.Window}" + WindowTitleBrush="{DynamicResource Brushes.Surface.Window}" + NonActiveWindowTitleBrush="{DynamicResource Brushes.Surface.Window}" MinWidth="800" MinHeight="600" Width="1024" Height="768" SaveWindowPosition="True" TitleAlignment="Stretch" @@ -360,10 +360,11 @@ - + + Background="{DynamicResource Brushes.Surface.Window}" BorderThickness="0"> diff --git a/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs b/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs index 907f3ad93d..036648ae06 100644 --- a/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs +++ b/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs @@ -97,6 +97,25 @@ public ThemeInfo SelectedCustomTheme } } + public bool AccentGlow + { + get; + set + { + if (value == field) + return; + + if (!_isLoading) + { + SettingsManager.Current.Appearance_AccentGlow = value; + AppearanceManager.ApplyWindowBrush(); + } + + field = value; + OnPropertyChanged(); + } + } + public IEnumerable AnimationModes => Enum.GetValues(); public AnimationMode AnimationMode @@ -164,6 +183,7 @@ private void LoadSettings() CustomThemes.Cast() .FirstOrDefault(x => x.Name == SettingsManager.Current.Appearance_CustomThemeName) ?? CustomThemes.Cast().FirstOrDefault(); + AccentGlow = SettingsManager.Current.Appearance_AccentGlow; // If policy is set, show the policy value (on / off); otherwise show the user's setting AnimationMode = PolicyManager.Current?.Appearance_Animations is { } animationsPolicy ? animationsPolicy ? AnimationMode.On : AnimationMode.Off diff --git a/Source/NETworkManager/Views/SettingsAppearanceView.xaml b/Source/NETworkManager/Views/SettingsAppearanceView.xaml index 1e3bf8146c..d16a400af8 100644 --- a/Source/NETworkManager/Views/SettingsAppearanceView.xaml +++ b/Source/NETworkManager/Views/SettingsAppearanceView.xaml @@ -66,6 +66,16 @@ + + + + + - - - - - - - - - - - - - - - - - - - + + + + + Date: Tue, 10 Nov 2026 22:49:00 +0100 Subject: [PATCH 143/232] Revert "Design: light and dark themes in two rows in the settings (D11)" User: both rows stayed selected and the theme couldn't be switched back (a ListView keeps its selection if the bound item is not in its list). Instead of two rows with two selections: one row, sorted from light to dark (next commit) - simpler. Co-Authored-By: Claude Opus 5.5 --- .../ViewModels/SettingsAppearanceViewModel.cs | 25 +------- .../Views/SettingsAppearanceView.xaml | 63 +++++++------------ 2 files changed, 24 insertions(+), 64 deletions(-) diff --git a/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs b/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs index c1fa5fb632..036648ae06 100644 --- a/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs +++ b/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs @@ -5,7 +5,6 @@ using System.ComponentModel; using System.Linq; using System.Windows.Data; -using System.Windows.Media; namespace NETworkManager.ViewModels; @@ -17,23 +16,12 @@ public class SettingsAppearanceViewModel : ViewModelBase public ICollectionView Themes { get; } - /// - /// Light themes (Light, Mist, Soft, Paper), shown in an own row. - /// - public ICollectionView LightThemes { get; } - - /// - /// Dark themes (Dark, Black, Midnight, ...), shown in an own row. - /// - public ICollectionView DarkThemes { get; } - public ThemeColorInfo SelectedTheme { get; set { - // null: the other row (light / dark) clears its selection when a theme of this row is selected - if (value == null || value == field) + if (value == field) return; if (!_isLoading && !UseCustomTheme) @@ -176,10 +164,6 @@ public SettingsAppearanceViewModel() _isLoading = true; Themes = new CollectionViewSource { Source = AppearanceManager.Themes }.View; - LightThemes = new CollectionViewSource { Source = AppearanceManager.Themes }.View; - LightThemes.Filter = x => x is ThemeColorInfo info && !IsDark(info); - DarkThemes = new CollectionViewSource { Source = AppearanceManager.Themes }.View; - DarkThemes.Filter = x => x is ThemeColorInfo info && IsDark(info); Accents = new CollectionViewSource { Source = AppearanceManager.Accents }.View; CustomThemes = new CollectionViewSource { Source = AppearanceManager.CustomThemes }.View; @@ -188,13 +172,6 @@ public SettingsAppearanceViewModel() _isLoading = false; } - /// - /// A theme is dark if its background (color of the theme) is dark. - /// - private static bool IsDark(ThemeColorInfo theme) => - theme.Color is SolidColorBrush { Color: var color } && - 0.2126 * color.R + 0.7152 * color.G + 0.0722 * color.B < 128; - private void LoadSettings() { SelectedTheme = Themes.Cast() diff --git a/Source/NETworkManager/Views/SettingsAppearanceView.xaml b/Source/NETworkManager/Views/SettingsAppearanceView.xaml index 9c0a17f207..d16a400af8 100644 --- a/Source/NETworkManager/Views/SettingsAppearanceView.xaml +++ b/Source/NETworkManager/Views/SettingsAppearanceView.xaml @@ -14,51 +14,34 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + Date: Tue, 10 Nov 2026 22:49:20 +0100 Subject: [PATCH 144/232] Design: themes sorted from light to dark in the settings (D11) User: sort the themes instead of two rows (simpler). The themes of Settings > Appearance are one row sorted by the brightness of their background: Light, Mist, Paper, Soft, Steel, Dark, Midnight, Indigo, Black - the light and dark themes are next to each other. Co-Authored-By: Claude Opus 5.5 --- Source/NETworkManager.Settings/AppearanceManager.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index f65a094dc9..34bdff59f3 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -162,13 +162,17 @@ public static class AppearanceManager static AppearanceManager() { - // Themes of MahApps (Light, Dark) and the additional themes (Black, Midnight, ...), created when used + // 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 }), - .. ThemeVariants.Themes.Select(x => new ThemeColorInfo { Name = x.Name, Color = CreateFrozenBrush(x.Background, 1) })]; + { 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 } + ? 0.2126 * color.R + 0.7152 * color.G + 0.0722 * color.B + : 0)]; // Accents of MahApps and the additional accents (Sky, Ocean, ...), sorted by name Accents = [.. ThemeManager.Current.Themes From 7917663aa5bcf33b875cbbe046871b6b40017775 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 22:55:29 +0100 Subject: [PATCH 145/232] Feature: intensity of the accent glow (D9) User: improve the accent glow. The on / off setting is replaced by Appearance_AccentGlowIntensity (new enum AccentGlowIntensity): Off, Subtle (6 % accent), Medium (10 %, the look so far, default for new installations), Strong (15 %) - bright accents look good subtle, dark ones can take more. Settings > Appearance: drop-down instead of the toggle. New property name: the bool of this branch in existing settings files is ignored. The help text describes the glow in all windows (next commits). Co-Authored-By: Claude Opus 5.5 --- .../AccentGlowIntensityToStringConverter.cs | 31 +++++++++++++++ .../ResourceIdentifier.cs | 1 + .../Resources/Strings.Designer.cs | 38 ++++++++++++++++++- .../Resources/Strings.resx | 14 ++++++- .../Appearance/AccentGlowIntensity.cs | 27 +++++++++++++ .../AppearanceManager.cs | 23 ++++++++--- .../GlobalStaticConfiguration.cs | 4 +- .../NETworkManager.Settings/SettingsInfo.cs | 4 +- .../ViewModels/SettingsAppearanceViewModel.cs | 8 ++-- .../Views/SettingsAppearanceView.xaml | 14 ++++++- 10 files changed, 148 insertions(+), 16 deletions(-) create mode 100644 Source/NETworkManager.Converters/AccentGlowIntensityToStringConverter.cs create mode 100644 Source/NETworkManager.Models/Appearance/AccentGlowIntensity.cs 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.Localization/ResourceIdentifier.cs b/Source/NETworkManager.Localization/ResourceIdentifier.cs index ef662d834f..2c3e2f925e 100644 --- a/Source/NETworkManager.Localization/ResourceIdentifier.cs +++ b/Source/NETworkManager.Localization/ResourceIdentifier.cs @@ -3,6 +3,7 @@ public enum ResourceIdentifier { Accent, + AccentGlowIntensity, AnimationMode, ApplicationName, DiscoveryProtocol, diff --git a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs index 8d717165f4..6f681b105f 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs +++ b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs @@ -384,6 +384,42 @@ public static string AccentGlow { } } + /// + /// 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. /// @@ -6041,7 +6077,7 @@ public static string Help { } /// - /// Looks up a localized string similar to Shows a subtle glow of the accent color in the top left corner of the main window (window background, title bar and navigation).. + /// 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, and a faint tint of the accent behind dialogs.. /// public static string HelpMessage_AccentGlow { get { diff --git a/Source/NETworkManager.Localization/Resources/Strings.resx b/Source/NETworkManager.Localization/Resources/Strings.resx index c4fedde93b..0938c1b93a 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.resx +++ b/Source/NETworkManager.Localization/Resources/Strings.resx @@ -5502,7 +5502,7 @@ Do you want to start the scan? Accent glow - Shows a subtle glow of the accent color in the top left corner of the main window (window background, title bar and navigation). + 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, and a faint tint of the accent behind dialogs. Black @@ -5552,4 +5552,16 @@ Do you want to start the scan? Graphite + + Off + + + Subtle + + + Medium + + + Strong + \ 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.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 34bdff59f3..01119a4791 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -89,7 +89,7 @@ public static class AppearanceManager /// /// Resource key of the background of the main window (window, title bar, navigation): the frame color, with - /// a subtle glow of the accent in the top left corner. + /// a subtle glow of the accent in the top left corner. /// public const string SurfaceWindowBrushKey = "Brushes.Surface.Window"; @@ -227,16 +227,29 @@ private static void LoadCustomThemes() /// /// Sets the background of the main window (): the frame color, or with the - /// accent glow (Settings > Appearance) a radial gradient from 10 % of the accent 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 + /// 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. /// + /// + /// 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 + }; + public static void ApplyWindowBrush() { Brush brush; - if (SettingsManager.Current?.Appearance_AccentGlow == true) + var amount = GetAccentGlowAmount(); + + if (amount > 0) { var gradient = new RadialGradientBrush { @@ -247,7 +260,7 @@ public static void ApplyWindowBrush() RadiusY = 500 }; - gradient.GradientStops.Add(new GradientStop(Blend(_frameColor, _accentColor, 0.10), 0)); + gradient.GradientStops.Add(new GradientStop(Blend(_frameColor, _accentColor, amount), 0)); gradient.GradientStops.Add(new GradientStop(_frameColor, 1)); gradient.Freeze(); diff --git a/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs b/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs index 33bb68af9e..010b77e84d 100644 --- a/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs +++ b/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs @@ -92,8 +92,8 @@ public static class GlobalStaticConfiguration public static string Appearance_Accent => "Teal"; public static bool Appearance_UseCustomTheme => false; public static AnimationMode Appearance_Animations => AnimationMode.System; - // On for new installations (subtle, static); saved in the settings, existing installations keep it off - public static bool Appearance_AccentGlow => true; + // 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/SettingsInfo.cs b/Source/NETworkManager.Settings/SettingsInfo.cs index 3697d711fd..67966df2a8 100644 --- a/Source/NETworkManager.Settings/SettingsInfo.cs +++ b/Source/NETworkManager.Settings/SettingsInfo.cs @@ -360,7 +360,7 @@ public string Appearance_CustomThemeName } } - public bool Appearance_AccentGlow + public AccentGlowIntensity Appearance_AccentGlowIntensity { get; set @@ -371,7 +371,7 @@ public bool Appearance_AccentGlow field = value; OnPropertyChanged(); } - } = GlobalStaticConfiguration.Appearance_AccentGlow; + } = GlobalStaticConfiguration.Appearance_AccentGlowIntensity; public AnimationMode Appearance_Animations { diff --git a/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs b/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs index 036648ae06..77847607f4 100644 --- a/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs +++ b/Source/NETworkManager/ViewModels/SettingsAppearanceViewModel.cs @@ -97,7 +97,9 @@ public ThemeInfo SelectedCustomTheme } } - public bool AccentGlow + public IEnumerable AccentGlowIntensities => Enum.GetValues(); + + public AccentGlowIntensity AccentGlowIntensity { get; set @@ -107,7 +109,7 @@ public bool AccentGlow if (!_isLoading) { - SettingsManager.Current.Appearance_AccentGlow = value; + SettingsManager.Current.Appearance_AccentGlowIntensity = value; AppearanceManager.ApplyWindowBrush(); } @@ -183,7 +185,7 @@ private void LoadSettings() CustomThemes.Cast() .FirstOrDefault(x => x.Name == SettingsManager.Current.Appearance_CustomThemeName) ?? CustomThemes.Cast().FirstOrDefault(); - AccentGlow = SettingsManager.Current.Appearance_AccentGlow; + AccentGlowIntensity = SettingsManager.Current.Appearance_AccentGlowIntensity; // If policy is set, show the policy value (on / off); otherwise show the user's setting AnimationMode = PolicyManager.Current?.Appearance_Animations is { } animationsPolicy ? animationsPolicy ? AnimationMode.On : AnimationMode.Off diff --git a/Source/NETworkManager/Views/SettingsAppearanceView.xaml b/Source/NETworkManager/Views/SettingsAppearanceView.xaml index d16a400af8..96acc5aa44 100644 --- a/Source/NETworkManager/Views/SettingsAppearanceView.xaml +++ b/Source/NETworkManager/Views/SettingsAppearanceView.xaml @@ -16,6 +16,7 @@ + @@ -66,11 +67,20 @@ + - + + + + + + + + Style="{StaticResource ResourceKey=HelpImageRectangle}" VerticalAlignment="Center" Margin="10,0,0,0"> + + + \ No newline at end of file diff --git a/Source/NETworkManager/StatusWindow.xaml b/Source/NETworkManager/StatusWindow.xaml index 7e8b9bf3a8..791ccfc2af 100644 --- a/Source/NETworkManager/StatusWindow.xaml +++ b/Source/NETworkManager/StatusWindow.xaml @@ -10,10 +10,7 @@ xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" mc:Ignorable="d" d:DataContext="{d:DesignInstance networkManager:StatusWindow}" TitleAlignment="Left" - Style="{DynamicResource DefaultWindow}" - Background="{DynamicResource Brushes.Surface.Frame}" - WindowTitleBrush="{DynamicResource Brushes.Surface.Frame}" - NonActiveWindowTitleBrush="{DynamicResource Brushes.Surface.Frame}" + Style="{DynamicResource ResourceKey=FrameWindow}" Deactivated="MetroWindow_Deactivated" Topmost="True" ShowInTaskbar="False" From 9f64954960bc4c46f793402265ab7a98490a8b94 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 22:57:00 +0100 Subject: [PATCH 147/232] Design: faint accent tint behind dialogs with the accent glow (D9) User: use the accent glow further. The overlay behind the dialogs (black 40 %) is now Brushes.Overlay.Dialog (AppearanceManager): with the accent glow a radial gradient with a faint tint of the accent in the center behind the dialog (2.5 x the glow amount of the overlay color, e.g. 25 % with Medium) to the black overlay at the edge - draws the eye to the dialog. Without the glow the plain 40 % black overlay. Brushes.Overlay (Theme.xaml) removed. Welcome / Upgrade keep their own overlay. Co-Authored-By: Claude Opus 5.5 --- .../AppearanceManager.cs | 42 +++++++++++++++++++ .../Resources/Styles/ChildWindowStyles.xaml | 2 +- .../Resources/Styles/Theme.xaml | 2 - 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index bba865294c..ca9d697f22 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -99,6 +99,12 @@ public static class AppearanceManager /// public const string SurfaceWindowInactiveBrushKey = "Brushes.Surface.Window.Inactive"; + /// + /// Resource key of the overlay behind a dialog (dims the window, with the accent glow a faint tint of the accent + /// behind the dialog). + /// + public const string DialogOverlayBrushKey = "Brushes.Overlay.Dialog"; + private static Color _frameColor = Colors.White; private static Color _accentColor = Colors.Gray; @@ -259,6 +265,42 @@ public static void ApplyWindowBrush() // Inactive window: half of the glow (like the title bar of an inactive window in Windows) resources[SurfaceWindowInactiveBrushKey] = CreateWindowBrush(amount / 2); + + resources[DialogOverlayBrushKey] = CreateDialogOverlayBrush(amount); + } + + /// + /// Overlay behind a dialog: black 40 % (dims the window in the light and dark theme), with the accent glow a + /// faint tint of the accent in the center behind the dialog (2.5 x the amount of the glow, e.g. 25 % of the + /// overlay color with Medium), fading to the black overlay at the edge. + /// + private static Brush CreateDialogOverlayBrush(double amount) + { + const byte alpha = 0x66; // 40 % + + if (amount <= 0) + { + var solid = new SolidColorBrush(Color.FromArgb(alpha, 0, 0, 0)); + solid.Freeze(); + + return solid; + } + + var center = Blend(Colors.Black, _accentColor, Math.Min(1, amount * 2.5)); + + var gradient = new RadialGradientBrush + { + Center = new System.Windows.Point(0.5, 0.45), + GradientOrigin = new System.Windows.Point(0.5, 0.45), + RadiusX = 0.6, + RadiusY = 0.6 + }; + + gradient.GradientStops.Add(new GradientStop(Color.FromArgb(alpha, center.R, center.G, center.B), 0)); + gradient.GradientStops.Add(new GradientStop(Color.FromArgb(alpha, 0, 0, 0), 1)); + gradient.Freeze(); + + return gradient; } /// diff --git a/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml b/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml index 5bbc5c0d51..c61526a8d9 100644 --- a/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml @@ -254,7 +254,7 @@ - + diff --git a/Source/NETworkManager/Resources/Styles/Theme.xaml b/Source/NETworkManager/Resources/Styles/Theme.xaml index afdf2dcbc2..fd6726c024 100644 --- a/Source/NETworkManager/Resources/Styles/Theme.xaml +++ b/Source/NETworkManager/Resources/Styles/Theme.xaml @@ -25,8 +25,6 @@ 8 - - - + diff --git a/Source/NETworkManager/Resources/Styles/Theme.xaml b/Source/NETworkManager/Resources/Styles/Theme.xaml index fd6726c024..afdf2dcbc2 100644 --- a/Source/NETworkManager/Resources/Styles/Theme.xaml +++ b/Source/NETworkManager/Resources/Styles/Theme.xaml @@ -25,6 +25,8 @@ 8 + + + + diff --git a/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml b/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml index e0f9fbcdad..f3216c0df0 100644 --- a/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml +++ b/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml @@ -66,7 +66,7 @@ - + @@ -562,7 +562,7 @@ - + From d4c8bcccc71472337f34602b9c17c078c468e556 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 23:12:40 +0100 Subject: [PATCH 156/232] Design: PuTTY / PowerShell console in the colors of the theme (D11) User: match the colors of the PuTTY profile with the design. The profiles (PuTTY: NETworkManager session; PowerShell: console profile, with "Apply theme to PowerShell console") were written with fixed colors for "Dark" (#BBBBBB / #CCCCCC on #252525) or light (black on white) - with Midnight, Paper, ... or a custom theme a gray / white block in the box, and a change to a custom theme didn't update them (only Appearance_Theme was watched). AppearanceManager sets the console colors on every theme change (background of the boxes, text 75 % / 88 % of the foreground like before, bold text in the foreground) and raises ConsoleColorsChanged; the PuTTY / PowerShell host view models write the profile then. PuTTY: Colour0 / Colour1 (bold, was always white - invisible in light themes) / Colour2; PowerShell: DefaultBackground / ColorTable00 / ColorTable07. ThemeVariants.ToBaseColorScheme is removed. Open sessions keep their colors (read when they start). Co-Authored-By: Claude Opus 5.5 --- .../PowerShell/PowerShell.cs | 43 +++++----------- Source/NETworkManager.Models/PuTTY/PuTTY.cs | 49 ++++++------------- .../AppearanceManager.cs | 29 +++++++++++ .../NETworkManager.Settings/ThemeVariants.cs | 7 --- .../ViewModels/PowerShellHostViewModel.cs | 9 ++-- .../ViewModels/PuTTYHostViewModel.cs | 9 ++-- 6 files changed, 66 insertions(+), 80 deletions(-) diff --git a/Source/NETworkManager.Models/PowerShell/PowerShell.cs b/Source/NETworkManager.Models/PowerShell/PowerShell.cs index 06e2c3e119..ef131d8446 100644 --- a/Source/NETworkManager.Models/PowerShell/PowerShell.cs +++ b/Source/NETworkManager.Models/PowerShell/PowerShell.cs @@ -49,40 +49,14 @@ public static class PowerShell "ScreenColors" ]; - /// - /// Default DWORD registry keys for the global PowerShell profile with dark theme. - /// - /// List of with registry key name and value. - private static List> GetProfileRegkeysDwordDark() - { - return DefaultProfileRegkeysDwordBase.Concat( - [ - new Tuple("DefaultBackground", 2434341), // HEX: 252525 - new Tuple("ColorTable00", 2434341), // HEX: 252525 - new Tuple("ColorTable07", 13421772) // HEX: cccccc - ]).ToList(); - } - - /// - /// Default DWORD registry keys for the global PowerShell profile with white theme. - /// - /// List of with registry key name and value. - private static List> GetProfileRegkeysDwordWhite() - { - return DefaultProfileRegkeysDwordBase.Concat( - [ - new Tuple("DefaultBackground", 16777215), // HEX: FFFFFF - new Tuple("ColorTable00", 16777215), // HEX: FFFFFF - new Tuple("ColorTable07", 2434341) // HEX: 252525 - ]).ToList(); - } - /// /// Write default (global) PowerShell profile to registry. /// - /// Theme of the PowerShell profile. /// Path to the PowerShell executable. - public static void WriteDefaultProfileToRegistry(string theme, string powerShellPath) + /// Background of the console (DefaultBackground, ColorTable00). + /// Text of the console (ColorTable07). + public static void WriteDefaultProfileToRegistry((byte R, byte G, byte B) background, + (byte R, byte G, byte B) foreground, string powerShellPath) { var registryPath = @"Console\"; @@ -103,9 +77,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 +94,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.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index bba865294c..941dc169d3 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -99,6 +99,28 @@ public static class AppearanceManager /// 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 when the console colors are set (to update the profiles of PuTTY / PowerShell). + /// + public static event EventHandler ConsoleColorsChanged; + + 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; @@ -362,6 +384,13 @@ private static void ApplyControlStateBrushes(Theme theme) _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(Blend(background, foreground, ThemeVariants.IsDark(theme) ? 0.75 : 0.88)); + ConsoleBoldForeground = ToRgb(foreground); + ConsoleColorsChanged?.Invoke(null, EventArgs.Empty); + ApplyDataGridBrushes(theme, foreground); ApplyToggleSwitchDisabledBrushes(theme); } diff --git a/Source/NETworkManager.Settings/ThemeVariants.cs b/Source/NETworkManager.Settings/ThemeVariants.cs index 97e3617b4d..5745202e9a 100644 --- a/Source/NETworkManager.Settings/ThemeVariants.cs +++ b/Source/NETworkManager.Settings/ThemeVariants.cs @@ -140,13 +140,6 @@ private static void CreateTheme(string name) ThemeManager.Current.AddLibraryTheme(new LibraryTheme(resources, MahAppsLibraryThemeProvider.DefaultInstance)); } - /// - /// Base color scheme of MahApps (Light, Dark) of a theme name: the additional themes are dark variants. For code - /// that only knows Light and Dark (e.g. the console colors of PuTTY and PowerShell). - /// - public static string ToBaseColorScheme(string theme) => - Themes.FirstOrDefault(x => x.Name == theme)?.SourceBaseColorScheme ?? theme; - /// /// Own frame color of an additional theme (e.g. the light blue-gray of Mist), otherwise . /// diff --git a/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs b/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs index a134ccaae1..7cc731333e 100644 --- a/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs +++ b/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs @@ -127,6 +127,9 @@ public PowerShellHostViewModel() InitializeProfileHost(); SettingsManager.Current.PropertyChanged += SettingsManager_PropertyChanged; + + // Colors of the theme (also custom themes): the console blends into the application + AppearanceManager.ConsoleColorsChanged += (_, _) => WriteDefaultProfileToRegistry(); } #endregion @@ -513,9 +516,8 @@ private void WriteDefaultProfileToRegistry() Log.Debug("Write PowerShell profile to registry..."); - PowerShell.WriteDefaultProfileToRegistry( - ThemeVariants.ToBaseColorScheme(SettingsManager.Current.Appearance_Theme), - SettingsManager.Current.PowerShell_ApplicationFilePath); + PowerShell.WriteDefaultProfileToRegistry(AppearanceManager.ConsoleBackground, + AppearanceManager.ConsoleForeground, SettingsManager.Current.PowerShell_ApplicationFilePath); } #endregion @@ -531,7 +533,6 @@ private void SettingsManager_PropertyChanged(object sender, PropertyChangedEvent WriteDefaultProfileToRegistry(); break; case nameof(SettingsInfo.Appearance_PowerShellModifyGlobalProfile): - case nameof(SettingsInfo.Appearance_Theme): WriteDefaultProfileToRegistry(); break; } diff --git a/Source/NETworkManager/ViewModels/PuTTYHostViewModel.cs b/Source/NETworkManager/ViewModels/PuTTYHostViewModel.cs index a540a157bf..cf45661327 100644 --- a/Source/NETworkManager/ViewModels/PuTTYHostViewModel.cs +++ b/Source/NETworkManager/ViewModels/PuTTYHostViewModel.cs @@ -127,6 +127,9 @@ public PuTTYHostViewModel() InitializeProfileHost(); SettingsManager.Current.PropertyChanged += SettingsManager_PropertyChanged; + + // Colors of the theme (also custom themes): the terminal blends into the application + AppearanceManager.ConsoleColorsChanged += (_, _) => WriteDefaultProfileToRegistry(); } #endregion @@ -458,7 +461,8 @@ private void WriteDefaultProfileToRegistry() Log.Debug("Write PuTTY profile to registry..."); - PuTTY.WriteDefaultProfileToRegistry(ThemeVariants.ToBaseColorScheme(SettingsManager.Current.Appearance_Theme)); + PuTTY.WriteDefaultProfileToRegistry(AppearanceManager.ConsoleBackground, AppearanceManager.ConsoleForeground, + AppearanceManager.ConsoleBoldForeground); } #endregion @@ -472,9 +476,6 @@ private void SettingsManager_PropertyChanged(object sender, PropertyChangedEvent case nameof(SettingsInfo.PuTTY_ApplicationFilePath): CheckExecutable(); break; - case nameof(SettingsInfo.Appearance_Theme): - WriteDefaultProfileToRegistry(); - break; } } From 7fd8f184f590c506c853ddcfdbf0d7964d45396c Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 23:12:51 +0100 Subject: [PATCH 157/232] Changelog: PuTTY / PowerShell console in the colors of the theme Co-Authored-By: Claude Opus 5.5 --- Website/docs/changelog/next-release.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index b935e054a8..d392e2e28e 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -216,6 +216,14 @@ Release date: **xx.xx.2026** - IP addresses opened from another feature (e.g. **IP Scanner** > **DNS lookup** > **IP address**), from a profile or with the run command are looked up with `PTR` instead of the selected record type. [#3644](https://github.com/BornToBeRoot/NETworkManager/pull/3644) - **Export...** exports the results in the order shown (sorting), the selected results in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) +**PowerShell** + +- The console uses the colors of the application theme (also the new and custom themes): the background of the box around it and a matching text color, updated when the theme is changed (with **Apply theme to PowerShell console**). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) + +**PuTTY** + +- The terminal uses the colors of the application theme (also the new and custom themes): the background of the box around it and a matching text color, bold text readable in light themes; updated when the theme is changed. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) + **SNMP** - **Export...** exports the results in the order shown (sorting), the selected results in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) From 70cafc25a0a8b33e6e2bd1086d85fe97f38ee5b1 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 23:17:22 +0100 Subject: [PATCH 158/232] Fix: PowerShell console profile not applied for PowerShell from the Microsoft Store User: the PowerShell profile isn't updated with the path ...\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe. The console (conhost) reads its settings from HKCU\Console\, the title is the path of the started executable. This path is an App Execution Alias of the Store app, which starts the real executable in C:\Program Files\WindowsApps\Microsoft.PowerShell_7.x.x.0_x64__8wekyb3d8bbwe\pwsh.exe - the key written for the alias is not used. The workaround of #3223 only handles the general alias ...\WindowsApps\pwsh.exe. PowerShell.WriteDefaultProfileToRegistry now also writes the profile for the real path of an alias (any path in %LocalAppData%\Microsoft\WindowsApps): resolved once per start of the application by starting the alias with "(Get-Process -Id $PID).Path" (the real path contains the version and changes with updates, so it is not saved), cached. The host view model writes the profile in the background (the alias start takes a moment). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../PowerShell/PowerShell.cs | 99 ++++++++++++++++++- .../ViewModels/PowerShellHostViewModel.cs | 18 +++- 2 files changed, 111 insertions(+), 6 deletions(-) diff --git a/Source/NETworkManager.Models/PowerShell/PowerShell.cs b/Source/NETworkManager.Models/PowerShell/PowerShell.cs index ef131d8446..61d86cc980 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,21 +53,109 @@ public static class PowerShell ]; /// <summary> - /// Write default (global) PowerShell profile to registry. + /// 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). + /// </summary> + private static readonly ConcurrentDictionary<string, string> ResolvedAliases = new(StringComparer.OrdinalIgnoreCase); + + /// <summary> + /// 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 - the + /// profile is written for the alias and for the real path, so it applies whichever the console uses as title. + /// Resolving the alias starts it once (can take a moment, call it in the background). /// </summary> - /// <param name="powerShellPath">Path to the PowerShell executable.</param> /// <param name="background">Background of the console (DefaultBackground, ColorTable00).</param> /// <param name="foreground">Text of the console (ColorTable07).</param> + /// <param name="powerShellPath">Path to the PowerShell executable.</param> public static void WriteDefaultProfileToRegistry((byte R, byte G, byte B) background, (byte R, byte G, byte B) foreground, string powerShellPath) + { + WriteProfile(background, foreground, powerShellPath); + + if (!IsAppExecutionAlias(powerShellPath)) + return; + + var realPath = ResolvedAliases.GetOrAdd(powerShellPath, ResolveAppExecutionAlias); + + if (!string.IsNullOrEmpty(realPath) && !string.Equals(realPath, powerShellPath, StringComparison.OrdinalIgnoreCase)) + WriteProfile(background, foreground, realPath); + } + + /// <summary> + /// Whether the path is an App Execution Alias of an app from the Microsoft Store + /// (%LocalAppData%\Microsoft\WindowsApps\...). + /// </summary> + 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); + } + + /// <summary> + /// 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). + /// </summary> + /// <returns>Real path or <see langword="null" /> if it could not be resolved.</returns> + private static string ResolveAppExecutionAlias(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; + + var output = process.StandardOutput.ReadToEnd().Trim(); + + if (!process.WaitForExit(10000)) + { + process.Kill(); + Log.Warn($"Timeout while resolving the App Execution Alias \"{aliasPath}\"."); + + return null; + } + + 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; + } + } + + /// <summary> + /// Writes the profile for the console title of the executable path. + /// </summary> + 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(@"\", "_"); diff --git a/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs b/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs index 7cc731333e..510ff28856 100644 --- a/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs +++ b/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs @@ -516,8 +516,22 @@ private void WriteDefaultProfileToRegistry() Log.Debug("Write PowerShell profile to registry..."); - PowerShell.WriteDefaultProfileToRegistry(AppearanceManager.ConsoleBackground, - AppearanceManager.ConsoleForeground, SettingsManager.Current.PowerShell_ApplicationFilePath); + var background = AppearanceManager.ConsoleBackground; + var foreground = AppearanceManager.ConsoleForeground; + var path = SettingsManager.Current.PowerShell_ApplicationFilePath; + + // In the background: an App Execution Alias (Microsoft Store) is started once to resolve the real path + Task.Run(() => + { + try + { + PowerShell.WriteDefaultProfileToRegistry(background, foreground, path); + } + catch (Exception ex) + { + Log.Error("Could not write the PowerShell profile to the registry.", ex); + } + }); } #endregion From a12390023ea3afe3431f8aedccfc95eb7443e73d Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 23:17:22 +0100 Subject: [PATCH 159/232] Changelog: PowerShell console profile for PowerShell from the Microsoft Store Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Website/docs/changelog/next-release.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index d392e2e28e..83275ed1eb 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -461,6 +461,10 @@ Release date: **xx.xx.2026** - Fixed no message being shown after **Delete browsing data** in the settings (whether the browsing data was deleted or an error occurred), and an error (e.g. the WebView2 runtime is not installed) not being handled. +**PowerShell** + +- Fixed **Apply theme to PowerShell console** not being applied to PowerShell from the Microsoft Store (path in `%LocalAppData%\Microsoft\WindowsApps\...`): the console profile is also written for the real path of the app. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) + **SNMP** - Fixed `Enter` in the search box of the OID profiles dialog closing the dialog with **OK**. It only filters the OID profiles now. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) From f19af86bf2be834a86fa981c7ae2171d66861b43 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Tue, 10 Nov 2026 23:51:35 +0100 Subject: [PATCH 160/232] Cleanup: remove the license file of LoadingIndicators.WPF The library was removed in acf231ced (own progress styles), but its license file was still copied to the output and shipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../Licenses/LoadingIndicators.WPF.txt | 24 ------------------- .../NETworkManager.Documentation.csproj | 4 ---- 2 files changed, 28 deletions(-) delete mode 100644 Source/NETworkManager.Documentation/Licenses/LoadingIndicators.WPF.txt 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 <http://unlicense.org> \ No newline at end of file diff --git a/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj b/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj index 4b1ceece5c..5c26ecbcab 100644 --- a/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj +++ b/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj @@ -24,7 +24,6 @@ <None Remove="Licenses\GongSolutions.Wpf.DragDrop.txt" /> <None Remove="Licenses\IPNetwork.txt" /> <None Remove="Licenses\LiveCharts2.txt" /> - <None Remove="Licenses\LoadingIndicators.WPF.txt" /> <None Remove="Licenses\log4net.txt" /> <None Remove="Licenses\MahApps.Metro.IconPack.txt" /> <None Remove="Licenses\MahApps.Metro.txt" /> @@ -70,9 +69,6 @@ <Content Include="Licenses\LiveCharts2.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> - <Content Include="Licenses\LoadingIndicators.WPF.txt"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </Content> <Content Include="Licenses\log4net.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> From 9f2683aa40a69a45e17708caeda8bd9280a41540 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:03:04 +0100 Subject: [PATCH 161/232] Design: Lucide icons, import script and license (D8) The icons of the application come from five MahApps icon packs (Material, Modern, FontAwesome, MaterialLight, Octicons) with different styles. They will be replaced by Lucide (https://lucide.dev), modern line icons with one stroke weight. The Lucide pack of MahApps is older and has the strokes converted to fixed filled shapes, so the original SVG files are imported instead: - Scripts/Create-LucideIcons.ps1 downloads lucide-static (npm, version as parameter), converts the used icons (path, circle, rect, line, polyline, polygon, ellipse) to one WPF path geometry each and creates LucideIcons.cs (enum LucideIconKind + data). Custom icons: Wi-Fi signal levels with lock from the parts of wifi-lock, GitHub / X logos from Simple Icons (CC0, Lucide has no brand icons). It also copies the license. - LucideIcon (NETworkManager.Controls) draws the lines with a pen (round caps / joins, default 1.75 instead of 2 units, calmer at 16 px) in the foreground, scaled from 24 x 24. The whole box is part of the drawing, so every icon has the same size and position in a VisualBrush (opacity mask of a rectangle, used everywhere). {icons:Lucide Kind=...} creates it in XAML like {iconPacks:Material Kind=...}. - License: ISC (incl. MIT for the icons derived from Feather), shipped as Licenses/Lucide.txt, listed on the About page and in the README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- README.md | 1 + Scripts/Create-LucideIcons.ps1 | 362 ++++++++++++++++++ Source/NETworkManager.Controls/LucideIcon.cs | 172 +++++++++ Source/NETworkManager.Controls/LucideIcons.cs | 332 ++++++++++++++++ .../LibraryManager.cs | 4 + .../Licenses/Lucide.txt | 43 +++ .../NETworkManager.Documentation.csproj | 4 + .../Resources/Strings.Designer.cs | 18 + .../Resources/Strings.resx | 6 + 9 files changed, 942 insertions(+) create mode 100644 Scripts/Create-LucideIcons.ps1 create mode 100644 Source/NETworkManager.Controls/LucideIcon.cs create mode 100644 Source/NETworkManager.Controls/LucideIcons.cs create mode 100644 Source/NETworkManager.Documentation/Licenses/Lucide.txt diff --git a/README.md b/README.md index 178efcbfde..8ffacc8fd3 100644 --- a/README.md +++ b/README.md @@ -228,6 +228,7 @@ 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. + - [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. diff --git a/Scripts/Create-LucideIcons.ps1 b/Scripts/Create-LucideIcons.ps1 new file mode 100644 index 0000000000..5d78e9c072 --- /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=<Name>} or LucideIconKind.<Name>. +# +# 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", "cable", "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-down", "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-zero", "x" +) + +# Lock of the icon wifi-lock (bottom right), for the Wi-Fi signal levels with lock +$WifiLock = '<path d="M20 16v-2a2 2 0 0 0-4 0v2" /><rect x="14" y="16" width="8" height="5" rx="1" />' + +# 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 = '<path d="M12 20h.01" />' + $WifiLock } + "wifi-low-lock" = @{ Svg = '<path d="M8.5 16.429a5 5 0 0 1 1.794-1.13" />' + $WifiLock } + "wifi-high-lock" = @{ Svg = '<path d="M5 12.859a10 10 0 0 1 8.436-2.756" /><path d="M8.5 16.429a5 5 0 0 1 1.794-1.13" />' + $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 = '<path fill="currentColor" stroke="none" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />' + Scale = 20 / 24 + Offset = 2 + } + "x-logo" = @{ + Svg = '<path fill="currentColor" stroke="none" d="M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z" />' + 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]"<svg xmlns=`"http://www.w3.org/2000/svg`">$Svg</svg>" + $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 = @" +// <auto-generated> +// 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). +// </auto-generated> +// +$LicenseComment + +using System.Collections.Generic; + +namespace NETworkManager.Controls; + +/// <summary> +/// Lucide icons of the application (see <see cref="LucideIcon" />). +/// </summary> +public enum LucideIconKind +{ + None, +$($Kinds -join "`n") +} + +/// <summary> +/// Geometries of the Lucide icons (24 x 24 units): drawn with a pen, and filled (e.g. dots, logos). +/// </summary> +internal static class LucideIconData +{ + public static readonly IReadOnlyDictionary<LucideIconKind, (string Stroke, string Fill)> Icons = + new Dictionary<LucideIconKind, (string Stroke, string Fill)> + { +$($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/NETworkManager.Controls/LucideIcon.cs b/Source/NETworkManager.Controls/LucideIcon.cs new file mode 100644 index 0000000000..8b0d60ffc3 --- /dev/null +++ b/Source/NETworkManager.Controls/LucideIcon.cs @@ -0,0 +1,172 @@ +using System; +using System.Collections.Concurrent; +using System.Windows; +using System.Windows.Documents; +using System.Windows.Markup; +using System.Windows.Media; + +namespace NETworkManager.Controls; + +/// <summary> +/// Lucide icon (https://lucide.dev): the lines of the icon drawn with a pen (round caps and joins) in the +/// <see cref="Foreground" />, scaled from 24 x 24 units to the size of the element (default 24 x 24). Icons are +/// created by Scripts/Create-LucideIcons.ps1 (<see cref="LucideIconKind" />). +/// +/// The whole 24 x 24 box is part of the drawing (transparent), so a <see cref="VisualBrush" /> with the icon (e.g. as +/// opacity mask of a rectangle, see <see cref="LucideExtension" />) shows every icon in the same size and position. +/// </summary> +public class LucideIcon : FrameworkElement +{ + /// <summary> + /// Size of the icons in units (view box). + /// </summary> + private const double Size = 24; + + /// <summary> + /// Default thickness of the lines in units (Lucide: 2). Thinner lines look calmer, especially at 16 px. + /// </summary> + public const double DefaultStrokeThickness = 1.75; + + private static readonly ConcurrentDictionary<LucideIconKind, (Geometry Stroke, Geometry Fill)> 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)); + + /// <summary> + /// Icon to show. + /// </summary> + public LucideIconKind Kind + { + get => (LucideIconKind)GetValue(KindProperty); + set => SetValue(KindProperty, value); + } + + /// <summary> + /// Color of the icon (inherited like the foreground of text). + /// </summary> + public Brush Foreground + { + get => (Brush)GetValue(ForegroundProperty); + set => SetValue(ForegroundProperty, value); + } + + /// <summary> + /// Thickness of the lines in units of the 24 x 24 icon (scaled with the icon). + /// </summary> + public double StrokeThickness + { + get => (double)GetValue(StrokeThicknessProperty); + set => SetValue(StrokeThicknessProperty, value); + } + + /// <summary> + /// 24 x 24 if the size is not set or not limited (e.g. in a <see cref="VisualBrush" />), otherwise the available + /// size (square). + /// </summary> + 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; + + var scale = size / Size; + + drawingContext.PushTransform(new MatrixTransform(scale, 0, 0, scale, (ActualWidth - size) / 2, + (ActualHeight - size) / 2)); + + // The whole box, so the bounds are the same for all icons (VisualBrush) + drawingContext.DrawRectangle(Brushes.Transparent, null, new Rect(0, 0, Size, Size)); + + 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 + }; + + pen.Freeze(); + + drawingContext.DrawGeometry(null, pen, stroke); + } + + drawingContext.Pop(); + } + + /// <summary> + /// Geometries of the icon (parsed once, frozen). + /// </summary> + 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; + } +} + +/// <summary> +/// Creates a <see cref="LucideIcon" /> in XAML, e.g. as visual of a <see cref="VisualBrush" />: +/// <c>Visual="{icons:Lucide Kind=Router}"</c>. +/// </summary> +[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..cd0c151687 --- /dev/null +++ b/Source/NETworkManager.Controls/LucideIcons.cs @@ -0,0 +1,332 @@ +// <auto-generated> +// 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). +// </auto-generated> +// +// 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; + +/// <summary> +/// Lucide icons of the application (see <see cref="LucideIcon" />). +/// </summary> +public enum LucideIconKind +{ + None, + Activity, + AppWindow, + ArrowBigUp, + ArrowDown, + ArrowLeft, + ArrowLeftRight, + ArrowUp, + Binary, + BookOpen, + Box, + BrickWallFire, + Bug, + Cable, + 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, + MonitorDown, + 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, + WifiZero, + WifiZeroLock, + X, + XLogo, +} + +/// <summary> +/// Geometries of the Lucide icons (24 x 24 units): drawn with a pen, and filled (e.g. dots, logos). +/// </summary> +internal static class LucideIconData +{ + public static readonly IReadOnlyDictionary<LucideIconKind, (string Stroke, string Fill)> Icons = + new Dictionary<LucideIconKind, (string Stroke, string Fill)> + { + [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.Cable] = ("F1 M17 19 a1 1 0 0 1 -1 -1 v-2 a2 2 0 0 1 2 -2 h2 a2 2 0 0 1 2 2 v2 a1 1 0 0 1 -1 1 z M17 21 v-2 M19 14 V6.5 a1 1 0 0 0 -7 0 v11 a1 1 0 0 1 -7 0 V10 M21 21 v-2 M3 5 V3 M4 10 a2 2 0 0 1 -2 -2 V6 a1 1 0 0 1 1 -1 h4 a1 1 0 0 1 1 1 v2 a2 2 0 0 1 -2 2 z M7 5 V3", 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.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.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.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.Documentation/LibraryManager.cs b/Source/NETworkManager.Documentation/LibraryManager.cs index 8c7df11774..e2e23339c6 100644 --- a/Source/NETworkManager.Documentation/LibraryManager.cs +++ b/Source/NETworkManager.Documentation/LibraryManager.cs @@ -60,6 +60,10 @@ public static class LibraryManager 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, 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/NETworkManager.Documentation.csproj b/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj index 5c26ecbcab..7eaf505089 100644 --- a/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj +++ b/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj @@ -25,6 +25,7 @@ <None Remove="Licenses\IPNetwork.txt" /> <None Remove="Licenses\LiveCharts2.txt" /> <None Remove="Licenses\log4net.txt" /> + <None Remove="Licenses\Lucide.txt" /> <None Remove="Licenses\MahApps.Metro.IconPack.txt" /> <None Remove="Licenses\MahApps.Metro.txt" /> <None Remove="Licenses\Microsoft.PowerShell.SDK.txt" /> @@ -72,6 +73,9 @@ <Content Include="Licenses\log4net.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> + <Content Include="Licenses\Lucide.txt"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </Content> <Content Include="Licenses\MahApps.Metro.IconPack.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> diff --git a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs index ed931f3d2c..903c677ef5 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs +++ b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs @@ -7662,6 +7662,15 @@ public static string Library_log4net_Description { } } + /// <summary> + /// Looks up a localized string similar to Beautiful & consistent icons. + /// </summary> + public static string Library_Lucide_Description { + get { + return ResourceManager.GetString("Library_Lucide_Description", resourceCulture); + } + } + /// <summary> /// Looks up a localized string similar to A toolkit for creating Metro / Modern UI styled WPF apps.. /// </summary> @@ -7788,6 +7797,15 @@ public static string License_BDS3Clause { } } + /// <summary> + /// Looks up a localized string similar to ISC License. + /// </summary> + public static string License_ISCLicense { + get { + return ResourceManager.GetString("License_ISCLicense", resourceCulture); + } + } + /// <summary> /// Looks up a localized string similar to Microsoft WebView2 License. /// </summary> diff --git a/Source/NETworkManager.Localization/Resources/Strings.resx b/Source/NETworkManager.Localization/Resources/Strings.resx index 3fec3dc34e..ad8e1a8dd7 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.resx +++ b/Source/NETworkManager.Localization/Resources/Strings.resx @@ -5564,4 +5564,10 @@ Do you want to start the scan?</value> <data name="AccentGlowIntensity_Strong" xml:space="preserve"> <value>Strong</value> </data> + <data name="Library_Lucide_Description" xml:space="preserve"> + <value>Beautiful & consistent icons</value> + </data> + <data name="License_ISCLicense" xml:space="preserve"> + <value>ISC License</value> + </data> </root> \ No newline at end of file From f21155d6cdfd2c355e0d781ff401c53e1c6ad7a2 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:05:32 +0100 Subject: [PATCH 162/232] Design: all icons from Lucide (D8.2, D8.3) The 166 icons of five MahApps icon packs (Material, Modern, FontAwesome, MaterialLight, Octicons) are replaced by 129 Lucide icons in one style (lines, stroke 1.75): tools in the navigation, run command, settings, profiles, toolbars, context menus, messages and status icons. Mapping reviewed by the maintainer, e.g. Port Scanner scan-line (Network Interface keeps ethernet-port), Ping Monitor radar, Traceroute route, Firewall brick-wall-fire; Windows (no brand icons in Lucide) app-window. Wi-Fi signal: Lucide has four levels, 0 and 1 bar both show wifi-zero. XAML uses {icons:Lucide Kind=...} (xmlns:icons = NETworkManager.Controls) instead of {iconPacks:... Kind=...}, C# LucideIcon / LucideIconKind. NETworkManager.Models references NETworkManager.Controls for the icons of the tools (ApplicationManager). The packages MahApps.Metro.IconPacks.* are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../ApplicationManager.cs | 60 ++++++------- .../NETworkManager.Models.csproj | 6 +- .../GroupViewManager.cs | 4 +- .../NETworkManager.Profiles.csproj | 5 -- .../ProfileViewManager.cs | 4 +- .../NETworkManager.Settings.csproj | 5 -- .../SettingsViewManager.cs | 24 +++--- Source/NETworkManager/CommandLineWindow.xaml | 4 +- .../Controls/DragablzTabHostWindow.xaml | 42 +++++----- .../Controls/TracerouteMapControl.xaml | 8 +- .../Controls/WebConsoleControl.xaml | 12 +-- Source/NETworkManager/MainWindow.xaml | 40 ++++----- Source/NETworkManager/NETworkManager.csproj | 5 -- Source/NETworkManager/NotificationWindow.xaml | 6 +- .../NETworkManager/NotificationWindow.xaml.cs | 14 ++-- .../Resources/ContextMenu/ContextMenu.xaml | 14 ++-- .../Resources/Styles/DragablzStyles.xaml | 4 +- .../Resources/Styles/ExpanderStyles.xaml | 8 +- .../Resources/Styles/GridSplitterStyles.xaml | 22 ++--- .../Resources/Styles/MenuItemStyles.xaml | 4 +- .../Resources/Styles/PasswordBoxStyles.xaml | 4 +- .../Resources/Styles/RectangleStyles.xaml | 30 +++---- .../Templates/ValidationErrorTemplates.xaml | 4 +- Source/NETworkManager/StatusWindow.xaml | 4 +- Source/NETworkManager/Views/AboutView.xaml | 26 +++--- .../Views/BitCalculatorView.xaml | 6 +- .../NETworkManager/Views/ConnectionsView.xaml | 8 +- .../Views/Controls/ProfileExpanderPanel.xaml | 34 ++++---- ...entialsPasswordProfileFileChildWindow.xaml | 8 +- .../Views/CustomCommandChildWindow.xaml | 2 +- .../Views/DNSLookupHostView.xaml | 8 +- .../Views/DNSLookupSettingsView.xaml | 8 +- .../NETworkManager/Views/DNSLookupView.xaml | 8 +- .../Views/DiscoveryProtocolView.xaml | 8 +- .../Views/DropDownChildWindow.xaml | 2 +- .../Views/ExportChildWindow.xaml | 2 +- Source/NETworkManager/Views/FirewallView.xaml | 52 ++++++------ .../Views/GroupChildWindow.xaml | 2 +- .../HostsFileEditorEntryChildWindow.xaml | 2 +- .../Views/HostsFileEditorView.xaml | 32 +++---- .../IPAddressAndSubnetmaskChildWindow.xaml | 2 +- .../Views/IPApiDNSResolverWidgetView.xaml | 6 +- .../Views/IPApiIPGeolocationWidgetView.xaml | 6 +- .../Views/IPGeolocationHostView.xaml | 8 +- .../Views/IPGeolocationView.xaml | 6 +- .../Views/IPScannerHostView.xaml | 10 +-- .../Views/IPScannerSettingsView.xaml | 14 ++-- .../NETworkManager/Views/IPScannerView.xaml | 84 +++++++++---------- .../ImportProfilesResultChildWindow.xaml | 8 +- .../NETworkManager/Views/ListenersView.xaml | 8 +- .../Views/LookupOUILookupView.xaml | 8 +- .../Views/LookupPortLookupView.xaml | 8 +- .../Views/MessageChildWindow.xaml | 2 +- .../Views/MessageConfirmationChildWindow.xaml | 2 +- .../Views/NeighborTableView.xaml | 16 ++-- .../Views/NetworkConnectionWidgetView.xaml | 10 +-- .../Views/NetworkInterfaceView.xaml | 46 +++++----- .../Views/PingMonitorHostView.xaml | 16 ++-- .../NETworkManager/Views/PingMonitorView.xaml | 20 ++--- .../Views/PortProfileChildWindow.xaml | 2 +- .../Views/PortScannerHostView.xaml | 8 +- .../Views/PortScannerSettingsView.xaml | 10 +-- .../NETworkManager/Views/PortScannerView.xaml | 80 +++++++++--------- .../Views/PowerShellConnectChildWindow.xaml | 2 +- .../Views/PowerShellHostView.xaml | 18 ++-- .../Views/ProfileChildWindow.xaml | 8 +- .../Views/ProfileFileChildWindow.xaml | 2 +- Source/NETworkManager/Views/ProfilesView.xaml | 34 ++++---- .../Views/PuTTYConnectChildWindow.xaml | 2 +- .../NETworkManager/Views/PuTTYHostView.xaml | 20 ++--- Source/NETworkManager/Views/RDAPHostView.xaml | 8 +- .../Views/RDAPSettingsView.xaml | 6 +- Source/NETworkManager/Views/RDAPView.xaml | 24 +++--- .../RemoteDesktopConnectChildWindow.xaml | 2 +- .../Views/RemoteDesktopHostView.xaml | 30 +++---- .../Views/RunCommandChildWindow.xaml | 22 ++--- Source/NETworkManager/Views/SNMPHostView.xaml | 8 +- .../Views/SNMPOIDProfileChildWindow.xaml | 2 +- .../Views/SNMPOIDProfilesChildWindow.xaml | 2 +- .../Views/SNMPSettingsView.xaml | 8 +- Source/NETworkManager/Views/SNMPView.xaml | 14 ++-- .../Views/SNTPLookupHostView.xaml | 6 +- .../Views/SNTPLookupSettingsView.xaml | 8 +- .../NETworkManager/Views/SNTPLookupView.xaml | 8 +- ...erverConnectionInfoProfileChildWindow.xaml | 6 +- .../Views/SettingsAppearanceView.xaml | 4 +- .../Views/SettingsGeneralView.xaml | 12 +-- .../Views/SettingsLanguageView.xaml | 8 +- .../Views/SettingsNetworkView.xaml | 4 +- .../Views/SettingsProfilesView.xaml | 24 +++--- .../Views/SettingsSettingsView.xaml | 10 +-- .../Views/SettingsUpdateView.xaml | 4 +- Source/NETworkManager/Views/SettingsView.xaml | 4 +- .../Views/SpeedTestWidgetView.xaml | 14 ++-- .../Views/SubnetCalculatorCalculatorView.xaml | 4 +- .../Views/SubnetCalculatorSubnettingView.xaml | 8 +- .../Views/SubnetCalculatorWideSubnetView.xaml | 4 +- .../Views/TigerVNCConnectChildWindow.xaml | 2 +- .../Views/TigerVNCHostView.xaml | 16 ++-- .../Views/TracerouteHostView.xaml | 8 +- .../NETworkManager/Views/TracerouteView.xaml | 40 ++++----- .../Views/UpgradeChildWindow.xaml | 6 +- .../NETworkManager/Views/WakeOnLANView.xaml | 6 +- .../Views/WebConsoleConnectChildWindow.xaml | 2 +- .../Views/WebConsoleHostView.xaml | 12 +-- .../Views/WelcomeChildWindow.xaml | 4 +- .../NETworkManager/Views/WhoisHostView.xaml | 8 +- Source/NETworkManager/Views/WhoisView.xaml | 6 +- .../Views/WiFiConnectChildWindow.xaml | 2 +- Source/NETworkManager/Views/WiFiView.xaml | 50 +++++------ 110 files changed, 702 insertions(+), 721 deletions(-) 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 @@ <PackageReference Include="Lextm.SharpSnmpLib" Version="12.5.7" /> <PackageReference Include="log4net" Version="3.5.0" /> <PackageReference Include="MahApps.Metro" Version="2.4.11" /> - <PackageReference Include="MahApps.Metro.IconPacks.FontAwesome" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Material" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.MaterialLight" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Modern" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Octicons" Version="6.2.1" /> <PackageReference Include="Microsoft.Web.WebView2" Version="1.0.4314.35" /> <PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.3.1" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.4" /> @@ -55,6 +50,7 @@ </ItemGroup> <ItemGroup> + <ProjectReference Include="..\NETworkManager.Controls\NETworkManager.Controls.csproj" /> <ProjectReference Include="..\NETworkManager.Utilities\NETworkManager.Utilities.csproj" /> </ItemGroup> 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<GroupViewInfo> 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 @@ </ItemGroup> <ItemGroup> <PackageReference Include="MahApps.Metro" Version="2.4.11" /> - <PackageReference Include="MahApps.Metro.IconPacks.FontAwesome" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Material" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.MaterialLight" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Modern" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Octicons" Version="6.2.1" /> </ItemGroup> <ItemGroup> 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<ProfileViewInfo> 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/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 @@ <PackageReference Include="Lextm.SharpSnmpLib" Version="12.5.7" /> <PackageReference Include="log4net" Version="3.5.0" /> <PackageReference Include="MahApps.Metro" Version="2.4.11" /> - <PackageReference Include="MahApps.Metro.IconPacks.FontAwesome" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Material" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.MaterialLight" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Modern" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Octicons" Version="6.2.1" /> </ItemGroup> <ItemGroup> 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<SettingsViewInfo> 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/CommandLineWindow.xaml b/Source/NETworkManager/CommandLineWindow.xaml index ab50673937..028c4b3a9b 100644 --- a/Source/NETworkManager/CommandLineWindow.xaml +++ b/Source/NETworkManager/CommandLineWindow.xaml @@ -7,7 +7,7 @@ xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:resources="clr-namespace:NETworkManager.Properties" mc:Ignorable="d" Title="{x:Static resources:Resources.NETworkManager_ProjectName}" Topmost="True" @@ -28,7 +28,7 @@ <Rectangle Width="20" Height="20" Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Book}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=BookOpen}" /> </Rectangle.OpacityMask> </Rectangle> </StackPanel> diff --git a/Source/NETworkManager/Controls/DragablzTabHostWindow.xaml b/Source/NETworkManager/Controls/DragablzTabHostWindow.xaml index cc021d2b55..04f8ea39e9 100644 --- a/Source/NETworkManager/Controls/DragablzTabHostWindow.xaml +++ b/Source/NETworkManager/Controls/DragablzTabHostWindow.xaml @@ -10,7 +10,7 @@ xmlns:controls="clr-namespace:NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:application="clr-namespace:NETworkManager.Models;assembly=NETworkManager.Models" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" mc:Ignorable="d" Style="{DynamicResource ResourceKey=FrameWindow}" @@ -64,7 +64,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Restart}" /> + Visual="{icons:Lucide Kind=RotateCcw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -79,7 +79,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=Disconnect}" /> + Visual="{icons:Lucide Kind=Unplug}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -94,7 +94,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Octicons Kind=ScreenFull}" /> + Visual="{icons:Lucide Kind=Maximize}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -108,7 +108,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Octicons Kind=ScreenNormal}" /> + Visual="{icons:Lucide Kind=Minimize}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -123,10 +123,10 @@ <Rectangle.Resources> <VisualBrush x:Key="VisualEye" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Eye}" /> + Visual="{icons:Lucide Kind=Eye}" /> <VisualBrush x:Key="VisualEyeOff" Stretch="Uniform" - Visual="{iconPacks:Material Kind=EyeOff}" /> + Visual="{icons:Lucide Kind=EyeOff}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -153,7 +153,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=KeyboardVariant}" /> + Visual="{icons:Lucide Kind=Keyboard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -203,7 +203,7 @@ Visibility="{Binding View.IsViewOnly, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Eye}" /> + Visual="{icons:Lucide Kind=Eye}" /> </Rectangle.OpacityMask> </Rectangle> <Button Style="{StaticResource CleanButton}" @@ -213,7 +213,7 @@ <Rectangle Width="16" Height="16" Style="{StaticResource DragablzTabHeaderCloseIcon}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -247,7 +247,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Restart}" /> + Visual="{icons:Lucide Kind=RotateCcw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -262,7 +262,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=ArrowExpand}" /> + Visual="{icons:Lucide Kind=Maximize2}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -288,7 +288,7 @@ <Rectangle Width="16" Height="16" Style="{StaticResource DragablzTabHeaderCloseIcon}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -322,7 +322,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Restart}" /> + Visual="{icons:Lucide Kind=RotateCcw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -337,7 +337,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=ArrowExpand}" /> + Visual="{icons:Lucide Kind=Maximize2}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -351,7 +351,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -377,7 +377,7 @@ <Rectangle Width="16" Height="16" Style="{StaticResource DragablzTabHeaderCloseIcon}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -410,7 +410,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Restart}" /> + Visual="{icons:Lucide Kind=RotateCcw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -436,7 +436,7 @@ <Rectangle Width="16" Height="16" Style="{StaticResource DragablzTabHeaderCloseIcon}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -469,7 +469,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -495,7 +495,7 @@ <Rectangle Width="16" Height="16" Style="{StaticResource DragablzTabHeaderCloseIcon}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </Button> diff --git a/Source/NETworkManager/Controls/TracerouteMapControl.xaml b/Source/NETworkManager/Controls/TracerouteMapControl.xaml index 0ec57591f6..c5f3d1007b 100644 --- a/Source/NETworkManager/Controls/TracerouteMapControl.xaml +++ b/Source/NETworkManager/Controls/TracerouteMapControl.xaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" mc:Ignorable="d" @@ -126,8 +126,8 @@ <Rectangle Width="16" Height="16" VerticalAlignment="Center"> <Rectangle.Resources> - <VisualBrush x:Key="VisualChevronUp" Stretch="Uniform" Visual="{iconPacks:Material Kind=ChevronUp}" /> - <VisualBrush x:Key="VisualChevronDown" Stretch="Uniform" Visual="{iconPacks:Material Kind=ChevronDown}" /> + <VisualBrush x:Key="VisualChevronUp" Stretch="Uniform" Visual="{icons:Lucide Kind=ChevronUp}" /> + <VisualBrush x:Key="VisualChevronDown" Stretch="Uniform" Visual="{icons:Lucide Kind=ChevronDown}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -177,7 +177,7 @@ <Rectangle Width="16" Height="16" VerticalAlignment="Center"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FitToScreenOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Scan}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> diff --git a/Source/NETworkManager/Controls/WebConsoleControl.xaml b/Source/NETworkManager/Controls/WebConsoleControl.xaml index b9a66ac25d..22dfd3fc6e 100644 --- a/Source/NETworkManager/Controls/WebConsoleControl.xaml +++ b/Source/NETworkManager/Controls/WebConsoleControl.xaml @@ -7,7 +7,7 @@ xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:settings="clr-namespace:NETworkManager.Settings;assembly=NETworkManager.Settings" xmlns:webview="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf" mc:Ignorable="d" Loaded="UserControl_Loaded" @@ -41,7 +41,7 @@ <Button Command="{Binding GoBackCommand}" Grid.Column="0" Style="{StaticResource CleanButton}"> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ArrowLeftCircleOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CircleArrowLeft}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -60,7 +60,7 @@ <Button Command="{Binding GoForwardCommand}" Grid.Column="2" Style="{StaticResource CleanButton}"> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ArrowRightCircleOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CircleArrowRight}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -79,7 +79,7 @@ <Button Command="{Binding ReloadCommand}" Grid.Column="4" Style="{StaticResource CleanButton}"> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -126,7 +126,7 @@ </Button.Style> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Play}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Play}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -148,7 +148,7 @@ Grid.Column="8"> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=WindowClose}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index 8a61b89266..cc63480448 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -6,7 +6,7 @@ xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:dd="clr-namespace:GongSolutions.Wpf.DragDrop;assembly=GongSolutions.Wpf.DragDrop" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:shell="clr-namespace:ControlzEx.Windows.Shell;assembly=ControlzEx" xmlns:controls="clr-namespace:NETworkManager.Controls" xmlns:interactivity="http://schemas.microsoft.com/xaml/behaviors" @@ -39,7 +39,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=OpenInNew}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ExternalLink}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -48,7 +48,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Pulse}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Activity}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -57,7 +57,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:MaterialLight Kind=Cog}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Settings}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -66,7 +66,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource Brushes.Status.Error}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=WindowClose}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -101,7 +101,7 @@ <Rectangle Width="20" Height="20" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Accent}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ProgressCheck}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CircleCheck}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{x:Static Member=localization:Strings.RestartRequired}" @@ -119,7 +119,7 @@ <Rectangle Width="20" Height="20" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Accent}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=RocketLaunchOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Rocket}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -133,7 +133,7 @@ <Rectangle Width="20" Height="20" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Accent}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=InterfacePassword}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Lock}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -173,7 +173,7 @@ <Setter Property="OpacityMask"> <Setter.Value> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:FontAwesome Kind=UserSolid}" /> + Visual="{icons:Lucide Kind=User}" /> </Setter.Value> </Setter> <Style.Triggers> @@ -181,7 +181,7 @@ <Setter Property="OpacityMask"> <Setter.Value> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:FontAwesome Kind=UserLockSolid}" /> + Visual="{icons:Lucide Kind=UserLock}" /> </Setter.Value> </Setter> </DataTrigger> @@ -203,7 +203,7 @@ <Rectangle Width="20" Height="20" Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Github}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Github}" /> </Rectangle.OpacityMask> </Rectangle> </StackPanel> @@ -218,7 +218,7 @@ <Rectangle Width="20" Height="20" Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Bug}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Bug}" /> </Rectangle.OpacityMask> </Rectangle> </StackPanel> @@ -231,7 +231,7 @@ <Rectangle Width="20" Height="20" Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Book}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=BookOpen}" /> </Rectangle.OpacityMask> </Rectangle> </StackPanel> @@ -244,7 +244,7 @@ <StackPanel Orientation="Horizontal"> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Heart}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Heart}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="Rectangle"> @@ -303,7 +303,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:FontAwesome Kind=TerminalSolid}" /> + Visual="{icons:Lucide Kind=Terminal}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" @@ -447,7 +447,7 @@ <Rectangle Grid.Column="0" Width="16" Height="16" Margin="0,0,-2,0"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ChevronDoubleRight}" /> + Visual="{icons:Lucide Kind=ChevronsRight}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -572,7 +572,7 @@ </ToggleButton.Style> <Rectangle Width="16" Height="16"> <Rectangle.Resources> - <VisualBrush x:Key="VisualPin" Visual="{iconPacks:Modern Kind=Pin}" /> + <VisualBrush x:Key="VisualPin" Visual="{icons:Lucide Kind=Pin}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -900,7 +900,7 @@ <Rectangle Width="24" Height="24"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=FilterRemoveOutline}" /> + Visual="{icons:Lucide Kind=FunnelX}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -970,7 +970,7 @@ </Grid.ColumnDefinitions> <Rectangle Grid.Column="0" Width="24" Height="24" Margin="0,0,-2,0"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:MaterialLight Kind=Cog}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Settings}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -1106,7 +1106,7 @@ <Rectangle Grid.Column="0" Width="16" Height="16"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:MaterialLight Kind=ArrowLeft}" /> + Visual="{icons:Lucide Kind=ArrowLeft}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/NETworkManager.csproj b/Source/NETworkManager/NETworkManager.csproj index a6f188a76d..5caa0a6063 100644 --- a/Source/NETworkManager/NETworkManager.csproj +++ b/Source/NETworkManager/NETworkManager.csproj @@ -68,11 +68,6 @@ <PackageReference Include="LiveChartsCore.SkiaSharpView.WPF" Version="2.0.5" /> <PackageReference Include="log4net" Version="3.5.0" /> <PackageReference Include="MahApps.Metro" Version="2.4.11" /> - <PackageReference Include="MahApps.Metro.IconPacks.FontAwesome" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Material" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.MaterialLight" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Modern" Version="6.2.1" /> - <PackageReference Include="MahApps.Metro.IconPacks.Octicons" Version="6.2.1" /> <PackageReference Include="MahApps.Metro.SimpleChildWindow" Version="2.2.1" /> <PackageReference Include="Microsoft.Web.WebView2" Version="1.0.4314.35" /> <PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.3.1" /> diff --git a/Source/NETworkManager/NotificationWindow.xaml b/Source/NETworkManager/NotificationWindow.xaml index 88841f2e12..ab1242ba7d 100644 --- a/Source/NETworkManager/NotificationWindow.xaml +++ b/Source/NETworkManager/NotificationWindow.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:networkManager="clr-namespace:NETworkManager" mc:Ignorable="d" @@ -75,7 +75,7 @@ Margin="0,0,0,0"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=WindowClose}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -105,7 +105,7 @@ <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform"> <VisualBrush.Visual> - <iconPacks:PackIconMaterial Kind="{Binding IconKind}" /> + <icons:LucideIcon Kind="{Binding IconKind}" /> </VisualBrush.Visual> </VisualBrush> </Rectangle.OpacityMask> diff --git a/Source/NETworkManager/NotificationWindow.xaml.cs b/Source/NETworkManager/NotificationWindow.xaml.cs index 837b2f2c09..730c93840c 100644 --- a/Source/NETworkManager/NotificationWindow.xaml.cs +++ b/Source/NETworkManager/NotificationWindow.xaml.cs @@ -1,4 +1,4 @@ -using MahApps.Metro.IconPacks; +using NETworkManager.Controls; using NETworkManager.Localization; using NETworkManager.Models; using NETworkManager.Settings; @@ -51,7 +51,7 @@ private void OnPropertyChanged([CallerMemberName] string propertyName = null) public Brush ApplicationIconBrush { get; } public string ApplicationTitle { get; } - public PackIconMaterialKind IconKind { get; } + public LucideIconKind IconKind { get; } public Brush IconBrush { get; } public string NotificationTitle { get; } public IReadOnlyList<NotificationLineItem> Lines { get; } @@ -153,16 +153,16 @@ private static Color GetStatusColor(string key) /// </summary> /// <param name="status">Status of the notification.</param> /// <returns>Icon and brush.</returns> - private static (PackIconMaterialKind kind, Brush brush) GetStatusIcon(NotificationStatus status) + private static (LucideIconKind kind, Brush brush) GetStatusIcon(NotificationStatus status) { var brush = GetStatusBrush(status); var kind = status switch { - NotificationStatus.Up => PackIconMaterialKind.LanConnect, - NotificationStatus.Down => PackIconMaterialKind.LanDisconnect, - NotificationStatus.UpAndDown => PackIconMaterialKind.Lan, - _ => PackIconMaterialKind.LanPending + NotificationStatus.Up => LucideIconKind.Cable, + NotificationStatus.Down => LucideIconKind.Unplug, + NotificationStatus.UpAndDown => LucideIconKind.Network, + _ => LucideIconKind.Cable }; return (kind, brush); diff --git a/Source/NETworkManager/Resources/ContextMenu/ContextMenu.xaml b/Source/NETworkManager/Resources/ContextMenu/ContextMenu.xaml index 096157919f..8e465f6520 100644 --- a/Source/NETworkManager/Resources/ContextMenu/ContextMenu.xaml +++ b/Source/NETworkManager/Resources/ContextMenu/ContextMenu.xaml @@ -1,6 +1,6 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"> <ContextMenu x:Key="CutCopyPasteContextMenu" MinWidth="150"> <MenuItem Header="{x:Static localization:Strings.Cut}" Command="Cut"> @@ -12,7 +12,7 @@ </Style> </Rectangle.Style> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentCut}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Scissors}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -26,7 +26,7 @@ </Style> </Rectangle.Style> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentCopy}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Copy}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -40,7 +40,7 @@ </Style> </Rectangle.Style> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentPaste}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ClipboardPaste}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -57,7 +57,7 @@ </Style> </Rectangle.Style> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentCopy}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Copy}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -74,7 +74,7 @@ </Style> </Rectangle.Style> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentCopy}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Copy}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -88,7 +88,7 @@ </Style> </Rectangle.Style> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml index 4fd8a31181..50376a56b0 100644 --- a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml @@ -1,6 +1,6 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" xmlns:networkManagerControls="clr-namespace:NETworkManager.Controls" @@ -172,7 +172,7 @@ <Rectangle Width="16" Height="16" Style="{StaticResource DragablzTabHeaderCloseIcon}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </Button> diff --git a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml index db413111f9..ea143dfce8 100644 --- a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml @@ -1,7 +1,7 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:networkManager="clr-namespace:NETworkManager"> <Style x:Key="ExpanderDownHeader" BasedOn="{StaticResource ResourceKey=MahApps.Styles.ToggleButton.ExpanderHeader.Down}" @@ -29,7 +29,7 @@ <RotateTransform Angle="180" /> </Rectangle.RenderTransform> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ChevronDown}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ChevronDown}" /> </Rectangle.OpacityMask> </Rectangle> <mahAppsControls:ContentControlEx Grid.Column="1" @@ -133,7 +133,7 @@ <RotateTransform Angle="180" /> </Rectangle.RenderTransform> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ChevronDown}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ChevronDown}" /> </Rectangle.OpacityMask> </Rectangle> <mahAppsControls:ContentControlEx Grid.Column="1" @@ -208,7 +208,7 @@ VerticalAlignment="Center" HorizontalAlignment="Center"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ChevronLeft}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ChevronLeft}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Row="1" diff --git a/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml b/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml index 02adf0a1f7..3514222800 100644 --- a/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml @@ -1,6 +1,6 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"> + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"> <!-- Drag-preview adorner shown while a GridSplitter with ShowsPreview="True" is being dragged. Without an explicit PreviewStyle, WPF falls back to its own built-in default (an opaque @@ -51,13 +51,13 @@ <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" /> - <iconPacks:PackIconMaterial Kind="DragVerticalVariant" + <icons:LucideIcon Kind="GripVertical" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" IsHitTestVisible="False"> - <iconPacks:PackIconMaterial.Style> - <Style TargetType="{x:Type iconPacks:PackIconMaterial}"> + <icons:LucideIcon.Style> + <Style TargetType="{x:Type icons:LucideIcon}"> <Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Gray3}" /> <Setter Property="Visibility" Value="Hidden" /> <Style.Triggers> @@ -67,8 +67,8 @@ </DataTrigger> </Style.Triggers> </Style> - </iconPacks:PackIconMaterial.Style> - </iconPacks:PackIconMaterial> + </icons:LucideIcon.Style> + </icons:LucideIcon> </Grid> </ControlTemplate> </Setter.Value> @@ -108,13 +108,13 @@ <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" /> - <iconPacks:PackIconMaterial Kind="DragHorizontalVariant" + <icons:LucideIcon Kind="GripHorizontal" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" IsHitTestVisible="False"> - <iconPacks:PackIconMaterial.Style> - <Style TargetType="{x:Type iconPacks:PackIconMaterial}"> + <icons:LucideIcon.Style> + <Style TargetType="{x:Type icons:LucideIcon}"> <Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Gray3}" /> <Setter Property="Visibility" Value="Hidden" /> <Style.Triggers> @@ -124,8 +124,8 @@ </DataTrigger> </Style.Triggers> </Style> - </iconPacks:PackIconMaterial.Style> - </iconPacks:PackIconMaterial> + </icons:LucideIcon.Style> + </icons:LucideIcon> </Grid> </ControlTemplate> </Setter.Value> diff --git a/Source/NETworkManager/Resources/Styles/MenuItemStyles.xaml b/Source/NETworkManager/Resources/Styles/MenuItemStyles.xaml index 682f976e81..668b8de9d5 100644 --- a/Source/NETworkManager/Resources/Styles/MenuItemStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/MenuItemStyles.xaml @@ -1,6 +1,6 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"> + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"> <!-- MahApps binds HorizontalContentAlignment / VerticalContentAlignment of a MenuItem to its parent ItemsControl (RelativeSource FindAncestor). A MenuItem created outside of a menu (e.g. in a CompositeCollection or an x:Array @@ -24,7 +24,7 @@ <Setter.Value> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentCopy}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Copy}" /> </Rectangle.OpacityMask> </Rectangle> </Setter.Value> diff --git a/Source/NETworkManager/Resources/Styles/PasswordBoxStyles.xaml b/Source/NETworkManager/Resources/Styles/PasswordBoxStyles.xaml index 1e9c0be629..d10d146816 100644 --- a/Source/NETworkManager/Resources/Styles/PasswordBoxStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/PasswordBoxStyles.xaml @@ -1,6 +1,6 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"> <Style x:Key="DefaultPasswordBox" TargetType="{x:Type PasswordBox}" @@ -24,7 +24,7 @@ <Setter.Value> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=AppleKeyboardShift}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ArrowBigUp}" /> </Rectangle.OpacityMask> </Rectangle> </Setter.Value> diff --git a/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml index 5aa67e2fed..3567ec0f3d 100644 --- a/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml @@ -1,6 +1,6 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"> + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"> <Style x:Key="ButtonWithImageRectangle" TargetType="{x:Type Rectangle}"> <Setter Property="Width" Value="20" /> <Setter Property="Height" Value="20" /> @@ -15,7 +15,7 @@ <Setter Property="Fill" Value="{DynamicResource MahApps.Brushes.Gray3}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=HelpCircleOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CircleQuestionMark}" /> </Setter.Value> </Setter> <Setter Property="ToolTipService.InitialShowDelay" Value="0" /> @@ -29,7 +29,7 @@ <Setter Property="Fill" Value="{DynamicResource MahApps.Brushes.Gray3}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=InformationOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Info}" /> </Setter.Value> </Setter> <Setter Property="ToolTipService.InitialShowDelay" Value="0" /> @@ -43,7 +43,7 @@ <Setter Property="Fill" Value="{DynamicResource MahApps.Brushes.Gray3}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=HelpCircleOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CircleQuestionMark}" /> </Setter.Value> </Setter> <Setter Property="ToolTipService.InitialShowDelay" Value="0" /> @@ -57,7 +57,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Warning}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=AlertOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=TriangleAlert}" /> </Setter.Value> </Setter> <Setter Property="ToolTipService.InitialShowDelay" Value="0" /> @@ -71,7 +71,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=AlertOctagonOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=OctagonAlert}" /> </Setter.Value> </Setter> <Setter Property="ToolTipService.InitialShowDelay" Value="0" /> @@ -87,7 +87,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Success}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Check}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Check}" /> </Setter.Value> </Setter> </Style> @@ -100,7 +100,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Warning}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=AlertOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=TriangleAlert}" /> </Setter.Value> </Setter> </Style> @@ -114,7 +114,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Setter.Value> </Setter> </Style> @@ -128,7 +128,7 @@ <Setter Property="Fill" Value="{DynamicResource MahApps.Brushes.Gray5}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=HelpCircleOutline}"/> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CircleQuestionMark}"/> </Setter.Value> </Setter> </Style> @@ -142,7 +142,7 @@ <Setter Property="Fill" Value="{DynamicResource MahApps.Brushes.Gray5}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=InformationOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Info}" /> </Setter.Value> </Setter> </Style> @@ -161,7 +161,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Success}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=LanConnect}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Cable}" /> </Setter.Value> </Setter> </Style> @@ -174,7 +174,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=LanDisconnect}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Unplug}" /> </Setter.Value> </Setter> </Style> @@ -187,7 +187,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Success}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=NetworkPort}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ScanLine}" /> </Setter.Value> </Setter> </Style> @@ -200,7 +200,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=NetworkPortDisconnect}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Unplug}" /> </Setter.Value> </Setter> </Style> diff --git a/Source/NETworkManager/Resources/Templates/ValidationErrorTemplates.xaml b/Source/NETworkManager/Resources/Templates/ValidationErrorTemplates.xaml index ef00b59bda..17ec303dca 100644 --- a/Source/NETworkManager/Resources/Templates/ValidationErrorTemplates.xaml +++ b/Source/NETworkManager/Resources/Templates/ValidationErrorTemplates.xaml @@ -1,7 +1,7 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"> + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"> <converters:BooleansOrConverter x:Key="BooleansOrConverter" /> <ControlTemplate x:Key="DefaultErrorTemplate"> @@ -56,7 +56,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=InformationVariant}" /> + Visual="{icons:Lucide Kind=Info}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{Binding Path=/ErrorContent}" diff --git a/Source/NETworkManager/StatusWindow.xaml b/Source/NETworkManager/StatusWindow.xaml index 791ccfc2af..d32b907e58 100644 --- a/Source/NETworkManager/StatusWindow.xaml +++ b/Source/NETworkManager/StatusWindow.xaml @@ -7,7 +7,7 @@ xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:networkManager="clr-namespace:NETworkManager" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" mc:Ignorable="d" d:DataContext="{d:DesignInstance networkManager:StatusWindow}" TitleAlignment="Left" Style="{DynamicResource ResourceKey=FrameWindow}" @@ -36,7 +36,7 @@ <Rectangle Width="16" Height="16" Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=OpenInNew}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ExternalLink}" /> </Rectangle.OpacityMask> </Rectangle> </StackPanel> diff --git a/Source/NETworkManager/Views/AboutView.xaml b/Source/NETworkManager/Views/AboutView.xaml index 5a0d75e9e8..d3aa996275 100644 --- a/Source/NETworkManager/Views/AboutView.xaml +++ b/Source/NETworkManager/Views/AboutView.xaml @@ -6,7 +6,7 @@ xmlns:resources="clr-namespace:NETworkManager.Properties" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:documentation="clr-namespace:NETworkManager.Documentation;assembly=NETworkManager.Documentation" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" @@ -76,7 +76,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Heart}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Heart}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" @@ -106,7 +106,7 @@ CommandParameter="{Binding UpdateReleaseUrl, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" /> </Rectangle.InputBindings> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=RocketLaunchOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Rocket}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Style="{StaticResource DefaultTextBlock}" @@ -142,7 +142,7 @@ CommandParameter="{x:Static resources:Resources.NETworkManager_GitHubRepoUrl}"> <Rectangle Width="24" Height="24"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Github}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Github}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -163,7 +163,7 @@ Margin="10,0,0,0"> <Rectangle Width="24" Height="24"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Bug}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Bug}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -183,7 +183,7 @@ Margin="10,0,0,0"> <Rectangle Width="24" Height="24"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Book}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=BookOpen}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -204,7 +204,7 @@ Margin="10,0,0,0"> <Rectangle Width="24" Height="24"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Translate}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Languages}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -225,7 +225,7 @@ Margin="10,0,0,0"> <Rectangle Width="24" Height="24"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:FontAwesome Kind=XTwitterBrands}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=XLogo}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -259,7 +259,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=OpenInNew}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ExternalLink}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -270,7 +270,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=OpenInNew}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ExternalLink}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -317,7 +317,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FolderOpen}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FolderOpen}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.ShowLocalLicenses}" @@ -341,7 +341,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=OpenInNew}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ExternalLink}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -389,7 +389,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=OpenInNew}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ExternalLink}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Views/BitCalculatorView.xaml b/Source/NETworkManager/Views/BitCalculatorView.xaml index 839bbee3cd..22987ef3e6 100644 --- a/Source/NETworkManager/Views/BitCalculatorView.xaml +++ b/Source/NETworkManager/Views/BitCalculatorView.xaml @@ -4,7 +4,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" @@ -93,7 +93,7 @@ <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Calculator}" /> + Visual="{icons:Lucide Kind=Calculator}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.Calculate}" @@ -204,7 +204,7 @@ <Rectangle Grid.Column="0" Grid.Row="0" Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" diff --git a/Source/NETworkManager/Views/ConnectionsView.xaml b/Source/NETworkManager/Views/ConnectionsView.xaml index 44de0f3b22..ffd65ea0a6 100644 --- a/Source/NETworkManager/Views/ConnectionsView.xaml +++ b/Source/NETworkManager/Views/ConnectionsView.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" @@ -60,7 +60,7 @@ wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsRefreshing}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -141,7 +141,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -153,7 +153,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml b/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml index f3216c0df0..14dee170be 100644 --- a/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml +++ b/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:interactivity="http://schemas.microsoft.com/xaml/behaviors" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" @@ -68,7 +68,7 @@ </ToggleButton.Style> <Rectangle Width="16" Height="16" Tag="Chevron"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ChevronRight}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ChevronRight}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -110,9 +110,9 @@ <Rectangle Width="16" Height="16"> <Rectangle.Resources> <VisualBrush x:Key="VisualFilter" Stretch="Uniform" - Visual="{iconPacks:Material Kind=FilterOutline}" /> + Visual="{icons:Lucide Kind=Funnel}" /> <VisualBrush x:Key="VisualFilterRemove" Stretch="Uniform" - Visual="{iconPacks:Material Kind=FilterMultipleOutline}" /> + Visual="{icons:Lucide Kind=ListFilter}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -205,7 +205,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ContentSaveOutline}" /> + Visual="{icons:Lucide Kind=Save}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -217,7 +217,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=FilterRemoveOutline}" /> + Visual="{icons:Lucide Kind=FunnelX}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -232,7 +232,7 @@ ToolTip="{x:Static Member=localization:Strings.AddProfileDots}"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -300,7 +300,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=PlusBoxMultipleOutline}" /> + Visual="{icons:Lucide Kind=ListChevronsUpDown}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -313,7 +313,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=MinusBoxMultipleOutline}" /> + Visual="{icons:Lucide Kind=ListChevronsDownUp}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -334,7 +334,7 @@ <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=Edit}" /> + Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style @@ -401,7 +401,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=Edit}" /> + Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -413,7 +413,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ContentDuplicate}" /> + Visual="{icons:Lucide Kind=CopyPlus}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -425,7 +425,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Close}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -483,9 +483,9 @@ <Rectangle Grid.Column="0" Width="20" Height="20"> <Rectangle.Resources> <VisualBrush x:Key="VisualPlus" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Plus}" /> + Visual="{icons:Lucide Kind=Plus}" /> <VisualBrush x:Key="VisualClear" Stretch="Uniform" - Visual="{iconPacks:Material Kind=FilterRemoveOutline}" /> + Visual="{icons:Lucide Kind=FunnelX}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -564,7 +564,7 @@ </ToggleButton.Style> <Rectangle Width="16" Height="16" Tag="Chevron"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ChevronRight}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ChevronRight}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -595,7 +595,7 @@ Width="20" Height="20"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=InterfacePassword}" /> + Visual="{icons:Lucide Kind=Lock}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> diff --git a/Source/NETworkManager/Views/CredentialsPasswordProfileFileChildWindow.xaml b/Source/NETworkManager/Views/CredentialsPasswordProfileFileChildWindow.xaml index 1c12484350..1d2ffb9b9b 100644 --- a/Source/NETworkManager/Views/CredentialsPasswordProfileFileChildWindow.xaml +++ b/Source/NETworkManager/Views/CredentialsPasswordProfileFileChildWindow.xaml @@ -9,7 +9,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" @@ -36,7 +36,7 @@ Width="32" Height="32" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:FontAwesome Kind=UserLockSolid}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=UserLock}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="2" Grid.Row="0" @@ -64,7 +64,7 @@ Width="24" Height="24" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=File}" /> </Rectangle.OpacityMask> </Rectangle> <TextBox Grid.Column="2" Grid.Row="0" @@ -76,7 +76,7 @@ Width="24" Height="24" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=LockOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Lock}" /> </Rectangle.OpacityMask> </Rectangle> <PasswordBox x:Name="PasswordBoxPassword" Grid.Column="2" Grid.Row="2" diff --git a/Source/NETworkManager/Views/CustomCommandChildWindow.xaml b/Source/NETworkManager/Views/CustomCommandChildWindow.xaml index 15504b863a..0e7db320d9 100644 --- a/Source/NETworkManager/Views/CustomCommandChildWindow.xaml +++ b/Source/NETworkManager/Views/CustomCommandChildWindow.xaml @@ -8,7 +8,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/DNSLookupHostView.xaml b/Source/NETworkManager/Views/DNSLookupHostView.xaml index d8ed67d72a..c1dfa4d37f 100644 --- a/Source/NETworkManager/Views/DNSLookupHostView.xaml +++ b/Source/NETworkManager/Views/DNSLookupHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" @@ -50,7 +50,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=SearchWeb}" /> + Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -101,7 +101,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -133,7 +133,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/DNSLookupSettingsView.xaml b/Source/NETworkManager/Views/DNSLookupSettingsView.xaml index d8148b433d..e5ee4bf212 100644 --- a/Source/NETworkManager/Views/DNSLookupSettingsView.xaml +++ b/Source/NETworkManager/Views/DNSLookupSettingsView.xaml @@ -10,7 +10,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:DNSLookupSettingsViewModel}"> <UserControl.Resources> <converters:ListServerConnectionInfoToStringConverter x:Key="ListServerConnectionInfoToStringConverter" /> @@ -29,7 +29,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -39,7 +39,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -85,7 +85,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.AddDots}" diff --git a/Source/NETworkManager/Views/DNSLookupView.xaml b/Source/NETworkManager/Views/DNSLookupView.xaml index 3e168d3591..5a4fcacb8b 100644 --- a/Source/NETworkManager/Views/DNSLookupView.xaml +++ b/Source/NETworkManager/Views/DNSLookupView.xaml @@ -6,7 +6,7 @@ xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" @@ -125,7 +125,7 @@ <Rectangle> <Rectangle.Resources> <VisualBrush x:Key="VisualMagnify" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Magnify}" /> + Visual="{icons:Lucide Kind=Search}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}" @@ -192,7 +192,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -203,7 +203,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Views/DiscoveryProtocolView.xaml b/Source/NETworkManager/Views/DiscoveryProtocolView.xaml index 048552bbef..b036c61bad 100644 --- a/Source/NETworkManager/Views/DiscoveryProtocolView.xaml +++ b/Source/NETworkManager/Views/DiscoveryProtocolView.xaml @@ -4,7 +4,7 @@ xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:networkManager="clr-namespace:NETworkManager" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" @@ -79,7 +79,7 @@ <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=TimerRecord}" /> + Visual="{icons:Lucide Kind=Timer}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.Capture}" @@ -222,7 +222,7 @@ Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" @@ -289,7 +289,7 @@ Margin="10,5,0,5" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Shield}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Shield}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" diff --git a/Source/NETworkManager/Views/DropDownChildWindow.xaml b/Source/NETworkManager/Views/DropDownChildWindow.xaml index 23afda28c6..167fd95745 100644 --- a/Source/NETworkManager/Views/DropDownChildWindow.xaml +++ b/Source/NETworkManager/Views/DropDownChildWindow.xaml @@ -9,7 +9,7 @@ xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:DropDownViewModel}"> diff --git a/Source/NETworkManager/Views/ExportChildWindow.xaml b/Source/NETworkManager/Views/ExportChildWindow.xaml index 2a9d23728f..d566db7c77 100644 --- a/Source/NETworkManager/Views/ExportChildWindow.xaml +++ b/Source/NETworkManager/Views/ExportChildWindow.xaml @@ -11,7 +11,7 @@ xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/FirewallView.xaml b/Source/NETworkManager/Views/FirewallView.xaml index 388dd5458f..59001c7b83 100644 --- a/Source/NETworkManager/Views/FirewallView.xaml +++ b/Source/NETworkManager/Views/FirewallView.xaml @@ -6,7 +6,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:internalControls="clr-namespace:NETworkManager.Controls" @@ -75,7 +75,7 @@ <Rectangle Width="16" Height="16" wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsRefreshing}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -133,7 +133,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ToggleSwitchOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ToggleRight}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -147,7 +147,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ToggleSwitchOffOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ToggleLeft}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -181,7 +181,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -207,7 +207,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentDuplicate}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CopyPlus}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -220,7 +220,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -296,7 +296,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -312,7 +312,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ToggleSwitchOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ToggleRight}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -326,7 +326,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ToggleSwitchOffOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ToggleLeft}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -339,7 +339,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -350,7 +350,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -378,7 +378,7 @@ <Rectangle x:Name="ExpandRowDetails" Height="16" Width="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ChevronUp}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ChevronUp}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -386,7 +386,7 @@ <DataTrigger Binding="{Binding Path=DetailsVisibility, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=DataGridRow}}" Value="Visible"> <Setter TargetName="ExpandRowDetails" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ChevronDown}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ChevronDown}" /> </Setter.Value> </Setter> </DataTrigger> @@ -417,7 +417,7 @@ <Rectangle x:Name="ManagedIcon" Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ShieldOffOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ShieldOff}" /> </Rectangle.OpacityMask> </Rectangle> </Border> @@ -426,7 +426,7 @@ <Setter TargetName="ManagedBorder" Property="ToolTip" Value="{x:Static localization:Strings.FirewallRuleManagedMessage}" /> <Setter TargetName="ManagedIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ShieldOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Shield}" /> </Setter.Value> </Setter> </DataTrigger> @@ -434,7 +434,7 @@ <Setter TargetName="ManagedBorder" Property="ToolTip" Value="{x:Static localization:Strings.FirewallRuleManagedByGroupPolicyMessage}" /> <Setter TargetName="ManagedIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ShieldLockOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ShieldLock}" /> </Setter.Value> </Setter> </DataTrigger> @@ -442,7 +442,7 @@ <Setter TargetName="ManagedBorder" Property="ToolTip" Value="{x:Static localization:Strings.FirewallRuleManagedByMDMMessage}" /> <Setter TargetName="ManagedIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ShieldLockOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ShieldLock}" /> </Setter.Value> </Setter> </DataTrigger> @@ -450,7 +450,7 @@ <Setter TargetName="ManagedBorder" Property="ToolTip" Value="{x:Static localization:Strings.FirewallRuleManagedByOtherMessage}" /> <Setter TargetName="ManagedIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ShieldLockOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ShieldLock}" /> </Setter.Value> </Setter> </DataTrigger> @@ -499,7 +499,7 @@ Margin="0,0,6,0" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ArrowDown}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ArrowDown}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{Binding Direction, Converter={StaticResource FirewallRuleDirectionToStringConverter}}" @@ -509,7 +509,7 @@ <DataTrigger Binding="{Binding Direction}" Value="{x:Static firewall:FirewallRuleDirection.Outbound}"> <Setter TargetName="DirectionIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ArrowUp}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ArrowUp}" /> </Setter.Value> </Setter> </DataTrigger> @@ -526,7 +526,7 @@ <Rectangle x:Name="ActionIcon" Width="16" Height="16" Fill="{DynamicResource Brushes.Status.Error}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> <DataTemplate.Triggers> @@ -534,7 +534,7 @@ <Setter TargetName="ActionIcon" Property="Fill" Value="{DynamicResource Brushes.Status.Success}" /> <Setter TargetName="ActionIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Check}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Check}" /> </Setter.Value> </Setter> </DataTrigger> @@ -787,7 +787,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:FontAwesome Kind=WindowsBrands}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=AppWindow}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" @@ -811,7 +811,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" @@ -845,7 +845,7 @@ Margin="10,5,0,5" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Shield}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Shield}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" diff --git a/Source/NETworkManager/Views/GroupChildWindow.xaml b/Source/NETworkManager/Views/GroupChildWindow.xaml index 328c54f2c4..320cbb5c44 100644 --- a/Source/NETworkManager/Views/GroupChildWindow.xaml +++ b/Source/NETworkManager/Views/GroupChildWindow.xaml @@ -19,7 +19,7 @@ xmlns:interactivity="http://schemas.microsoft.com/xaml/behaviors" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:profiles="clr-namespace:NETworkManager.Profiles;assembly=NETworkManager.Profiles" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" CloseButtonCommand="{Binding CancelCommand}" Style="{StaticResource DefaultChildWindow}" diff --git a/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml b/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml index 5f80f76b21..b08e7a005b 100644 --- a/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml +++ b/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml @@ -11,7 +11,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/HostsFileEditorView.xaml b/Source/NETworkManager/Views/HostsFileEditorView.xaml index 978515c167..9c393b460b 100644 --- a/Source/NETworkManager/Views/HostsFileEditorView.xaml +++ b/Source/NETworkManager/Views/HostsFileEditorView.xaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:hostsFileEditor="clr-namespace:NETworkManager.Models.HostsFileEditor;assembly=NETworkManager.Models" @@ -64,7 +64,7 @@ wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsRefreshing}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -105,7 +105,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ToggleSwitchOutline}" /> + Visual="{icons:Lucide Kind=ToggleRight}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -120,7 +120,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ToggleSwitchOffOutline}" /> + Visual="{icons:Lucide Kind=ToggleLeft}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -133,7 +133,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -146,7 +146,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentDuplicate}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CopyPlus}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -159,7 +159,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -190,7 +190,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey= MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -207,7 +207,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ToggleSwitchOutline}" /> + Visual="{icons:Lucide Kind=ToggleRight}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -222,7 +222,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ToggleSwitchOffOutline}" /> + Visual="{icons:Lucide Kind=ToggleLeft}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -235,7 +235,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -248,7 +248,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -259,7 +259,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -335,7 +335,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileEditOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FilePenLine}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" @@ -359,7 +359,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.AddEntryDots}" @@ -391,7 +391,7 @@ Margin="10,5,0,5" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Shield}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Shield}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" diff --git a/Source/NETworkManager/Views/IPAddressAndSubnetmaskChildWindow.xaml b/Source/NETworkManager/Views/IPAddressAndSubnetmaskChildWindow.xaml index b65f386777..132fad0d22 100644 --- a/Source/NETworkManager/Views/IPAddressAndSubnetmaskChildWindow.xaml +++ b/Source/NETworkManager/Views/IPAddressAndSubnetmaskChildWindow.xaml @@ -8,7 +8,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/IPApiDNSResolverWidgetView.xaml b/Source/NETworkManager/Views/IPApiDNSResolverWidgetView.xaml index 36758ff5b1..2855059cb3 100644 --- a/Source/NETworkManager/Views/IPApiDNSResolverWidgetView.xaml +++ b/Source/NETworkManager/Views/IPApiDNSResolverWidgetView.xaml @@ -2,7 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" @@ -48,7 +48,7 @@ <StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center"> <Rectangle Width="32" Height="32" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{x:Static localization:Strings.DNSResolver}" @@ -61,7 +61,7 @@ <Rectangle Width="20" Height="20" wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsRunning}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/IPApiIPGeolocationWidgetView.xaml b/Source/NETworkManager/Views/IPApiIPGeolocationWidgetView.xaml index 867ce8b030..3d12b639fb 100644 --- a/Source/NETworkManager/Views/IPApiIPGeolocationWidgetView.xaml +++ b/Source/NETworkManager/Views/IPApiIPGeolocationWidgetView.xaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:networkManager="clr-namespace:NETworkManager" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" @@ -51,7 +51,7 @@ <StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center"> <Rectangle Width="32" Height="32" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=MapMarkerOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=MapPin}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{x:Static localization:Strings.IPGeolocation}" @@ -64,7 +64,7 @@ <Rectangle Width="20" Height="20" wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsRunning}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/IPGeolocationHostView.xaml b/Source/NETworkManager/Views/IPGeolocationHostView.xaml index cbf4e4c3ac..41f3d5b4eb 100644 --- a/Source/NETworkManager/Views/IPGeolocationHostView.xaml +++ b/Source/NETworkManager/Views/IPGeolocationHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" @@ -49,7 +49,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Magnify}" /> + Visual="{icons:Lucide Kind=Search}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -100,7 +100,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -132,7 +132,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/IPGeolocationView.xaml b/Source/NETworkManager/Views/IPGeolocationView.xaml index af00668f07..01ad1d3361 100644 --- a/Source/NETworkManager/Views/IPGeolocationView.xaml +++ b/Source/NETworkManager/Views/IPGeolocationView.xaml @@ -7,7 +7,7 @@ xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:IPGeolocationViewModel}" @@ -88,7 +88,7 @@ <Rectangle> <Rectangle.Resources> <VisualBrush x:Key="VisualMagnify" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Magnify}" /> + Visual="{icons:Lucide Kind=Search}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}" @@ -298,7 +298,7 @@ <Rectangle Grid.Column="0" Grid.Row="0" Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" diff --git a/Source/NETworkManager/Views/IPScannerHostView.xaml b/Source/NETworkManager/Views/IPScannerHostView.xaml index 73e702ae75..55e0485e25 100644 --- a/Source/NETworkManager/Views/IPScannerHostView.xaml +++ b/Source/NETworkManager/Views/IPScannerHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" @@ -48,7 +48,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Play}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Play}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -61,7 +61,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Play}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Play}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -112,7 +112,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -144,7 +144,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/IPScannerSettingsView.xaml b/Source/NETworkManager/Views/IPScannerSettingsView.xaml index b8acb0de86..6077e7e5a5 100644 --- a/Source/NETworkManager/Views/IPScannerSettingsView.xaml +++ b/Source/NETworkManager/Views/IPScannerSettingsView.xaml @@ -6,7 +6,7 @@ xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:utilities="clr-namespace:NETworkManager.Utilities;assembly=NETworkManager.Utilities" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" @@ -93,7 +93,7 @@ </Button.Resources> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Restore}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Undo2}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -248,7 +248,7 @@ </Button.Resources> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Restore}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Undo2}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -326,7 +326,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -338,7 +338,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -348,7 +348,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -394,7 +394,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.AddDots}" diff --git a/Source/NETworkManager/Views/IPScannerView.xaml b/Source/NETworkManager/Views/IPScannerView.xaml index 08843b994f..31a5c70fca 100644 --- a/Source/NETworkManager/Views/IPScannerView.xaml +++ b/Source/NETworkManager/Views/IPScannerView.xaml @@ -9,7 +9,7 @@ xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" @@ -124,7 +124,7 @@ <Rectangle Width="20" Height="20" Margin="10,0,10,0" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Network}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=EthernetPort}" /> </Rectangle.OpacityMask> </Rectangle> </mah:DropDownButton.Content> @@ -165,7 +165,7 @@ <Rectangle Width="20" Height="20" Margin="10,0,10,0" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Tune}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=SlidersHorizontal}" /> </Rectangle.OpacityMask> </Rectangle> </mah:DropDownButton.Content> @@ -278,9 +278,9 @@ <Rectangle Grid.Column="0" Grid.Row="0"> <Rectangle.Resources> <VisualBrush x:Key="VisualControlPlay" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Play}" /> + Visual="{icons:Lucide Kind=Play}" /> <VisualBrush x:Key="VisualClose" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Close}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}" @@ -485,7 +485,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -497,7 +497,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=NetworkPort}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ScanLine}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -508,7 +508,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=RadarScreen}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Radar}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -519,7 +519,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=TransitConnection}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Route}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -528,7 +528,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -537,7 +537,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -548,7 +548,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -558,7 +558,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -567,7 +567,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -578,7 +578,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -590,7 +590,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=RemoteDesktop}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Monitor}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -601,7 +601,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Powershell}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=SquareChevronRight}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -612,7 +612,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:FontAwesome Kind=TerminalSolid}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Terminal}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -623,7 +623,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=EyeOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Eye}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -633,7 +633,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Browser}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=AppWindow}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -644,7 +644,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Switch}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Server}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -655,7 +655,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Power}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Power}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -665,7 +665,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Application}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=AppWindow}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -676,7 +676,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -686,7 +686,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentCopy}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Copy}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -872,7 +872,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -885,7 +885,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -895,7 +895,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentCopy}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Copy}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -931,7 +931,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -958,7 +958,7 @@ <Rectangle x:Name="ExpandRowDetails" Height="16" Width="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ChevronUp}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ChevronUp}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -969,7 +969,7 @@ <Setter TargetName="ExpandRowDetails" Property="OpacityMask"> <Setter.Value> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ChevronDown}" /> + Visual="{icons:Lucide Kind=ChevronDown}" /> </Setter.Value> </Setter> </DataTrigger> @@ -1013,7 +1013,7 @@ <Setter Property="OpacityMask"> <Setter.Value> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Monitor}" /> + Visual="{icons:Lucide Kind=Monitor}" /> </Setter.Value> </Setter> </DataTrigger> @@ -1023,7 +1023,7 @@ <Setter Property="OpacityMask"> <Setter.Value> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=RouterNetwork}" /> + Visual="{icons:Lucide Kind=Router}" /> </Setter.Value> </Setter> </DataTrigger> @@ -1033,7 +1033,7 @@ <Setter Property="OpacityMask"> <Setter.Value> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Dns}" /> + Visual="{icons:Lucide Kind=Server}" /> </Setter.Value> </Setter> </DataTrigger> @@ -1043,7 +1043,7 @@ <Setter Property="OpacityMask"> <Setter.Value> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=IpNetwork}" /> + Visual="{icons:Lucide Kind=Network}" /> </Setter.Value> </Setter> </DataTrigger> @@ -1076,7 +1076,7 @@ <Setter TargetName="ChangeIcon" Property="Fill" Value="{DynamicResource MahApps.Brushes.Gray5}" /> <Setter TargetName="ChangeIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Setter.Value> </Setter> <Setter TargetName="ChangeText" Property="Foreground" Value="{DynamicResource MahApps.Brushes.Gray5}" /> @@ -1085,7 +1085,7 @@ <Setter TargetName="ChangeIcon" Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> <Setter TargetName="ChangeIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Minus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Minus}" /> </Setter.Value> </Setter> <Setter TargetName="ChangeText" Property="Foreground" Value="{DynamicResource Brushes.Status.Error}" /> @@ -1094,7 +1094,7 @@ <Setter TargetName="ChangeIcon" Property="Fill" Value="{DynamicResource Brushes.Status.Warning}" /> <Setter TargetName="ChangeIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SwapHorizontal}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ArrowLeftRight}" /> </Setter.Value> </Setter> <Setter TargetName="ChangeText" Property="Foreground" Value="{DynamicResource Brushes.Status.Warning}" /> @@ -1188,7 +1188,7 @@ <Setter TargetName="OSIcon" Property="Visibility" Value="Visible" /> <Setter TargetName="OSIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=MicrosoftWindows}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=AppWindow}" /> </Setter.Value> </Setter> </MultiDataTrigger> @@ -1200,7 +1200,7 @@ <Setter TargetName="OSIcon" Property="Visibility" Value="Visible" /> <Setter TargetName="OSIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Console}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Terminal}" /> </Setter.Value> </Setter> </MultiDataTrigger> @@ -1212,7 +1212,7 @@ <Setter TargetName="OSIcon" Property="Visibility" Value="Visible" /> <Setter TargetName="OSIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Switch}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Server}" /> </Setter.Value> </Setter> </MultiDataTrigger> @@ -1222,7 +1222,7 @@ <Setter TargetName="OSIcon" Property="OpacityMask"> <Setter.Value> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=MicrosoftWindows}" /> + Visual="{icons:Lucide Kind=AppWindow}" /> </Setter.Value> </Setter> </DataTrigger> diff --git a/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml b/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml index 1b8e42519e..200c5c31bb 100644 --- a/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml +++ b/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml @@ -9,7 +9,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource ResourceKey=DefaultChildWindow}" @@ -114,7 +114,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray5}" Margin="0,0,4,0"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock x:Name="StatusText" @@ -127,7 +127,7 @@ <Setter TargetName="StatusIcon" Property="Fill" Value="{DynamicResource Brushes.Status.Success}" /> <Setter TargetName="StatusIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Check}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Check}" /> </Setter.Value> </Setter> <Setter TargetName="StatusText" Property="Text" Value="{x:Static Member=localization:Strings.ImportProfiles_StatusImported}" /> @@ -137,7 +137,7 @@ <Setter TargetName="StatusIcon" Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> <Setter TargetName="StatusIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=AlertOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=TriangleAlert}" /> </Setter.Value> </Setter> <Setter TargetName="StatusText" Property="Text" Value="{x:Static Member=localization:Strings.ImportProfiles_StatusNoHost}" /> diff --git a/Source/NETworkManager/Views/ListenersView.xaml b/Source/NETworkManager/Views/ListenersView.xaml index 0ae31d5cd0..334dedf0fe 100644 --- a/Source/NETworkManager/Views/ListenersView.xaml +++ b/Source/NETworkManager/Views/ListenersView.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" @@ -59,7 +59,7 @@ wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsRefreshing}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -112,7 +112,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -124,7 +124,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Views/LookupOUILookupView.xaml b/Source/NETworkManager/Views/LookupOUILookupView.xaml index 7ef5979d1c..8376497655 100644 --- a/Source/NETworkManager/Views/LookupOUILookupView.xaml +++ b/Source/NETworkManager/Views/LookupOUILookupView.xaml @@ -6,7 +6,7 @@ xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:lookup="clr-namespace:NETworkManager.Models.Lookup;assembly=NETworkManager.Models" @@ -86,7 +86,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Magnify}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Search}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.Query}" @@ -127,7 +127,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -138,7 +138,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Views/LookupPortLookupView.xaml b/Source/NETworkManager/Views/LookupPortLookupView.xaml index 355061cfd4..e27161628e 100644 --- a/Source/NETworkManager/Views/LookupPortLookupView.xaml +++ b/Source/NETworkManager/Views/LookupPortLookupView.xaml @@ -6,7 +6,7 @@ xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:lookup="clr-namespace:NETworkManager.Models.Lookup;assembly=NETworkManager.Models" @@ -85,7 +85,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Magnify}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Search}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.Query}" @@ -134,7 +134,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -145,7 +145,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Views/MessageChildWindow.xaml b/Source/NETworkManager/Views/MessageChildWindow.xaml index eece13622d..7a248101d8 100644 --- a/Source/NETworkManager/Views/MessageChildWindow.xaml +++ b/Source/NETworkManager/Views/MessageChildWindow.xaml @@ -6,7 +6,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" Loaded="ChildWindow_OnLoaded" CloseButtonCommand="{Binding Path=ConfirmCommand}" diff --git a/Source/NETworkManager/Views/MessageConfirmationChildWindow.xaml b/Source/NETworkManager/Views/MessageConfirmationChildWindow.xaml index 1d473b5d1c..03c7f30692 100644 --- a/Source/NETworkManager/Views/MessageConfirmationChildWindow.xaml +++ b/Source/NETworkManager/Views/MessageConfirmationChildWindow.xaml @@ -6,7 +6,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" Loaded="ChildWindow_OnLoaded" CloseButtonCommand="{Binding Path=CancelCommand}" diff --git a/Source/NETworkManager/Views/NeighborTableView.xaml b/Source/NETworkManager/Views/NeighborTableView.xaml index 9c9ca70bed..8bf0c614bd 100644 --- a/Source/NETworkManager/Views/NeighborTableView.xaml +++ b/Source/NETworkManager/Views/NeighborTableView.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" @@ -71,7 +71,7 @@ wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsRefreshing}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -111,7 +111,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -146,7 +146,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -158,7 +158,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -234,7 +234,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.DeleteTable}" @@ -256,7 +256,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.AddEntryDots}" @@ -288,7 +288,7 @@ Margin="10,5,0,5" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Shield}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Shield}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" diff --git a/Source/NETworkManager/Views/NetworkConnectionWidgetView.xaml b/Source/NETworkManager/Views/NetworkConnectionWidgetView.xaml index 85583b59e6..433800a607 100644 --- a/Source/NETworkManager/Views/NetworkConnectionWidgetView.xaml +++ b/Source/NETworkManager/Views/NetworkConnectionWidgetView.xaml @@ -1,7 +1,7 @@ <UserControl x:Class="NETworkManager.Views.NetworkConnectionWidgetView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" @@ -46,7 +46,7 @@ <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="10"> <Rectangle Width="32" Height="32" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Monitor}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Monitor}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{x:Static localization:Strings.Computer}" @@ -109,7 +109,7 @@ <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="10"> <Rectangle Width="32" Height="32" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=RouterWireless}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Router}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{x:Static localization:Strings.GatewayRouter}" @@ -178,7 +178,7 @@ <StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center"> <Rectangle Width="32" Height="32" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Globe}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{x:Static localization:Strings.Internet}" @@ -191,7 +191,7 @@ <Rectangle Width="20" Height="20" wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsChecking}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/NetworkInterfaceView.xaml b/Source/NETworkManager/Views/NetworkInterfaceView.xaml index 807a22ecb6..da8a066de6 100644 --- a/Source/NETworkManager/Views/NetworkInterfaceView.xaml +++ b/Source/NETworkManager/Views/NetworkInterfaceView.xaml @@ -5,7 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" @@ -72,7 +72,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ContentSave}" /> + Visual="{icons:Lucide Kind=Save}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -120,9 +120,9 @@ <Rectangle Width="24" Height="24"> <Rectangle.Resources> <VisualBrush x:Key="VisualUp" Stretch="Uniform" - Visual="{iconPacks:Modern Kind=Network}" /> + Visual="{icons:Lucide Kind=EthernetPort}" /> <VisualBrush x:Key="VisualDown" Stretch="Uniform" - Visual="{iconPacks:Modern Kind=NetworkDisconnect}" /> + Visual="{icons:Lucide Kind=Unplug}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -206,7 +206,7 @@ <Rectangle Width="24" Height="24" wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsNetworkInterfaceLoading}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -602,7 +602,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Network}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=EthernetPort}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" @@ -637,7 +637,7 @@ <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:FontAwesome Kind=NetworkWiredSolid}" /> + Visual="{icons:Lucide Kind=Network}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.IPScanner}" @@ -661,7 +661,7 @@ Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" @@ -698,9 +698,9 @@ <Rectangle Width="24" Height="24"> <Rectangle.Resources> <VisualBrush x:Key="VisualUp" Stretch="Uniform" - Visual="{iconPacks:Modern Kind=Network}" /> + Visual="{icons:Lucide Kind=EthernetPort}" /> <VisualBrush x:Key="VisualDown" Stretch="Uniform" - Visual="{iconPacks:Modern Kind=NetworkDisconnect}" /> + Visual="{icons:Lucide Kind=Unplug}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -784,7 +784,7 @@ <Rectangle Width="24" Height="24" wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsNetworkInterfaceLoading}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -840,7 +840,7 @@ <StackPanel Orientation="Horizontal"> <Rectangle Width="16" Height="16" VerticalAlignment="Center"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=AccessPoint}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RadioTower}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -979,9 +979,9 @@ <Rectangle Width="24" Height="24"> <Rectangle.Resources> <VisualBrush x:Key="VisualUp" Stretch="Uniform" - Visual="{iconPacks:Modern Kind=Network}" /> + Visual="{icons:Lucide Kind=EthernetPort}" /> <VisualBrush x:Key="VisualDown" Stretch="Uniform" - Visual="{iconPacks:Modern Kind=NetworkDisconnect}" /> + Visual="{icons:Lucide Kind=Unplug}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -1066,7 +1066,7 @@ wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsNetworkInterfaceLoading}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -1314,7 +1314,7 @@ <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=ListDelete}" /> + Visual="{icons:Lucide Kind=ListX}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.FlushDNSCache}" @@ -1331,7 +1331,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}" Margin="10,4,0,4"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.ReleaseRenew}" @@ -1388,7 +1388,7 @@ Margin="10,4,0,4"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ExpansionCardVariant}" /> + Visual="{icons:Lucide Kind=EthernetPort}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" @@ -1407,7 +1407,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=ListAddBelow}" /> + Visual="{icons:Lucide Kind=ListPlus}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -1422,7 +1422,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=ListDelete}" /> + Visual="{icons:Lucide Kind=ListX}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -1443,7 +1443,7 @@ <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ContentSave}" /> + Visual="{icons:Lucide Kind=Save}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.Apply}" @@ -1508,7 +1508,7 @@ Margin="10,5,0,5" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Shield}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Shield}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" @@ -1548,7 +1548,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Network}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=EthernetPort}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.NetworkConnectionsDots}" diff --git a/Source/NETworkManager/Views/PingMonitorHostView.xaml b/Source/NETworkManager/Views/PingMonitorHostView.xaml index b7c607f322..61884c8c92 100644 --- a/Source/NETworkManager/Views/PingMonitorHostView.xaml +++ b/Source/NETworkManager/Views/PingMonitorHostView.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" @@ -55,7 +55,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Play}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Play}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -146,9 +146,9 @@ <Rectangle Grid.Column="0" Grid.Row="0"> <Rectangle.Resources> <VisualBrush x:Key="VisualControlPlay" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Play}" /> + Visual="{icons:Lucide Kind=Play}" /> <VisualBrush x:Key="VisualClose" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Close}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}" @@ -312,7 +312,7 @@ <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=DotsVertical}" /> + Visual="{icons:Lucide Kind=EllipsisVertical}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style @@ -340,7 +340,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Play}" /> + Visual="{icons:Lucide Kind=Play}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -353,7 +353,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Pause}" /> + Visual="{icons:Lucide Kind=Pause}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -367,7 +367,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Fill" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Views/PingMonitorView.xaml b/Source/NETworkManager/Views/PingMonitorView.xaml index 3f85602379..41a11bc7e1 100644 --- a/Source/NETworkManager/Views/PingMonitorView.xaml +++ b/Source/NETworkManager/Views/PingMonitorView.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF" @@ -25,7 +25,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentCopy}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Copy}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -60,7 +60,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -97,11 +97,11 @@ Visibility="{Binding IsErrorMessageDisplayed, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}"> <Rectangle.Resources> <VisualBrush x:Key="VisualConnected" Stretch="Uniform" - Visual="{iconPacks:Material Kind=LanConnect}" /> + Visual="{icons:Lucide Kind=Cable}" /> <VisualBrush x:Key="VisualDisconnected" Stretch="Uniform" - Visual="{iconPacks:Material Kind=LanDisconnect}" /> + Visual="{icons:Lucide Kind=Unplug}" /> <VisualBrush x:Key="VisualPending" Stretch="Uniform" - Visual="{iconPacks:Material Kind=LanPending}" /> + Visual="{icons:Lucide Kind=Cable}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -175,9 +175,9 @@ <Rectangle Width="16" Height="16"> <Rectangle.Resources> <VisualBrush x:Key="VisualControlPlay" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Play}" /> + Visual="{icons:Lucide Kind=Play}" /> <VisualBrush x:Key="VisualControlPause" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Pause}" /> + Visual="{icons:Lucide Kind=Pause}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -205,7 +205,7 @@ ToolTip="{x:Static localization:Strings.Close}"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=WindowClose}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -247,7 +247,7 @@ <Rectangle Width="16" Height="16" VerticalAlignment="Center"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=AccessPoint}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RadioTower}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/PortProfileChildWindow.xaml b/Source/NETworkManager/Views/PortProfileChildWindow.xaml index eab1a9fa71..38d0f991cc 100644 --- a/Source/NETworkManager/Views/PortProfileChildWindow.xaml +++ b/Source/NETworkManager/Views/PortProfileChildWindow.xaml @@ -8,7 +8,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" diff --git a/Source/NETworkManager/Views/PortScannerHostView.xaml b/Source/NETworkManager/Views/PortScannerHostView.xaml index ba5c8c77b2..43c7d07556 100644 --- a/Source/NETworkManager/Views/PortScannerHostView.xaml +++ b/Source/NETworkManager/Views/PortScannerHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" @@ -57,7 +57,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Play}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Play}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -108,7 +108,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -140,7 +140,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/PortScannerSettingsView.xaml b/Source/NETworkManager/Views/PortScannerSettingsView.xaml index 515d30c103..e04999f79e 100644 --- a/Source/NETworkManager/Views/PortScannerSettingsView.xaml +++ b/Source/NETworkManager/Views/PortScannerSettingsView.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" @@ -32,7 +32,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -44,7 +44,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -54,7 +54,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -102,7 +102,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.AddDots}" diff --git a/Source/NETworkManager/Views/PortScannerView.xaml b/Source/NETworkManager/Views/PortScannerView.xaml index fd60326a30..6f450f92d8 100644 --- a/Source/NETworkManager/Views/PortScannerView.xaml +++ b/Source/NETworkManager/Views/PortScannerView.xaml @@ -5,7 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:mahappsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" @@ -136,9 +136,9 @@ <Rectangle> <Rectangle.Resources> <VisualBrush x:Key="VisualControlPlay" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Play}" /> + Visual="{icons:Lucide Kind=Play}" /> <VisualBrush x:Key="VisualClose" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Close}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}" @@ -337,7 +337,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -349,7 +349,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=RadarScreen}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Radar}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -360,7 +360,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=TransitConnection}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Route}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -369,7 +369,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -378,7 +378,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -389,7 +389,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -399,7 +399,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -408,7 +408,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -419,7 +419,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -431,7 +431,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=RemoteDesktop}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Monitor}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -442,7 +442,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Powershell}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=SquareChevronRight}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -453,7 +453,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:FontAwesome Kind=TerminalSolid}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Terminal}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -464,7 +464,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=EyeOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Eye}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -475,7 +475,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Browser}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=AppWindow}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -486,7 +486,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Switch}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Server}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -497,7 +497,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -539,7 +539,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -552,7 +552,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -562,7 +562,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentCopy}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Copy}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -599,7 +599,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -639,7 +639,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -656,7 +656,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=RadarScreen}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Radar}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -672,7 +672,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=TransitConnection}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Route}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -681,7 +681,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -691,7 +691,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -703,7 +703,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -713,7 +713,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -723,7 +723,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -735,7 +735,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -752,7 +752,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=RemoteDesktop}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Monitor}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -768,7 +768,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Powershell}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=SquareChevronRight}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -784,7 +784,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:FontAwesome Kind=TerminalSolid}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Terminal}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -800,7 +800,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=EyeOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Eye}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -816,7 +816,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Switch}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Server}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -828,7 +828,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -936,7 +936,7 @@ <Setter TargetName="ChangeIcon" Property="Fill" Value="{DynamicResource MahApps.Brushes.Gray5}" /> <Setter TargetName="ChangeIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Setter.Value> </Setter> <Setter TargetName="ChangeText" Property="Foreground" Value="{DynamicResource MahApps.Brushes.Gray5}" /> @@ -945,7 +945,7 @@ <Setter TargetName="ChangeIcon" Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> <Setter TargetName="ChangeIcon" Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Minus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Minus}" /> </Setter.Value> </Setter> <Setter TargetName="ChangeText" Property="Foreground" Value="{DynamicResource Brushes.Status.Error}" /> diff --git a/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml b/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml index b13c9704dd..bdfb0338bd 100644 --- a/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml +++ b/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml @@ -9,7 +9,7 @@ xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/PowerShellHostView.xaml b/Source/NETworkManager/Views/PowerShellHostView.xaml index b89e326c11..a27e1e9e6a 100644 --- a/Source/NETworkManager/Views/PowerShellHostView.xaml +++ b/Source/NETworkManager/Views/PowerShellHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" @@ -53,7 +53,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:FontAwesome Kind=TerminalSolid}" /> + Visual="{icons:Lucide Kind=Terminal}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -65,7 +65,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:FontAwesome Kind=TerminalSolid}" /> + Visual="{icons:Lucide Kind=Terminal}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -113,7 +113,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Restart}" /> + Visual="{icons:Lucide Kind=RotateCcw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -127,7 +127,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=ArrowExpand}" /> + Visual="{icons:Lucide Kind=Maximize2}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -150,7 +150,7 @@ <Rectangle Width="16" Height="16" Style="{StaticResource DragablzTabHeaderCloseIcon}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -191,7 +191,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -225,7 +225,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -294,7 +294,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:MaterialLight Kind=Cog}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Settings}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.OpenSettings}" diff --git a/Source/NETworkManager/Views/ProfileChildWindow.xaml b/Source/NETworkManager/Views/ProfileChildWindow.xaml index f38ea8613a..7b1d36d148 100644 --- a/Source/NETworkManager/Views/ProfileChildWindow.xaml +++ b/Source/NETworkManager/Views/ProfileChildWindow.xaml @@ -19,7 +19,7 @@ xmlns:interactivity="http://schemas.microsoft.com/xaml/behaviors" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:profiles="clr-namespace:NETworkManager.Profiles;assembly=NETworkManager.Profiles" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" CloseButtonCommand="{Binding CancelCommand}" Style="{StaticResource DefaultChildWindow}" @@ -1303,7 +1303,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=SearchWeb}" /> + Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -1378,7 +1378,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -1413,7 +1413,7 @@ <Rectangle Width="12" Height="12"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/ProfileFileChildWindow.xaml b/Source/NETworkManager/Views/ProfileFileChildWindow.xaml index 4095e9f17b..81cc42c3f7 100644 --- a/Source/NETworkManager/Views/ProfileFileChildWindow.xaml +++ b/Source/NETworkManager/Views/ProfileFileChildWindow.xaml @@ -8,7 +8,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/ProfilesView.xaml b/Source/NETworkManager/Views/ProfilesView.xaml index c80344f277..2c10d0a054 100644 --- a/Source/NETworkManager/Views/ProfilesView.xaml +++ b/Source/NETworkManager/Views/ProfilesView.xaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" @@ -45,7 +45,7 @@ ToolTip="{x:Static Member=localization:Strings.AddGroupDots}"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -74,7 +74,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -85,7 +85,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -147,7 +147,7 @@ <StackPanel Orientation="Horizontal"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=MonitorArrowDownVariant}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=MonitorDown}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -195,9 +195,9 @@ <Rectangle Width="16" Height="16"> <Rectangle.Resources> <VisualBrush x:Key="VisualFilter" Stretch="Uniform" - Visual="{iconPacks:Material Kind=FilterOutline}" /> + Visual="{icons:Lucide Kind=Funnel}" /> <VisualBrush x:Key="VisualFilterRemove" Stretch="Uniform" - Visual="{iconPacks:Material Kind=FilterMultipleOutline}" /> + Visual="{icons:Lucide Kind=ListFilter}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -289,7 +289,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ContentSaveOutline}" /> + Visual="{icons:Lucide Kind=Save}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -301,7 +301,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=FilterRemoveOutline}" /> + Visual="{icons:Lucide Kind=FunnelX}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -316,7 +316,7 @@ ToolTip="{x:Static Member=localization:Strings.AddProfileDots}"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -353,7 +353,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -365,7 +365,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -376,7 +376,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=ContentDuplicate}" /> + Visual="{icons:Lucide Kind=CopyPlus}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -386,7 +386,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -532,9 +532,9 @@ <Rectangle Grid.Column="0" Width="20" Height="20"> <Rectangle.Resources> <VisualBrush x:Key="VisualPlus" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Plus}" /> + Visual="{icons:Lucide Kind=Plus}" /> <VisualBrush x:Key="VisualClear" Stretch="Uniform" - Visual="{iconPacks:Material Kind=FilterRemoveOutline}" /> + Visual="{icons:Lucide Kind=FunnelX}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -602,7 +602,7 @@ <Rectangle Grid.Column="0" Grid.Row="0" Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=InterfacePassword}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Lock}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/PuTTYConnectChildWindow.xaml b/Source/NETworkManager/Views/PuTTYConnectChildWindow.xaml index 7a14fb2aa3..962ecf378c 100644 --- a/Source/NETworkManager/Views/PuTTYConnectChildWindow.xaml +++ b/Source/NETworkManager/Views/PuTTYConnectChildWindow.xaml @@ -9,7 +9,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/PuTTYHostView.xaml b/Source/NETworkManager/Views/PuTTYHostView.xaml index 4a23d76e31..9138f3d2d7 100644 --- a/Source/NETworkManager/Views/PuTTYHostView.xaml +++ b/Source/NETworkManager/Views/PuTTYHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" @@ -52,7 +52,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:FontAwesome Kind=TerminalSolid}" /> + Visual="{icons:Lucide Kind=Terminal}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -64,7 +64,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:FontAwesome Kind=TerminalSolid}" /> + Visual="{icons:Lucide Kind=Terminal}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -112,7 +112,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Restart}" /> + Visual="{icons:Lucide Kind=RotateCcw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -126,7 +126,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=ArrowExpand}" /> + Visual="{icons:Lucide Kind=Maximize2}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -139,7 +139,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -162,7 +162,7 @@ <Rectangle Width="16" Height="16" Style="{StaticResource DragablzTabHeaderCloseIcon}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -203,7 +203,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -237,7 +237,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -306,7 +306,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:MaterialLight Kind=Cog}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Settings}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.OpenSettings}" diff --git a/Source/NETworkManager/Views/RDAPHostView.xaml b/Source/NETworkManager/Views/RDAPHostView.xaml index 9d2e21b6bd..fa905d8a2a 100644 --- a/Source/NETworkManager/Views/RDAPHostView.xaml +++ b/Source/NETworkManager/Views/RDAPHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" @@ -49,7 +49,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Magnify}" /> + Visual="{icons:Lucide Kind=Search}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -100,7 +100,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -132,7 +132,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/RDAPSettingsView.xaml b/Source/NETworkManager/Views/RDAPSettingsView.xaml index 8b7645a114..29868e1e06 100644 --- a/Source/NETworkManager/Views/RDAPSettingsView.xaml +++ b/Source/NETworkManager/Views/RDAPSettingsView.xaml @@ -9,7 +9,7 @@ xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:rdap="clr-namespace:NETworkManager.Models.RDAP;assembly=NETworkManager.Models" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:RDAPSettingsViewModel}"> <UserControl.Resources> <converters:DateTimeToStringConverter x:Key="DateTimeToStringConverter" /> @@ -74,7 +74,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Download}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Download}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.UpdateNow}" @@ -92,7 +92,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FolderOpenOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FolderOpen}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.OpenLocation}" diff --git a/Source/NETworkManager/Views/RDAPView.xaml b/Source/NETworkManager/Views/RDAPView.xaml index 27d1b781eb..d4949d2960 100644 --- a/Source/NETworkManager/Views/RDAPView.xaml +++ b/Source/NETworkManager/Views/RDAPView.xaml @@ -7,7 +7,7 @@ xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" @@ -29,7 +29,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -64,7 +64,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -84,7 +84,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -110,7 +110,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -136,7 +136,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -162,7 +162,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -197,7 +197,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -563,9 +563,9 @@ <Rectangle> <Rectangle.Resources> <VisualBrush x:Key="VisualMagnify" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Magnify}" /> + Visual="{icons:Lucide Kind=Search}" /> <VisualBrush x:Key="VisualClose" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Close}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}" @@ -669,7 +669,7 @@ <Rectangle Grid.Column="0" Grid.Row="0" Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" @@ -720,7 +720,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CloudSearchOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileSearch}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.OpenInWhois}" diff --git a/Source/NETworkManager/Views/RemoteDesktopConnectChildWindow.xaml b/Source/NETworkManager/Views/RemoteDesktopConnectChildWindow.xaml index fb5557a973..9ddfe42ac2 100644 --- a/Source/NETworkManager/Views/RemoteDesktopConnectChildWindow.xaml +++ b/Source/NETworkManager/Views/RemoteDesktopConnectChildWindow.xaml @@ -11,7 +11,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/RemoteDesktopHostView.xaml b/Source/NETworkManager/Views/RemoteDesktopHostView.xaml index 76774865c3..cc0c5494ce 100644 --- a/Source/NETworkManager/Views/RemoteDesktopHostView.xaml +++ b/Source/NETworkManager/Views/RemoteDesktopHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" @@ -50,7 +50,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=RemoteDesktop}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Monitor}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -61,7 +61,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=RemoteDesktop}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Monitor}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -72,7 +72,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=RemoteDesktop}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Monitor}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -110,7 +110,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Restart}" /> + Visual="{icons:Lucide Kind=RotateCcw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -124,7 +124,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Modern Kind=Disconnect}" /> + Visual="{icons:Lucide Kind=Unplug}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -138,7 +138,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Octicons Kind=ScreenFull}" /> + Visual="{icons:Lucide Kind=Maximize}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -151,7 +151,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Octicons Kind=ScreenNormal}" /> + Visual="{icons:Lucide Kind=Minimize}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -164,9 +164,9 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.Resources> <VisualBrush x:Key="VisualEye" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Eye}" /> + Visual="{icons:Lucide Kind=Eye}" /> <VisualBrush x:Key="VisualEyeOff" Stretch="Uniform" - Visual="{iconPacks:Material Kind=EyeOff}" /> + Visual="{icons:Lucide Kind=EyeOff}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -191,7 +191,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=KeyboardVariant}" /> + Visual="{icons:Lucide Kind=Keyboard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -232,7 +232,7 @@ ToolTip="{x:Static localization:Strings.ViewOnly}" Visibility="{Binding View.IsViewOnly, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Eye}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Eye}" /> </Rectangle.OpacityMask> </Rectangle> <Button Style="{StaticResource CleanButton}" @@ -241,7 +241,7 @@ <Rectangle Width="16" Height="16" Style="{StaticResource DragablzTabHeaderCloseIcon}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -282,7 +282,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -315,7 +315,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/RunCommandChildWindow.xaml b/Source/NETworkManager/Views/RunCommandChildWindow.xaml index 5e0ffd19a8..4c1a41271a 100644 --- a/Source/NETworkManager/Views/RunCommandChildWindow.xaml +++ b/Source/NETworkManager/Views/RunCommandChildWindow.xaml @@ -12,7 +12,7 @@ xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" Style="{StaticResource DefaultChildWindow}" networkManager:ChildWindowAnimation.Kind="SlideDown" Title="{x:Static localization:Strings.RunCommand}" @@ -29,19 +29,19 @@ <converters:BooleanToVisibilityCollapsedConverter x:Key="BooleanToVisibilityCollapsedConverter" /> <!-- Like the run command in the title bar --> <VisualBrush x:Key="RunCommandInputIcon" Stretch="Uniform" - Visual="{iconPacks:FontAwesome Kind=TerminalSolid}" /> + Visual="{icons:Lucide Kind=Terminal}" /> <VisualBrush x:Key="RunCommandSettingsIcon" Stretch="Uniform" - Visual="{iconPacks:MaterialLight Kind=Cog}" /> + Visual="{icons:Lucide Kind=Settings}" /> <VisualBrush x:Key="RunCommandProfileIcon" Stretch="Uniform" - Visual="{iconPacks:FontAwesome Kind=ServerSolid}" /> + Visual="{icons:Lucide Kind=Server}" /> <VisualBrush x:Key="RunCommandHistoryIcon" Stretch="Uniform" - Visual="{iconPacks:Material Kind=History}" /> + Visual="{icons:Lucide Kind=History}" /> <VisualBrush x:Key="RunCommandTypeIcon" Stretch="Uniform" - Visual="{iconPacks:Material Kind=TagOutline}" /> + Visual="{icons:Lucide Kind=Tag}" /> <VisualBrush x:Key="RunCommandDNSServerIcon" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Dns}" /> + Visual="{icons:Lucide Kind=Server}" /> <VisualBrush x:Key="RunCommandPortProfileIcon" Stretch="Uniform" - Visual="{iconPacks:Material Kind=FormatListBulleted}" /> + Visual="{icons:Lucide Kind=List}" /> <!-- Key of the key hints (e.g. "Enter") --> <Style x:Key="RunCommandKeyBorder" TargetType="{x:Type Border}"> <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> @@ -131,7 +131,7 @@ Fill="{DynamicResource Brushes.Status.Success}" Visibility="{Binding IsValid, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CheckCircleOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CircleCheck}" /> </Rectangle.OpacityMask> </Rectangle> <Rectangle x:Name="RectangleInvalid" Grid.Column="2" @@ -142,7 +142,7 @@ Visibility="{Binding IsInvalid, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> <!-- Circle like the check (the style has an octagon) --> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=AlertCircleOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CircleAlert}" /> </Rectangle.OpacityMask> <Rectangle.ToolTip> <ToolTip x:Name="ToolTipInvalid" Content="{Binding ValidationMessage}" @@ -378,7 +378,7 @@ <!-- Like the close button of the Ping Monitor (red on hover) --> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=WindowClose}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/SNMPHostView.xaml b/Source/NETworkManager/Views/SNMPHostView.xaml index 09263f9e42..541f23e101 100644 --- a/Source/NETworkManager/Views/SNMPHostView.xaml +++ b/Source/NETworkManager/Views/SNMPHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" @@ -48,7 +48,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -99,7 +99,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -131,7 +131,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/SNMPOIDProfileChildWindow.xaml b/Source/NETworkManager/Views/SNMPOIDProfileChildWindow.xaml index fd101b3ee6..4a24f83636 100644 --- a/Source/NETworkManager/Views/SNMPOIDProfileChildWindow.xaml +++ b/Source/NETworkManager/Views/SNMPOIDProfileChildWindow.xaml @@ -9,7 +9,7 @@ xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml b/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml index 4463b44283..f3e33760c2 100644 --- a/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml +++ b/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml @@ -8,7 +8,7 @@ xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/SNMPSettingsView.xaml b/Source/NETworkManager/Views/SNMPSettingsView.xaml index 8fefe94a26..35847db473 100644 --- a/Source/NETworkManager/Views/SNMPSettingsView.xaml +++ b/Source/NETworkManager/Views/SNMPSettingsView.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" @@ -28,7 +28,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -38,7 +38,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -90,7 +90,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.AddDots}" diff --git a/Source/NETworkManager/Views/SNMPView.xaml b/Source/NETworkManager/Views/SNMPView.xaml index bfa82afc01..1c6d7d3d74 100644 --- a/Source/NETworkManager/Views/SNMPView.xaml +++ b/Source/NETworkManager/Views/SNMPView.xaml @@ -7,7 +7,7 @@ xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" @@ -141,7 +141,7 @@ </Button.Resources> <Rectangle Width="20" Height="20" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FolderSearchOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FolderSearch}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -520,10 +520,10 @@ <Rectangle> <Rectangle.Resources> <VisualBrush x:Key="VisualControlPlay" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Play}" /> + Visual="{icons:Lucide Kind=Play}" /> <VisualBrush x:Key="VisualMagnify" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Magnify}" /> - <VisualBrush x:Key="VisualClose" Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + Visual="{icons:Lucide Kind=Search}" /> + <VisualBrush x:Key="VisualClose" Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}" BasedOn="{StaticResource ButtonWithImageRectangle}"> @@ -640,7 +640,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -651,7 +651,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Views/SNTPLookupHostView.xaml b/Source/NETworkManager/Views/SNTPLookupHostView.xaml index 06cee262ee..7c6fee244b 100644 --- a/Source/NETworkManager/Views/SNTPLookupHostView.xaml +++ b/Source/NETworkManager/Views/SNTPLookupHostView.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" @@ -46,7 +46,7 @@ ToolTip="{x:Static localization:Strings.NewTab}"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -78,7 +78,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/SNTPLookupSettingsView.xaml b/Source/NETworkManager/Views/SNTPLookupSettingsView.xaml index e8c4931d51..4b75413311 100644 --- a/Source/NETworkManager/Views/SNTPLookupSettingsView.xaml +++ b/Source/NETworkManager/Views/SNTPLookupSettingsView.xaml @@ -9,7 +9,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:SNTPLookupSettingsViewModel}"> <UserControl.Resources> <converters:ListServerConnectionInfoToStringConverter x:Key="ListServerConnectionInfoToStringConverter" /> @@ -27,7 +27,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -36,7 +36,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -82,7 +82,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.AddDots}" diff --git a/Source/NETworkManager/Views/SNTPLookupView.xaml b/Source/NETworkManager/Views/SNTPLookupView.xaml index 5f78d6b014..127e46a423 100644 --- a/Source/NETworkManager/Views/SNTPLookupView.xaml +++ b/Source/NETworkManager/Views/SNTPLookupView.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" @@ -75,7 +75,7 @@ <Rectangle Grid.Column="0" Grid.Row="0"> <Rectangle.Resources> <VisualBrush x:Key="VisualMagnify" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Magnify}" /> + Visual="{icons:Lucide Kind=Search}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}" @@ -160,7 +160,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -173,7 +173,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Views/ServerConnectionInfoProfileChildWindow.xaml b/Source/NETworkManager/Views/ServerConnectionInfoProfileChildWindow.xaml index 6b0b958782..fb2e5cbeef 100644 --- a/Source/NETworkManager/Views/ServerConnectionInfoProfileChildWindow.xaml +++ b/Source/NETworkManager/Views/ServerConnectionInfoProfileChildWindow.xaml @@ -9,7 +9,7 @@ xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:interactivity="http://schemas.microsoft.com/xaml/behaviors" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" @@ -76,7 +76,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -171,7 +171,7 @@ </Button.Resources> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> </Button> diff --git a/Source/NETworkManager/Views/SettingsAppearanceView.xaml b/Source/NETworkManager/Views/SettingsAppearanceView.xaml index 96acc5aa44..e04df8e4ed 100644 --- a/Source/NETworkManager/Views/SettingsAppearanceView.xaml +++ b/Source/NETworkManager/Views/SettingsAppearanceView.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:appearance="clr-namespace:NETworkManager.Models.Appearance;assembly=NETworkManager.Models" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" @@ -128,7 +128,7 @@ Visibility="{Binding Path=IsAnimationsManagedByPolicy, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> <Rectangle Width="24" Height="24" Fill="{DynamicResource MahApps.Brushes.Accent}" VerticalAlignment="Center" Margin="0,0,5,0"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ShieldLock}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ShieldLock}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{x:Static localization:Strings.SettingManagedByAdministrator}" diff --git a/Source/NETworkManager/Views/SettingsGeneralView.xaml b/Source/NETworkManager/Views/SettingsGeneralView.xaml index 4093b6b2de..d1486266a1 100644 --- a/Source/NETworkManager/Views/SettingsGeneralView.xaml +++ b/Source/NETworkManager/Views/SettingsGeneralView.xaml @@ -8,7 +8,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:models="clr-namespace:NETworkManager.Models;assembly=NETworkManager.Models" mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:SettingsGeneralViewModel}"> <UserControl.Resources> @@ -55,7 +55,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=CheckAll}" /> + Visual="{icons:Lucide Kind=CheckCheck}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -85,7 +85,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=EyeOutline}" /> + Visual="{icons:Lucide Kind=Eye}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -115,7 +115,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=EyeOffOutline}" /> + Visual="{icons:Lucide Kind=EyeOff}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -138,7 +138,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}" Visibility="{Binding IsVisible, Converter={StaticResource BooleanReverseToVisibilityHiddenConverter}}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=EyeOffOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=EyeOff}" /> </Rectangle.OpacityMask> </Rectangle> <Rectangle Grid.Row="0" Grid.Column="2" @@ -146,7 +146,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}" Visibility="{Binding IsDefault, Converter={StaticResource BooleanToVisibilityHiddenConverter}}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CheckAll}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CheckCheck}" /> </Rectangle.OpacityMask> </Rectangle> </Grid> diff --git a/Source/NETworkManager/Views/SettingsLanguageView.xaml b/Source/NETworkManager/Views/SettingsLanguageView.xaml index 904a239b93..9f91ffe4b0 100644 --- a/Source/NETworkManager/Views/SettingsLanguageView.xaml +++ b/Source/NETworkManager/Views/SettingsLanguageView.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" @@ -63,7 +63,7 @@ <Rectangle Width="20" Height="20"> <Rectangle.Resources> <VisualBrush x:Key="VisualClear" Stretch="Uniform" - Visual="{iconPacks:Material Kind=CheckAll}" /> + Visual="{icons:Lucide Kind=CheckCheck}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -85,7 +85,7 @@ <Rectangle Width="20" Height="20"> <Rectangle.Resources> <VisualBrush x:Key="VisualClear" Stretch="Uniform" - Visual="{iconPacks:Modern Kind=PeopleMultiple}" /> + Visual="{icons:Lucide Kind=Users}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -120,7 +120,7 @@ <Rectangle Width="24" Height="24"> <Rectangle.Resources> <VisualBrush x:Key="VisualClear" Stretch="Uniform" - Visual="{iconPacks:Material Kind=FilterRemoveOutline}" /> + Visual="{icons:Lucide Kind=FunnelX}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/SettingsNetworkView.xaml b/Source/NETworkManager/Views/SettingsNetworkView.xaml index 6865c785b7..f5ea8341bc 100644 --- a/Source/NETworkManager/Views/SettingsNetworkView.xaml +++ b/Source/NETworkManager/Views/SettingsNetworkView.xaml @@ -7,7 +7,7 @@ xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:SettingsNetworkViewModel}"> <StackPanel> <TextBlock Style="{StaticResource HeaderTextBlock}" @@ -34,7 +34,7 @@ <Rectangle Grid.Column="0" Grid.Row="0" Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static Member=localization:Strings.EditDNSServer}" diff --git a/Source/NETworkManager/Views/SettingsProfilesView.xaml b/Source/NETworkManager/Views/SettingsProfilesView.xaml index 62c7892697..4066fc354b 100644 --- a/Source/NETworkManager/Views/SettingsProfilesView.xaml +++ b/Source/NETworkManager/Views/SettingsProfilesView.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" @@ -83,7 +83,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FolderArrowLeftOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FolderInput}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" @@ -112,7 +112,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentSaveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Save}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" @@ -127,7 +127,7 @@ Visibility="{Binding IsLocationManagedByPolicy, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> <Rectangle Width="24" Height="24" Fill="{DynamicResource MahApps.Brushes.Accent}" VerticalAlignment="Center" Margin="0,0,5,0"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ShieldLock}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ShieldLock}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{x:Static localization:Strings.SettingManagedByAdministrator}" @@ -176,7 +176,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FolderOpen}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FolderOpen}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" @@ -199,7 +199,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=Edit}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Pencil}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -209,7 +209,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=KeyVariant}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=KeyRound}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -220,7 +220,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=KeyVariant}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=KeyRound}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -232,7 +232,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=KeyVariant}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=KeyRound}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -244,7 +244,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=KeyVariant}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=KeyRound}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -256,7 +256,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Close}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -302,7 +302,7 @@ <Rectangle Grid.Column="0" Grid.Row="0" Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static Member=localization:Strings.AddDots}" diff --git a/Source/NETworkManager/Views/SettingsSettingsView.xaml b/Source/NETworkManager/Views/SettingsSettingsView.xaml index 44246e210f..8bc0fefd96 100644 --- a/Source/NETworkManager/Views/SettingsSettingsView.xaml +++ b/Source/NETworkManager/Views/SettingsSettingsView.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" @@ -81,7 +81,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FolderArrowLeftOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FolderInput}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" @@ -110,7 +110,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ContentSaveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Save}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" @@ -126,7 +126,7 @@ Visibility="{Binding IsLocationManagedByPolicy, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> <Rectangle Width="24" Height="24" Fill="{DynamicResource MahApps.Brushes.Accent}" VerticalAlignment="Center" Margin="0,0,5,0"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ShieldLock}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ShieldLock}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{x:Static localization:Strings.SettingManagedByAdministrator}" @@ -175,7 +175,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FolderOpen}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FolderOpen}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" diff --git a/Source/NETworkManager/Views/SettingsUpdateView.xaml b/Source/NETworkManager/Views/SettingsUpdateView.xaml index f2e35e2874..7bdd7d3758 100644 --- a/Source/NETworkManager/Views/SettingsUpdateView.xaml +++ b/Source/NETworkManager/Views/SettingsUpdateView.xaml @@ -7,7 +7,7 @@ xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:SettingsUpdateViewModel}"> <UserControl.Resources> <converters:BooleanReverseConverter x:Key="BooleanReverseConverter" /> @@ -35,7 +35,7 @@ Visibility="{Binding IsUpdateCheckManagedByPolicy, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> <Rectangle Width="24" Height="24" Fill="{DynamicResource MahApps.Brushes.Accent}" VerticalAlignment="Center" Margin="0,0,5,0"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ShieldLock}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ShieldLock}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{x:Static localization:Strings.SettingManagedByAdministrator}" diff --git a/Source/NETworkManager/Views/SettingsView.xaml b/Source/NETworkManager/Views/SettingsView.xaml index a69e6e3301..952251e5b7 100644 --- a/Source/NETworkManager/Views/SettingsView.xaml +++ b/Source/NETworkManager/Views/SettingsView.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:views="clr-namespace:NETworkManager.Views" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:settings="clr-namespace:NETworkManager.Settings;assembly=NETworkManager.Settings" @@ -169,7 +169,7 @@ <Rectangle Width="24" Height="24"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=FilterRemoveOutline}" /> + Visual="{icons:Lucide Kind=FunnelX}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/SpeedTestWidgetView.xaml b/Source/NETworkManager/Views/SpeedTestWidgetView.xaml index 1bb50836ff..2ca3596004 100644 --- a/Source/NETworkManager/Views/SpeedTestWidgetView.xaml +++ b/Source/NETworkManager/Views/SpeedTestWidgetView.xaml @@ -1,7 +1,7 @@ <UserControl x:Class="NETworkManager.Views.SpeedTestWidgetView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" @@ -44,7 +44,7 @@ <StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center"> <Rectangle Width="32" Height="32" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Speedometer}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Gauge}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{x:Static localization:Strings.SpeedTest}" @@ -85,9 +85,9 @@ <Rectangle Width="20" Height="20"> <Rectangle.Resources> <VisualBrush x:Key="VisualRefresh" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> <VisualBrush x:Key="VisualClose" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Close}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -134,7 +134,7 @@ Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Play}" /> + Visual="{icons:Lucide Kind=Play}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" @@ -243,7 +243,7 @@ <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center"> <Rectangle Width="24" Height="24" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CloudDownloadOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CloudDownload}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{Binding CurrentDownloadMbps, Converter={StaticResource NullableDoubleToStringConverter}, ConverterParameter='F1|Mbps'}" @@ -274,7 +274,7 @@ <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" > <Rectangle Width="24" Height="24" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CloudUploadOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=CloudUpload}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Text="{Binding CurrentUploadMbps, Converter={StaticResource NullableDoubleToStringConverter}, ConverterParameter='F1|Mbps'}" diff --git a/Source/NETworkManager/Views/SubnetCalculatorCalculatorView.xaml b/Source/NETworkManager/Views/SubnetCalculatorCalculatorView.xaml index 42767f7f0d..c38142f665 100644 --- a/Source/NETworkManager/Views/SubnetCalculatorCalculatorView.xaml +++ b/Source/NETworkManager/Views/SubnetCalculatorCalculatorView.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" @@ -59,7 +59,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Calculator}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Calculator}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.Calculate}" diff --git a/Source/NETworkManager/Views/SubnetCalculatorSubnettingView.xaml b/Source/NETworkManager/Views/SubnetCalculatorSubnettingView.xaml index beefef47e3..3e877fb5f3 100644 --- a/Source/NETworkManager/Views/SubnetCalculatorSubnettingView.xaml +++ b/Source/NETworkManager/Views/SubnetCalculatorSubnettingView.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" @@ -116,7 +116,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Calculator}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Calculator}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.Calculate}" @@ -188,7 +188,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -199,7 +199,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Views/SubnetCalculatorWideSubnetView.xaml b/Source/NETworkManager/Views/SubnetCalculatorWideSubnetView.xaml index 57b1aa9fa2..7e1ebb6ade 100644 --- a/Source/NETworkManager/Views/SubnetCalculatorWideSubnetView.xaml +++ b/Source/NETworkManager/Views/SubnetCalculatorWideSubnetView.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" @@ -109,7 +109,7 @@ <Rectangle> <Rectangle.Resources> <VisualBrush x:Key="VisualCalculator" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Calculator}" /> + Visual="{icons:Lucide Kind=Calculator}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}" diff --git a/Source/NETworkManager/Views/TigerVNCConnectChildWindow.xaml b/Source/NETworkManager/Views/TigerVNCConnectChildWindow.xaml index 59a61b2884..31a59de5c3 100644 --- a/Source/NETworkManager/Views/TigerVNCConnectChildWindow.xaml +++ b/Source/NETworkManager/Views/TigerVNCConnectChildWindow.xaml @@ -12,7 +12,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/TigerVNCHostView.xaml b/Source/NETworkManager/Views/TigerVNCHostView.xaml index 4a98ca3ec8..83d1e477f7 100644 --- a/Source/NETworkManager/Views/TigerVNCHostView.xaml +++ b/Source/NETworkManager/Views/TigerVNCHostView.xaml @@ -5,7 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" @@ -51,7 +51,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=EyeOutline}" /> + Visual="{icons:Lucide Kind=Eye}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -63,7 +63,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=EyeOutline}" /> + Visual="{icons:Lucide Kind=Eye}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -110,7 +110,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Restart}" /> + Visual="{icons:Lucide Kind=RotateCcw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -133,7 +133,7 @@ <Rectangle Width="16" Height="16" Style="{StaticResource DragablzTabHeaderCloseIcon}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -174,7 +174,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -208,7 +208,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -273,7 +273,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:MaterialLight Kind=Cog}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Settings}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.OpenSettings}" diff --git a/Source/NETworkManager/Views/TracerouteHostView.xaml b/Source/NETworkManager/Views/TracerouteHostView.xaml index 973264a62b..b2623f8831 100644 --- a/Source/NETworkManager/Views/TracerouteHostView.xaml +++ b/Source/NETworkManager/Views/TracerouteHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" @@ -49,7 +49,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Play}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Play}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -100,7 +100,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -132,7 +132,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/TracerouteView.xaml b/Source/NETworkManager/Views/TracerouteView.xaml index ac43ed0de2..c7072cd95f 100644 --- a/Source/NETworkManager/Views/TracerouteView.xaml +++ b/Source/NETworkManager/Views/TracerouteView.xaml @@ -6,7 +6,7 @@ xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models" @@ -106,9 +106,9 @@ <Rectangle Grid.Column="0" Grid.Row="0"> <Rectangle.Resources> <VisualBrush x:Key="VisualControlPlay" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Play}" /> + Visual="{icons:Lucide Kind=Play}" /> <VisualBrush x:Key="VisualClose" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Close}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}" @@ -179,7 +179,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Sitemap}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Network}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -191,7 +191,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=NetworkPort}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ScanLine}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -203,7 +203,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Modern Kind=RadarScreen}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Radar}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -213,7 +213,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -224,7 +224,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -237,7 +237,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=SearchWeb}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Globe}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -247,7 +247,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -267,7 +267,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -279,7 +279,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -291,7 +291,7 @@ <MenuItem.Icon> <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=CardAccountDetailsOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=IdCard}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -304,7 +304,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=RemoteDesktop}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Monitor}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -316,7 +316,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Powershell}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=SquareChevronRight}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -328,7 +328,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:FontAwesome Kind=TerminalSolid}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Terminal}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -340,7 +340,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=EyeOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Eye}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -352,7 +352,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Switch}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Server}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -452,7 +452,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -464,7 +464,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> diff --git a/Source/NETworkManager/Views/UpgradeChildWindow.xaml b/Source/NETworkManager/Views/UpgradeChildWindow.xaml index d0667d12da..a230bc5b59 100644 --- a/Source/NETworkManager/Views/UpgradeChildWindow.xaml +++ b/Source/NETworkManager/Views/UpgradeChildWindow.xaml @@ -4,7 +4,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:resources="clr-namespace:NETworkManager.Properties" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" @@ -41,7 +41,7 @@ </Grid.ColumnDefinitions> <Rectangle Grid.Column="0" Grid.Row="0" Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Heart}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Heart}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" @@ -66,7 +66,7 @@ </Grid.ColumnDefinitions> <Rectangle Grid.Column="0" Grid.Row="0" Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileDocumentMultipleOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Files}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" diff --git a/Source/NETworkManager/Views/WakeOnLANView.xaml b/Source/NETworkManager/Views/WakeOnLANView.xaml index 52d35910e5..210e0d8c1e 100644 --- a/Source/NETworkManager/Views/WakeOnLANView.xaml +++ b/Source/NETworkManager/Views/WakeOnLANView.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" @@ -49,7 +49,7 @@ <Rectangle Width="16" Height="16" Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Power}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Power}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -142,7 +142,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Power}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Power}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.WakeUp}" diff --git a/Source/NETworkManager/Views/WebConsoleConnectChildWindow.xaml b/Source/NETworkManager/Views/WebConsoleConnectChildWindow.xaml index ce9cd4bcc2..b97f9a69b3 100644 --- a/Source/NETworkManager/Views/WebConsoleConnectChildWindow.xaml +++ b/Source/NETworkManager/Views/WebConsoleConnectChildWindow.xaml @@ -8,7 +8,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/WebConsoleHostView.xaml b/Source/NETworkManager/Views/WebConsoleHostView.xaml index 0756478646..f53ce0815e 100644 --- a/Source/NETworkManager/Views/WebConsoleHostView.xaml +++ b/Source/NETworkManager/Views/WebConsoleHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" @@ -51,7 +51,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Play}" /> + Visual="{icons:Lucide Kind=Play}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -98,7 +98,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -121,7 +121,7 @@ <Rectangle Width="16" Height="16" Style="{StaticResource DragablzTabHeaderCloseIcon}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WindowClose}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </Button> @@ -162,7 +162,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -196,7 +196,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/WelcomeChildWindow.xaml b/Source/NETworkManager/Views/WelcomeChildWindow.xaml index e56896d5aa..38e7d9daa6 100644 --- a/Source/NETworkManager/Views/WelcomeChildWindow.xaml +++ b/Source/NETworkManager/Views/WelcomeChildWindow.xaml @@ -5,7 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:resources="clr-namespace:NETworkManager.Properties" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" @@ -42,7 +42,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Heart}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Heart}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" diff --git a/Source/NETworkManager/Views/WhoisHostView.xaml b/Source/NETworkManager/Views/WhoisHostView.xaml index 5f8fc0cc52..8dd99e983a 100644 --- a/Source/NETworkManager/Views/WhoisHostView.xaml +++ b/Source/NETworkManager/Views/WhoisHostView.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" @@ -49,7 +49,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Magnify}" /> + Visual="{icons:Lucide Kind=Search}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -100,7 +100,7 @@ Focusable="False"> <Rectangle Width="16" Height="16"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> @@ -132,7 +132,7 @@ </Grid.ColumnDefinitions> <Rectangle Width="20" Height="20"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Fill" Visual="{iconPacks:Material Kind=Plus}" /> + <VisualBrush Stretch="Fill" Visual="{icons:Lucide Kind=Plus}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> diff --git a/Source/NETworkManager/Views/WhoisView.xaml b/Source/NETworkManager/Views/WhoisView.xaml index 955d523c03..29f6eeb033 100644 --- a/Source/NETworkManager/Views/WhoisView.xaml +++ b/Source/NETworkManager/Views/WhoisView.xaml @@ -7,7 +7,7 @@ xmlns:validators="clr-namespace:NETworkManager.Validators;assembly=NETworkManager.Validators" xmlns:mahAppsControls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:sys="clr-namespace:System;assembly=mscorlib" @@ -85,7 +85,7 @@ <Rectangle> <Rectangle.Resources> <VisualBrush x:Key="VisualMagnify" Stretch="Uniform" - Visual="{iconPacks:Material Kind=Magnify}" /> + Visual="{icons:Lucide Kind=Search}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}" @@ -164,7 +164,7 @@ <Rectangle Grid.Column="0" Grid.Row="0" Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" diff --git a/Source/NETworkManager/Views/WiFiConnectChildWindow.xaml b/Source/NETworkManager/Views/WiFiConnectChildWindow.xaml index 0e864f98cf..0cb09845b0 100644 --- a/Source/NETworkManager/Views/WiFiConnectChildWindow.xaml +++ b/Source/NETworkManager/Views/WiFiConnectChildWindow.xaml @@ -12,7 +12,7 @@ xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" CloseButtonCommand="{Binding Path=CancelCommand}" Style="{StaticResource DefaultChildWindow}" Loaded="ChildWindow_OnLoaded" diff --git a/Source/NETworkManager/Views/WiFiView.xaml b/Source/NETworkManager/Views/WiFiView.xaml index d458dbc71e..04f3d4a8f4 100644 --- a/Source/NETworkManager/Views/WiFiView.xaml +++ b/Source/NETworkManager/Views/WiFiView.xaml @@ -2,7 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" - xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:internalControls="clr-namespace:NETworkManager.Controls" @@ -123,9 +123,9 @@ <Rectangle Width="24" Height="24"> <Rectangle.Resources> <VisualBrush x:Key="VisualUp" Stretch="Uniform" - Visual="{iconPacks:Modern Kind=Network}" /> + Visual="{icons:Lucide Kind=EthernetPort}" /> <VisualBrush x:Key="VisualDown" Stretch="Uniform" - Visual="{iconPacks:Modern Kind=NetworkDisconnect}" /> + Visual="{icons:Lucide Kind=Unplug}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -217,7 +217,7 @@ wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding IsAdaptersLoading}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -320,7 +320,7 @@ wpfHelpers:ReloadAnimationHelper.IsReloading="{Binding Path=IsBackgroundSearchRunning}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -373,7 +373,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=WifiPlus}" /> + Visual="{icons:Lucide Kind=Wifi}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -386,7 +386,7 @@ Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Close}" /> + Visual="{icons:Lucide Kind=X}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -467,7 +467,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -494,7 +494,7 @@ Fill="{DynamicResource MahApps.Brushes.Gray3}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=FileMoveOutline}" /> + Visual="{icons:Lucide Kind=FileOutput}" /> </Rectangle.OpacityMask> </Rectangle> </MenuItem.Icon> @@ -531,34 +531,34 @@ <Rectangle.Resources> <VisualBrush x:Key="VisualBars4" Stretch="Uniform" - Visual="{iconPacks:Material Kind=WifiStrength4}" /> + Visual="{icons:Lucide Kind=Wifi}" /> <VisualBrush x:Key="VisualBars4Lock" Stretch="Uniform" - Visual="{iconPacks:Material Kind=WifiStrength4Lock}" /> + Visual="{icons:Lucide Kind=WifiLock}" /> <VisualBrush x:Key="VisualBars3" Stretch="Uniform" - Visual="{iconPacks:Material Kind=WifiStrength3}" /> + Visual="{icons:Lucide Kind=WifiHigh}" /> <VisualBrush x:Key="VisualBars3Lock" Stretch="Uniform" - Visual="{iconPacks:Material Kind=WifiStrength3Lock}" /> + Visual="{icons:Lucide Kind=WifiHighLock}" /> <VisualBrush x:Key="VisualBars2" Stretch="Uniform" - Visual="{iconPacks:Material Kind=WifiStrength2}" /> + Visual="{icons:Lucide Kind=WifiLow}" /> <VisualBrush x:Key="VisualBars2Lock" Stretch="Uniform" - Visual="{iconPacks:Material Kind=WifiStrength2Lock}" /> + Visual="{icons:Lucide Kind=WifiLowLock}" /> <VisualBrush x:Key="VisualBars1" Stretch="Uniform" - Visual="{iconPacks:Material Kind=WifiStrength1}" /> + Visual="{icons:Lucide Kind=WifiZero}" /> <VisualBrush x:Key="VisualBars1Lock" Stretch="Uniform" - Visual="{iconPacks:Material Kind=WifiStrength1Lock}" /> + Visual="{icons:Lucide Kind=WifiZeroLock}" /> <VisualBrush x:Key="VisualBars0" Stretch="Uniform" - Visual="{iconPacks:Material Kind=WifiStrengthOutline}" /> + Visual="{icons:Lucide Kind=WifiZero}" /> <VisualBrush x:Key="VisualBars0Lock" Stretch="Uniform" - Visual="{iconPacks:Material Kind=WifiStrengthLockOutline}" /> + Visual="{icons:Lucide Kind=WifiZeroLock}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type TypeName=Rectangle}"> @@ -695,7 +695,7 @@ <Setter TargetName="ChangeIcon" Property="OpacityMask"> <Setter.Value> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Plus}" /> + Visual="{icons:Lucide Kind=Plus}" /> </Setter.Value> </Setter> <Setter TargetName="ChangeText" Property="Foreground" @@ -707,7 +707,7 @@ <Setter TargetName="ChangeIcon" Property="OpacityMask"> <Setter.Value> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Minus}" /> + Visual="{icons:Lucide Kind=Minus}" /> </Setter.Value> </Setter> <Setter TargetName="ChangeText" Property="Foreground" @@ -719,7 +719,7 @@ <Setter TargetName="ChangeIcon" Property="OpacityMask"> <Setter.Value> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=SwapHorizontal}" /> + Visual="{icons:Lucide Kind=ArrowLeftRight}" /> </Setter.Value> </Setter> <Setter TargetName="ChangeText" Property="Foreground" @@ -1000,7 +1000,7 @@ Style="{StaticResource ResourceKey=ButtonWithImageRectangle}"> <Rectangle.OpacityMask> <VisualBrush Stretch="Uniform" - Visual="{iconPacks:Material Kind=Refresh}" /> + Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Grid.Row="0" @@ -1056,7 +1056,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:MaterialLight Kind=Cog}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Settings}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.OpenSettings}" @@ -1076,7 +1076,7 @@ </Grid.ColumnDefinitions> <Rectangle Style="{StaticResource ButtonWithImageRectangle}"> <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=Refresh}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=RefreshCw}" /> </Rectangle.OpacityMask> </Rectangle> <TextBlock Grid.Column="1" Text="{x:Static localization:Strings.Refresh}" From bfec0e431da6f7ced96adb6dd693d543436d80ed Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:06:07 +0100 Subject: [PATCH 163/232] Cleanup: remove MahApps.Metro.IconPacks from the About page (D8.4) The icon packs are no longer used (all icons from Lucide): library entry, license file, description string and README entry removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- README.md | 1 - .../LibraryManager.cs | 4 ---- .../Licenses/MahApps.Metro.IconPack.txt | 21 ------------------- .../NETworkManager.Documentation.csproj | 4 ---- .../Resources/Strings.Designer.cs | 9 -------- .../Resources/Strings.resx | 3 --- 6 files changed, 42 deletions(-) delete mode 100644 Source/NETworkManager.Documentation/Licenses/MahApps.Metro.IconPack.txt diff --git a/README.md b/README.md index 8ffacc8fd3..7fa33af139 100644 --- a/README.md +++ b/README.md @@ -230,7 +230,6 @@ A huge thank you to our supporters and contributors who make NETworkManager poss - [LiveCharts2](https://github.com/Live-Charts/LiveCharts2) - Beautiful, interactive charts, maps, and gauges. - [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. diff --git a/Source/NETworkManager.Documentation/LibraryManager.cs b/Source/NETworkManager.Documentation/LibraryManager.cs index e2e23339c6..e265afbaba 100644 --- a/Source/NETworkManager.Documentation/LibraryManager.cs +++ b/Source/NETworkManager.Documentation/LibraryManager.cs @@ -68,10 +68,6 @@ public static class LibraryManager 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/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 7eaf505089..5c801c8726 100644 --- a/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj +++ b/Source/NETworkManager.Documentation/NETworkManager.Documentation.csproj @@ -26,7 +26,6 @@ <None Remove="Licenses\LiveCharts2.txt" /> <None Remove="Licenses\log4net.txt" /> <None Remove="Licenses\Lucide.txt" /> - <None Remove="Licenses\MahApps.Metro.IconPack.txt" /> <None Remove="Licenses\MahApps.Metro.txt" /> <None Remove="Licenses\Microsoft.PowerShell.SDK.txt" /> <None Remove="Licenses\Microsoft.Web.WebView2.txt" /> @@ -76,9 +75,6 @@ <Content Include="Licenses\Lucide.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> - <Content Include="Licenses\MahApps.Metro.IconPack.txt"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </Content> <Content Include="Licenses\MahApps.Metro.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> diff --git a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs index 903c677ef5..5d071b5767 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs +++ b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs @@ -7680,15 +7680,6 @@ public static string Library_MahAppsMetro_Description { } } - /// <summary> - /// Looks up a localized string similar to Some awesome icons for WPF and UWP all together.... - /// </summary> - public static string Library_MahAppsMetroIconPacks_Description { - get { - return ResourceManager.GetString("Library_MahAppsMetroIconPacks_Description", resourceCulture); - } - } - /// <summary> /// Looks up a localized string similar to Json.NET is a popular high-performance JSON framework for .NET. /// </summary> diff --git a/Source/NETworkManager.Localization/Resources/Strings.resx b/Source/NETworkManager.Localization/Resources/Strings.resx index ad8e1a8dd7..ce63409d40 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.resx +++ b/Source/NETworkManager.Localization/Resources/Strings.resx @@ -3019,9 +3019,6 @@ Error message: <data name="Library_LiveCharts_Description" xml:space="preserve"> <value>Beautiful, interactive charts, maps, and gauges.</value> </data> - <data name="Library_MahAppsMetroIconPacks_Description" xml:space="preserve"> - <value>Some awesome icons for WPF and UWP all together...</value> - </data> <data name="Library_MahAppsMetro_Description" xml:space="preserve"> <value>A toolkit for creating Metro / Modern UI styled WPF apps.</value> </data> From ddc7f390404a10d18df6a7900c0f53b658e6f0a8 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:06:29 +0100 Subject: [PATCH 164/232] Docs: Lucide icons in AGENTS.md and the conventions (D8) The icons come from Lucide only: how to use them in XAML / C#, how to add an icon (Create-LucideIcons.ps1) and the icon names of the context menu actions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .claude/skills/feature-review/references/conventions.md | 8 ++++---- AGENTS.md | 9 +++++++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.claude/skills/feature-review/references/conventions.md b/.claude/skills/feature-review/references/conventions.md index fef65d97ea..0424c000cf 100644 --- a/.claude/skills/feature-review/references/conventions.md +++ b/.claude/skills/feature-review/references/conventions.md @@ -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. diff --git a/AGENTS.md b/AGENTS.md index 3dad25b6a3..b7c20f17ff 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -39,6 +39,7 @@ REPOSITORY_ROOT/ ├── 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) @@ -74,7 +75,9 @@ REPOSITORY_ROOT/ **UI Framework & Design**: - **MahApps.Metro** - Modern UI toolkit providing Metro-style controls and themes -- **MahApps.Metro.IconPacks** - Icon libraries (FontAwesome, Material, Modern, Octicons) +- **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 @@ -304,7 +307,9 @@ 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 +- **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/` directory - **Naming**: Use `x:Name` for elements that need code-behind access From 6c220b08964a2616faee81e668aa0d237b4e8f84 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:06:36 +0100 Subject: [PATCH 165/232] Changelog: icons from Lucide Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Website/docs/changelog/next-release.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 83275ed1eb..fa7f9cc74a 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -81,6 +81,7 @@ Release date: **xx.xx.2026** - Clearer text: section headers (e.g. in the settings and the profile dialog) are 16 semibold instead of 18 light gray, the tools in the navigation 14 like the tabs, messages in empty areas 16. On Windows 11 the application uses **Segoe UI Variable** (Segoe UI on Windows 10). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Colors: in the dark theme the boxes (tool, profiles) are raised on a darker window frame, the borders are softer, the selected tool in the navigation has a light tint of the accent color. The charts (**Ping Monitor**, bandwidth of the **Network Interface**, speed test, **WiFi** channels, **Traceroute** map) use colors with a good contrast in the light and dark theme and a fill below the lines that fades out. New installations use the accent color **Teal** (existing settings keep their accent). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - While a tab is dragged (e.g. to another window or to split the view), **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show the icon of the tool and the title of the tab instead of an empty area. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- New icons: all icons (navigation, toolbars, context menus, messages, status) come from one icon family, [Lucide](https://lucide.dev), instead of five different icon packs. They are drawn as thin lines (calmer, especially at small sizes) and have the same size and position everywhere. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** @@ -560,5 +561,6 @@ Release date: **xx.xx.2026** - Reworked the GitHub issue templates as forms (bug report, feature request, question) that ask for the relevant information (e.g. affected feature, version, installation, Windows version, log), with links to the documentation, discussions, translations and security advisories. Simplified the pull request template and removed the Copilot summary section. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - Faster CI: AppVeyor no longer builds a branch a second time when a PR is open, skips changes that only affect the documentation / website, builds ARM64 only for releases and now runs the unit tests. The website is only built for PRs that change it and builds about 3x faster (Docusaurus Faster). Dependabot also updates the GitHub Actions, and CodeQL also scans the workflows. Website changes are only merged automatically if the website builds. Dependabot major updates are no longer merged automatically. Removed the stale bot. [#3675](https://github.com/BornToBeRoot/NETworkManager/pull/3675) - The exports (CSV, XML, JSON) of all tools define their columns once and are written by one shared writer, so the three formats can't drift apart and every tool formats the same kind of value the same way (not translated), see [Export format](../faq/export-format.md). Added unit tests for the exports. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) +- The icons are imported from the original SVG files of Lucide (`Scripts/Create-LucideIcons.ps1`, only the used icons) and drawn by an own control, the MahApps.Metro.IconPacks packages are removed. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Language files updated via [#transifex](https://github.com/BornToBeRoot/NETworkManager/pulls?q=author%3Aapp%2Ftransifex-integration) - Dependencies updated via [#dependabot](https://github.com/BornToBeRoot/NETworkManager/pulls?q=author%3Aapp%2Fdependabot) From 5fe649b8737005ade1ce4b8f1b9051e2a2c8aca4 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:13:36 +0100 Subject: [PATCH 166/232] Docs: UI design system in AGENTS.md The design refresh introduced themes / accents, theme-dependent brushes, fonts, corner radii, the box layout, button / input / progress styles, Lucide icons and motion rules. AGENTS.md now describes them (replaces the short "UI Theming" section), so new UI uses the existing tokens and styles instead of local values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 90 insertions(+), 8 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index b7c20f17ff..2e2ec7f868 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -74,7 +74,8 @@ 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** - 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` @@ -310,7 +311,7 @@ The website is deployed to GitHub Pages at: https://borntoberoot.net/NETworkMana - **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/` directory +- **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 @@ -493,12 +494,93 @@ 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.<accent>`, neutral grays tinted toward the theme background) and light Mist, Soft, Paper (copies of + `Light.<accent>` with their own frame color). Own accents Sky, Ocean, Mint, Rose, Coral, Gold, Lavender, Slate, + Graphite (copies of `<theme>.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: 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 % | `ViewBox` / `CardBorder` border | +| `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` | readable per theme (darker in light themes) | 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. +- 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). Welcome / Upgrade keep their own overlay. +- 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 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`, tooltip fade, notification slide-in. 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 From 754e73a385ad65be07e4adc70b863418b81c5988 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:17:59 +0100 Subject: [PATCH 167/232] Fix: icon of an open port is ethernet-port (D8) The open port status (IP Scanner port details, Port Scanner) used the same old icon as the Port Scanner tool and became scan-line, the tool icon. A port is ethernet-port (closed stays unplug); the "Open in Port Scanner" menu items keep the tool icon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager/Resources/Styles/RectangleStyles.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml index 3567ec0f3d..29fb84b2f7 100644 --- a/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml @@ -187,7 +187,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Success}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=ScanLine}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=EthernetPort}" /> </Setter.Value> </Setter> </Style> From 72f2b6014a0d71ac7df2152e09bfd9fd389753d3 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:19:15 +0100 Subject: [PATCH 168/232] Design: status dot in front of the firewall action, TCP and neighbor state (D10.1) Status values in lists were plain or colored text. A small dot in the status color with the text in the normal color is easy to scan and stays calm in long lists (user decision: dot + text instead of tinted chips): - Firewall Action: allow green, block red (was the colored text). - Connections State: established green, connecting (SYN sent / received) yellow, others gray. - Neighbor Table State: reachable green, stale / delay / probe yellow, incomplete / unreachable red, permanent gray. Style StatusDot (Ellipse, level as Tag) + StatusLevel and one converter per state type. Template columns keep the text for copying (ClipboardContentBinding). The Port Scanner already has a status icon column, so its status stays text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- ...irewallRuleActionToStatusLevelConverter.cs | 27 +++++++++++++++++ .../NeighborStateToStatusLevelConverter.cs | 29 ++++++++++++++++++ .../NETworkManager.Converters/StatusLevel.cs | 30 +++++++++++++++++++ .../TcpStateToStatusLevelConverter.cs | 28 +++++++++++++++++ .../Resources/Styles/RectangleStyles.xaml | 24 ++++++++++++++- .../NETworkManager/Views/ConnectionsView.xaml | 18 +++++++++-- Source/NETworkManager/Views/FirewallView.xaml | 16 +++++----- .../Views/NeighborTableView.xaml | 20 ++++++++++--- 8 files changed, 175 insertions(+), 17 deletions(-) create mode 100644 Source/NETworkManager.Converters/FirewallRuleActionToStatusLevelConverter.cs create mode 100644 Source/NETworkManager.Converters/NeighborStateToStatusLevelConverter.cs create mode 100644 Source/NETworkManager.Converters/StatusLevel.cs create mode 100644 Source/NETworkManager.Converters/TcpStateToStatusLevelConverter.cs diff --git a/Source/NETworkManager.Converters/FirewallRuleActionToStatusLevelConverter.cs b/Source/NETworkManager.Converters/FirewallRuleActionToStatusLevelConverter.cs new file mode 100644 index 0000000000..84c728c083 --- /dev/null +++ b/Source/NETworkManager.Converters/FirewallRuleActionToStatusLevelConverter.cs @@ -0,0 +1,27 @@ +using System; +using System.Globalization; +using System.Windows.Data; +using NETworkManager.Models.Firewall; + +namespace NETworkManager.Converters; + +/// <summary> +/// Convert <see cref="FirewallRuleAction" /> to <see cref="StatusLevel" />: allow = success, block = error. +/// </summary> +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..cc1ae1faea --- /dev/null +++ b/Source/NETworkManager.Converters/NeighborStateToStatusLevelConverter.cs @@ -0,0 +1,29 @@ +using System; +using System.Globalization; +using System.Windows.Data; +using NETworkManager.Models.Network; + +namespace NETworkManager.Converters; + +/// <summary> +/// Convert <see cref="NeighborState" /> to <see cref="StatusLevel" />: reachable = success, stale / delay / probe +/// (not confirmed recently) = warning, incomplete / unreachable = error, permanent (static entry) neutral. +/// </summary> +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/StatusLevel.cs b/Source/NETworkManager.Converters/StatusLevel.cs new file mode 100644 index 0000000000..c0e4ad3cca --- /dev/null +++ b/Source/NETworkManager.Converters/StatusLevel.cs @@ -0,0 +1,30 @@ +using System.Windows.Shapes; + +namespace NETworkManager.Converters; + +/// <summary> +/// Status of a value in a list (e.g. the action of a firewall rule), shown as colored dot (style <c>StatusDot</c>: +/// <see cref="Ellipse" /> with the level as <c>Tag</c>) in front of the text. +/// </summary> +public enum StatusLevel +{ + /// <summary> + /// Neutral (gray). + /// </summary> + None, + + /// <summary> + /// Good, e.g. allowed, established, reachable (<c>Brushes.Status.Success</c>). + /// </summary> + Success, + + /// <summary> + /// In between, e.g. connecting, stale (<c>Brushes.Status.Warning</c>). + /// </summary> + Warning, + + /// <summary> + /// Bad, e.g. blocked, unreachable (<c>Brushes.Status.Error</c>). + /// </summary> + Error +} diff --git a/Source/NETworkManager.Converters/TcpStateToStatusLevelConverter.cs b/Source/NETworkManager.Converters/TcpStateToStatusLevelConverter.cs new file mode 100644 index 0000000000..d715788cad --- /dev/null +++ b/Source/NETworkManager.Converters/TcpStateToStatusLevelConverter.cs @@ -0,0 +1,28 @@ +using System; +using System.Globalization; +using System.Net.NetworkInformation; +using System.Windows.Data; + +namespace NETworkManager.Converters; + +/// <summary> +/// Convert <see cref="TcpState" /> to <see cref="StatusLevel" />: established = success, connecting (SYN sent / +/// received) = warning, all other states (listen, closing, time wait, ...) neutral. +/// </summary> +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/Resources/Styles/RectangleStyles.xaml b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml index 29fb84b2f7..9124ce4764 100644 --- a/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml @@ -1,6 +1,7 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"> + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" + xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters"> <Style x:Key="ButtonWithImageRectangle" TargetType="{x:Type Rectangle}"> <Setter Property="Width" Value="20" /> <Setter Property="Height" Value="20" /> @@ -179,6 +180,27 @@ </Setter> </Style> + <!-- Status of a value in a list (dot in front of the text, e.g. firewall action, TCP state): the level as Tag + (StatusLevel, e.g. via FirewallRuleActionToStatusLevelConverter), gray if neutral --> + <Style x:Key="StatusDot" TargetType="{x:Type Ellipse}"> + <Setter Property="Width" Value="8" /> + <Setter Property="Height" Value="8" /> + <Setter Property="Margin" Value="0,0,8,0" /> + <Setter Property="VerticalAlignment" Value="Center" /> + <Setter Property="Fill" Value="{DynamicResource MahApps.Brushes.Gray5}" /> + <Style.Triggers> + <Trigger Property="Tag" Value="{x:Static converters:StatusLevel.Success}"> + <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Success}" /> + </Trigger> + <Trigger Property="Tag" Value="{x:Static converters:StatusLevel.Warning}"> + <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Warning}" /> + </Trigger> + <Trigger Property="Tag" Value="{x:Static converters:StatusLevel.Error}"> + <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> + </Trigger> + </Style.Triggers> + </Style> + <!-- @FutureMe Don't touch this! Converter "PortOpenStyleConverter" returns to the x:Key --> <Style x:Key="PortOpenRectangle" TargetType="{x:Type Rectangle}"> <Style.Resources> diff --git a/Source/NETworkManager/Views/ConnectionsView.xaml b/Source/NETworkManager/Views/ConnectionsView.xaml index ffd65ea0a6..9965456632 100644 --- a/Source/NETworkManager/Views/ConnectionsView.xaml +++ b/Source/NETworkManager/Views/ConnectionsView.xaml @@ -18,6 +18,7 @@ <UserControl.Resources> <converters:BooleanToVisibilityCollapsedConverter x:Key="BooleanToVisibilityCollapsedConverter" /> <converters:TcpStateToStringConverter x:Key="TcpStateToStringConverter" /> + <converters:TcpStateToStatusLevelConverter x:Key="TcpStateToStatusLevelConverter" /> <wpfHelpers:BindingProxy x:Key="BindingProxy" Data="{Binding}" /> </UserControl.Resources> <TabControl Style="{StaticResource DefaultTabControl}"> @@ -191,9 +192,20 @@ <DataGridTextColumn Header="{x:Static Member=localization:Strings.RemoteHostname}" FontFamily="{StaticResource Fonts.Family.Mono}" Binding="{Binding Path=(network:ConnectionInfo.RemoteHostname)}" SortMemberPath="RemoteHostname" MinWidth="100" /> - <DataGridTextColumn Header="{x:Static Member=localization:Strings.State}" - Binding="{Binding Path=(network:ConnectionInfo.TcpState), Converter={StaticResource ResourceKey=TcpStateToStringConverter}}" - SortMemberPath="TcpState" MinWidth="150" /> + <DataGridTemplateColumn Header="{x:Static Member=localization:Strings.State}" + ClipboardContentBinding="{Binding Path=(network:ConnectionInfo.TcpState), Converter={StaticResource ResourceKey=TcpStateToStringConverter}}" + SortMemberPath="TcpState" MinWidth="150"> + <DataGridTemplateColumn.CellTemplate> + <DataTemplate> + <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> + <Ellipse Style="{StaticResource StatusDot}" + Tag="{Binding Path=(network:ConnectionInfo.TcpState), Converter={StaticResource ResourceKey=TcpStateToStatusLevelConverter}}" /> + <TextBlock Text="{Binding Path=(network:ConnectionInfo.TcpState), Converter={StaticResource ResourceKey=TcpStateToStringConverter}}" + VerticalAlignment="Center" /> + </StackPanel> + </DataTemplate> + </DataGridTemplateColumn.CellTemplate> + </DataGridTemplateColumn> <DataGridTextColumn Header="{x:Static Member=localization:Strings.ProcessID}" Binding="{Binding Path=(network:ConnectionInfo.ProcessId)}" SortMemberPath="ProcessId" MinWidth="150" /> diff --git a/Source/NETworkManager/Views/FirewallView.xaml b/Source/NETworkManager/Views/FirewallView.xaml index 59001c7b83..4eb0a8f8e3 100644 --- a/Source/NETworkManager/Views/FirewallView.xaml +++ b/Source/NETworkManager/Views/FirewallView.xaml @@ -25,6 +25,7 @@ <converters:FirewallProtocolToStringConverter x:Key="FirewallProtocolToStringConverter" /> <converters:FirewallRuleDirectionToStringConverter x:Key="FirewallRuleDirectionToStringConverter" /> <converters:FirewallRuleActionToStringConverter x:Key="FirewallRuleActionToStringConverter" /> + <converters:FirewallRuleActionToStatusLevelConverter x:Key="FirewallRuleActionToStatusLevelConverter" /> <converters:FirewallInterfaceTypeToStringConverter x:Key="FirewallInterfaceTypeToStringConverter" /> <converters:FirewallNetworkProfilesToStringConverter x:Key="FirewallNetworkProfilesToStringConverter" /> <converters:FirewallRuleSourceToStringConverter x:Key="FirewallRuleSourceToStringConverter" /> @@ -548,15 +549,12 @@ SortMemberPath="Action" MinWidth="70"> <DataGridTemplateColumn.CellTemplate> <DataTemplate DataType="{x:Type firewall:FirewallRule}"> - <TextBlock x:Name="ActionText" - Text="{Binding (firewall:FirewallRule.Action), Converter={StaticResource FirewallRuleActionToStringConverter}}" - Foreground="{DynamicResource Brushes.Status.Error}" - VerticalAlignment="Center" /> - <DataTemplate.Triggers> - <DataTrigger Binding="{Binding (firewall:FirewallRule.Action)}" Value="{x:Static firewall:FirewallRuleAction.Allow}"> - <Setter TargetName="ActionText" Property="Foreground" Value="{DynamicResource Brushes.Status.Success}" /> - </DataTrigger> - </DataTemplate.Triggers> + <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> + <Ellipse Style="{StaticResource StatusDot}" + Tag="{Binding (firewall:FirewallRule.Action), Converter={StaticResource FirewallRuleActionToStatusLevelConverter}}" /> + <TextBlock Text="{Binding (firewall:FirewallRule.Action), Converter={StaticResource FirewallRuleActionToStringConverter}}" + VerticalAlignment="Center" /> + </StackPanel> </DataTemplate> </DataGridTemplateColumn.CellTemplate> </DataGridTemplateColumn> diff --git a/Source/NETworkManager/Views/NeighborTableView.xaml b/Source/NETworkManager/Views/NeighborTableView.xaml index 8bf0c614bd..61a6fbd83a 100644 --- a/Source/NETworkManager/Views/NeighborTableView.xaml +++ b/Source/NETworkManager/Views/NeighborTableView.xaml @@ -21,6 +21,7 @@ <converters:BooleanToStringConverter x:Key="BooleanToStringConverter" /> <converters:PhysicalAddressToStringConverter x:Key="PhysicalAddressToStringConverter" /> <converters:NeighborStateToStringConverter x:Key="NeighborStateToStringConverter" /> + <converters:NeighborStateToStatusLevelConverter x:Key="NeighborStateToStatusLevelConverter" /> <wpfHelpers:BindingProxy x:Key="BindingProxy" Data="{Binding}" /> </UserControl.Resources> <UserControl.InputBindings> @@ -190,10 +191,21 @@ Binding="{Binding (network:NeighborInfo.MACAddress), Converter={StaticResource PhysicalAddressToStringConverter}}" SortMemberPath="MACAddress" MinWidth="180" /> - <DataGridTextColumn Header="{x:Static localization:Strings.State}" - Binding="{Binding (network:NeighborInfo.State), Converter={StaticResource NeighborStateToStringConverter}}" - SortMemberPath="State" - MinWidth="100" /> + <DataGridTemplateColumn Header="{x:Static localization:Strings.State}" + ClipboardContentBinding="{Binding (network:NeighborInfo.State), Converter={StaticResource NeighborStateToStringConverter}}" + SortMemberPath="State" + MinWidth="100"> + <DataGridTemplateColumn.CellTemplate> + <DataTemplate> + <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> + <Ellipse Style="{StaticResource StatusDot}" + Tag="{Binding (network:NeighborInfo.State), Converter={StaticResource NeighborStateToStatusLevelConverter}}" /> + <TextBlock Text="{Binding (network:NeighborInfo.State), Converter={StaticResource NeighborStateToStringConverter}}" + VerticalAlignment="Center" /> + </StackPanel> + </DataTemplate> + </DataGridTemplateColumn.CellTemplate> + </DataGridTemplateColumn> <DataGridTextColumn Header="{x:Static localization:Strings.Multicast}" Binding="{Binding (network:NeighborInfo.IsMulticast), Converter={StaticResource BooleanToStringConverter}}" SortMemberPath="IsMulticast" From 6e802cb64d68fa91f83205c0798a7dfc6547e1cf Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:19:29 +0100 Subject: [PATCH 169/232] Changelog: status dots in Firewall, Connections and Neighbor Table Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Website/docs/changelog/next-release.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index fa7f9cc74a..6ec61e5931 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -263,6 +263,7 @@ Release date: **xx.xx.2026** - `Enter` in the search box filters the rules right away instead of after the delay while typing. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - The time of the last refresh (`Reloaded at 14:32`, the date in the tooltip) is shown in the header instead of a status line below the list; the line below the list only shows errors (e.g. rules loaded with errors, a failed action). A manual refresh is faster (the minimum of 2.5 seconds runs while loading, not before) and the refresh icon spins until the rules are loaded (also with **Show all rules**). [#3685](https://github.com/BornToBeRoot/NETworkManager/pull/3685) - **Export** exports the rules shown (search) in the order shown (sorting), the selected rules in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) +- The **Action** column shows a colored dot (allow green, block red) in front of the text instead of colored text. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Discovery Protocol** @@ -286,6 +287,7 @@ Release date: **xx.xx.2026** - The search filters after a short delay while typing instead of on every key press (smoother with many connections), `Enter` filters right away. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - The time of the last refresh (`Reloaded at 14:32`, the date in the tooltip) is shown in the header instead of a status line below the list; with **Automatically update every**, a countdown to the next refresh (`Next refresh in 00:04`). A manual refresh is faster (the minimum of 2.5 seconds runs while loading, not before) and the refresh icon spins until it is finished. [#3685](https://github.com/BornToBeRoot/NETworkManager/pull/3685) - **Export...** exports the entries shown (search) in the order shown (sorting), the selected entries in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) +- The **State** column shows a colored dot in front of the state: established green, connecting yellow, other states gray. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Listeners** @@ -300,6 +302,7 @@ Release date: **xx.xx.2026** - The search filters after a short delay while typing instead of on every key press (smoother with many entries), `Enter` filters right away. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - The time of the last refresh (`Reloaded at 14:32`, the date in the tooltip) is shown in the header instead of a status line below the list; with **Automatically update every**, a countdown to the next refresh (`Next refresh in 00:04`). The line below the list only shows errors. A manual refresh is faster (the minimum of 2.5 seconds runs while loading, not before) and the refresh icon spins until it is finished. [#3685](https://github.com/BornToBeRoot/NETworkManager/pull/3685) - **Export...** exports the entries shown (search) in the order shown (sorting), the selected entries in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) +- The **State** column shows a colored dot in front of the state: reachable green, stale / delay / probe yellow, incomplete / unreachable red, permanent gray. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) ## Bug Fixes From 354fe736e5186b5d35b4e3b1006bfa5998e81589 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:24:14 +0100 Subject: [PATCH 170/232] Design: icon above the messages in empty areas (D10.2) Empty areas only showed a centered gray text. They now show a gray icon (40) above the existing message (user decision: icon + message, no new texts / translations): no firewall rules (brick-wall-fire), no Wi-Fi networks / adapters (wifi-off, new icon), no enabled network adapters (ethernet-port), Discovery Protocol before / without packets (arrow-left-right), path of PuTTY / PowerShell / TigerVNC not configured (settings), WebView2 / Windows SDK not available and profile file errors (circle-alert), Wi-Fi access not available (shield-off). The "restart as administrator" notices below the lists get a smaller shield (24). EmptyStateMessage (NETworkManager.Controls: Text, Icon, IconSize) with the implicit style DefaultEmptyStateMessage (TextBlockStyles.xaml, text like MessageTextBlock). Status lines, loading texts and the "add a tab" / "unlock" buttons are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Scripts/Create-LucideIcons.ps1 | 2 +- .../EmptyStateMessage.cs | 53 +++++++++++++++++++ Source/NETworkManager.Controls/LucideIcons.cs | 2 + .../Resources/Styles/TextBlockStyles.xaml | 37 ++++++++++++- .../Views/Controls/ProfileExpanderPanel.xaml | 5 +- .../Views/DiscoveryProtocolView.xaml | 18 +++---- Source/NETworkManager/Views/FirewallView.xaml | 13 +++-- .../Views/HostsFileEditorView.xaml | 3 +- .../Views/NeighborTableView.xaml | 3 +- .../Views/NetworkInterfaceView.xaml | 6 +-- .../Views/PowerShellHostView.xaml | 3 +- Source/NETworkManager/Views/ProfilesView.xaml | 5 +- .../NETworkManager/Views/PuTTYHostView.xaml | 3 +- .../Views/TigerVNCHostView.xaml | 3 +- .../Views/WebConsoleHostView.xaml | 3 +- Source/NETworkManager/Views/WiFiView.xaml | 21 ++++---- 16 files changed, 127 insertions(+), 53 deletions(-) create mode 100644 Source/NETworkManager.Controls/EmptyStateMessage.cs diff --git a/Scripts/Create-LucideIcons.ps1 b/Scripts/Create-LucideIcons.ps1 index 5d78e9c072..8a4d38b02a 100644 --- a/Scripts/Create-LucideIcons.ps1 +++ b/Scripts/Create-LucideIcons.ps1 @@ -36,7 +36,7 @@ $Icons = @( "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-zero", "x" + "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 diff --git a/Source/NETworkManager.Controls/EmptyStateMessage.cs b/Source/NETworkManager.Controls/EmptyStateMessage.cs new file mode 100644 index 0000000000..9e8d60b9cb --- /dev/null +++ b/Source/NETworkManager.Controls/EmptyStateMessage.cs @@ -0,0 +1,53 @@ +using System.Windows; +using System.Windows.Controls; + +namespace NETworkManager.Controls; + +/// <summary> +/// Message in an empty area (e.g. no rules found, restart as administrator, configure the path): a gray +/// <see cref="Icon" /> above the <see cref="Text" />. The look (template, text style) is defined by the style +/// <c>DefaultEmptyStateMessage</c> of the application (TextBlockStyles.xaml, implicit style). +/// </summary> +public class EmptyStateMessage : Control +{ + /// <summary> + /// Default size of the icon (empty area). Notices (e.g. restart as administrator below a list) use 24. + /// </summary> + 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)); + + /// <summary> + /// Message. + /// </summary> + public string Text + { + get => (string)GetValue(TextProperty); + set => SetValue(TextProperty, value); + } + + /// <summary> + /// Icon above the message (none = only the message). + /// </summary> + public LucideIconKind Icon + { + get => (LucideIconKind)GetValue(IconProperty); + set => SetValue(IconProperty, value); + } + + /// <summary> + /// Size of the icon (default <see cref="DefaultIconSize" />). + /// </summary> + public double IconSize + { + get => (double)GetValue(IconSizeProperty); + set => SetValue(IconSizeProperty, value); + } +} diff --git a/Source/NETworkManager.Controls/LucideIcons.cs b/Source/NETworkManager.Controls/LucideIcons.cs index cd0c151687..0fb7710b0a 100644 --- a/Source/NETworkManager.Controls/LucideIcons.cs +++ b/Source/NETworkManager.Controls/LucideIcons.cs @@ -185,6 +185,7 @@ public enum LucideIconKind WifiLock, WifiLow, WifiLowLock, + WifiOff, WifiZero, WifiZeroLock, X, @@ -324,6 +325,7 @@ internal static class LucideIconData [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), diff --git a/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml index 5eddc20ece..3571c0d073 100644 --- a/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml @@ -1,5 +1,6 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"> <Style x:Key="DefaultTextBlock" TargetType="{x:Type TextBlock}"> <Setter Property="FontSize" Value="14" /> <Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Text}" /> @@ -53,6 +54,40 @@ <Setter Property="Margin" Value="10,0" /> </Style> + <!-- Message in an empty area with an icon above (e.g. no rules found, restart as administrator): gray icon + (IconSize, default 40) + the text like MessageTextBlock. Implicit style for icons:EmptyStateMessage --> + <Style x:Key="DefaultEmptyStateMessage" TargetType="{x:Type icons:EmptyStateMessage}"> + <Setter Property="Focusable" Value="False" /> + <Setter Property="IsTabStop" Value="False" /> + <Setter Property="HorizontalAlignment" Value="Center" /> + <Setter Property="VerticalAlignment" Value="Center" /> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type icons:EmptyStateMessage}"> + <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> + <icons:LucideIcon x:Name="Icon" + Kind="{TemplateBinding Icon}" + Width="{TemplateBinding IconSize}" + Height="{TemplateBinding IconSize}" + Foreground="{DynamicResource MahApps.Brushes.Gray3}" + Opacity="0.7" + HorizontalAlignment="Center" + Margin="0,0,0,12" /> + <TextBlock Text="{TemplateBinding Text}" + Style="{StaticResource MessageTextBlock}" /> + </StackPanel> + <ControlTemplate.Triggers> + <Trigger Property="Icon" Value="None"> + <Setter TargetName="Icon" Property="Visibility" Value="Collapsed" /> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> + + <Style TargetType="{x:Type icons:EmptyStateMessage}" BasedOn="{StaticResource DefaultEmptyStateMessage}" /> + <Style x:Key="BoldTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource DefaultTextBlock}"> <Setter Property="FontWeight" Value="Bold" /> </Style> diff --git a/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml b/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml index 14dee170be..fc1b1531cd 100644 --- a/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml +++ b/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml @@ -631,10 +631,9 @@ </Grid> </Button> <!-- Profile Manager error message --> - <TextBlock + <icons:EmptyStateMessage Icon="CircleAlert" Text="{Binding Source={x:Static Member=settings:ConfigurationManager.Current}, Path=ProfileManagerErrorMessage}" - Visibility="{Binding Source={x:Static Member=settings:ConfigurationManager.Current}, Path=ProfileManagerShowUnlock, Converter={StaticResource ResourceKey=BooleanReverseToVisibilityCollapsedConverter}}" - Style="{StaticResource ResourceKey=MessageTextBlock}" /> + Visibility="{Binding Source={x:Static Member=settings:ConfigurationManager.Current}, Path=ProfileManagerShowUnlock, Converter={StaticResource ResourceKey=BooleanReverseToVisibilityCollapsedConverter}}" /> </Grid> </Grid> </Grid> diff --git a/Source/NETworkManager/Views/DiscoveryProtocolView.xaml b/Source/NETworkManager/Views/DiscoveryProtocolView.xaml index b036c61bad..04c4661564 100644 --- a/Source/NETworkManager/Views/DiscoveryProtocolView.xaml +++ b/Source/NETworkManager/Views/DiscoveryProtocolView.xaml @@ -232,14 +232,13 @@ </Button.Content> </Button> </Grid> - <TextBlock Grid.Column="0" Grid.Row="6" + <icons:EmptyStateMessage Icon="ArrowLeftRight" Grid.Column="0" Grid.Row="6" Text="{x:Static localization:Strings.CaptureNetworkPacketsToViewLLDPorCDPInformation}" - Visibility="{Binding FirstRun, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{StaticResource MessageTextBlock}" /> - <TextBlock Grid.Column="0" Grid.Row="6" + Visibility="{Binding FirstRun, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" /> + <icons:EmptyStateMessage Icon="ArrowLeftRight" Grid.Column="0" Grid.Row="6" Text="{x:Static localization:Strings.NoDiscoveryProtocolPackagesReceived}"> - <TextBlock.Style> - <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource MessageTextBlock}"> + <icons:EmptyStateMessage.Style> + <Style TargetType="{x:Type icons:EmptyStateMessage}" BasedOn="{StaticResource DefaultEmptyStateMessage}"> <Setter Property="Visibility" Value="Collapsed" /> <Style.Triggers> <MultiDataTrigger> @@ -254,8 +253,8 @@ </MultiDataTrigger> </Style.Triggers> </Style> - </TextBlock.Style> - </TextBlock> + </icons:EmptyStateMessage.Style> + </icons:EmptyStateMessage> <StackPanel Grid.Column="0" Grid.Row="6" VerticalAlignment="Center" Visibility="{Binding IsCapturing, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> <mah:ProgressRing IsActive="True" Style="{StaticResource ProgressRingLarge}" Margin="0,0,0,10" /> @@ -273,8 +272,7 @@ Margin="0,10,0,0"> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="10"> - <TextBlock Text="{x:Static localization:Strings.NetworkPacketsCaptureAdminMessage}" - Style="{StaticResource MessageTextBlock}" + <icons:EmptyStateMessage Icon="Shield" IconSize="24" Text="{x:Static localization:Strings.NetworkPacketsCaptureAdminMessage}" Margin="0,0,0,10" /> <Button Command="{Binding RestartAsAdminCommand}" HorizontalAlignment="Center" diff --git a/Source/NETworkManager/Views/FirewallView.xaml b/Source/NETworkManager/Views/FirewallView.xaml index 4eb0a8f8e3..14fa847d91 100644 --- a/Source/NETworkManager/Views/FirewallView.xaml +++ b/Source/NETworkManager/Views/FirewallView.xaml @@ -722,10 +722,10 @@ </controls:MultiSelectDataGrid> <!-- Row 2: No rules found (not shown while loading) --> - <TextBlock Grid.Row="2" + <icons:EmptyStateMessage Icon="BrickWallFire" Grid.Row="2" Text="{x:Static localization:Strings.NoFirewallRulesFoundMessage}"> - <TextBlock.Style> - <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource MessageTextBlock}"> + <icons:EmptyStateMessage.Style> + <Style TargetType="{x:Type icons:EmptyStateMessage}" BasedOn="{StaticResource DefaultEmptyStateMessage}"> <Setter Property="Visibility" Value="Collapsed" /> <Style.Triggers> <MultiDataTrigger> @@ -737,8 +737,8 @@ </MultiDataTrigger> </Style.Triggers> </Style> - </TextBlock.Style> - </TextBlock> + </icons:EmptyStateMessage.Style> + </icons:EmptyStateMessage> <!-- Row 2: Loading indicator (initial load only, see FirewallViewModel.IsLoading) --> <StackPanel Grid.Row="2" @@ -827,8 +827,7 @@ Margin="0,10,0,0"> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="10"> - <TextBlock Text="{x:Static localization:Strings.FirewallAdminMessage}" - Style="{StaticResource MessageTextBlock}" + <icons:EmptyStateMessage Icon="Shield" IconSize="24" Text="{x:Static localization:Strings.FirewallAdminMessage}" Margin="0,0,0,10" /> <Button Command="{Binding RestartAsAdminCommand}" HorizontalAlignment="Center" diff --git a/Source/NETworkManager/Views/HostsFileEditorView.xaml b/Source/NETworkManager/Views/HostsFileEditorView.xaml index 9c393b460b..45edbd990b 100644 --- a/Source/NETworkManager/Views/HostsFileEditorView.xaml +++ b/Source/NETworkManager/Views/HostsFileEditorView.xaml @@ -375,8 +375,7 @@ Margin="0,10,0,0"> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="10"> - <TextBlock Text="{x:Static localization:Strings.HostsFileEditorAdminMessage}" - Style="{StaticResource MessageTextBlock}" + <icons:EmptyStateMessage Icon="Shield" IconSize="24" Text="{x:Static localization:Strings.HostsFileEditorAdminMessage}" Margin="0,0,0,10" /> <Button Command="{Binding RestartAsAdminCommand}" HorizontalAlignment="Center" diff --git a/Source/NETworkManager/Views/NeighborTableView.xaml b/Source/NETworkManager/Views/NeighborTableView.xaml index 61a6fbd83a..91ef7b408a 100644 --- a/Source/NETworkManager/Views/NeighborTableView.xaml +++ b/Source/NETworkManager/Views/NeighborTableView.xaml @@ -284,8 +284,7 @@ Margin="0,10,0,0"> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="10"> - <TextBlock Text="{x:Static localization:Strings.NeighborTableAdminMessage}" - Style="{StaticResource MessageTextBlock}" + <icons:EmptyStateMessage Icon="Shield" IconSize="24" Text="{x:Static localization:Strings.NeighborTableAdminMessage}" Margin="0,0,0,10" /> <Button Command="{Binding RestartAsAdminCommand}" HorizontalAlignment="Center" diff --git a/Source/NETworkManager/Views/NetworkInterfaceView.xaml b/Source/NETworkManager/Views/NetworkInterfaceView.xaml index da8a066de6..82f1c7e00f 100644 --- a/Source/NETworkManager/Views/NetworkInterfaceView.xaml +++ b/Source/NETworkManager/Views/NetworkInterfaceView.xaml @@ -1492,8 +1492,7 @@ Margin="0,10,0,0"> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="10"> - <TextBlock Text="{x:Static localization:Strings.NetworkInterfaceConfigureAdminMessage}" - Style="{StaticResource MessageTextBlock}" + <icons:EmptyStateMessage Icon="Shield" IconSize="24" Text="{x:Static localization:Strings.NetworkInterfaceConfigureAdminMessage}" Margin="0,0,0,10" /> <Button Command="{Binding RestartAsAdminCommand}" HorizontalAlignment="Center" @@ -1536,8 +1535,7 @@ <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Visibility="{Binding NetworkInterfaces.Count, Converter={StaticResource IntZeroToVisibilityCollapsedConverter}}" Margin="10"> - <TextBlock Text="{x:Static localization:Strings.NoEnabledNetworkAdaptersFound}" - Style="{StaticResource MessageTextBlock}" Margin="0,0,0,10" /> + <icons:EmptyStateMessage Icon="EthernetPort" Text="{x:Static localization:Strings.NoEnabledNetworkAdaptersFound}" Margin="0,0,0,10" /> <Button Command="{Binding OpenNetworkConnectionsCommand}" HorizontalAlignment="Center" Style="{StaticResource ImageWithTextButton}"> <Button.Content> diff --git a/Source/NETworkManager/Views/PowerShellHostView.xaml b/Source/NETworkManager/Views/PowerShellHostView.xaml index a27e1e9e6a..559fbf4d28 100644 --- a/Source/NETworkManager/Views/PowerShellHostView.xaml +++ b/Source/NETworkManager/Views/PowerShellHostView.xaml @@ -282,8 +282,7 @@ </Style.Triggers> </Style> </StackPanel.Style> - <TextBlock Text="{x:Static localization:Strings.ConfigureThePathToPowerShellInTheSettingsDots}" - Style="{StaticResource MessageTextBlock}" Margin="0,0,0,10" /> + <icons:EmptyStateMessage Icon="Settings" Text="{x:Static localization:Strings.ConfigureThePathToPowerShellInTheSettingsDots}" Margin="0,0,0,10" /> <Button HorizontalAlignment="Center" Command="{Binding OpenSettingsCommand}" Style="{StaticResource ImageWithTextButton}"> <Button.Content> diff --git a/Source/NETworkManager/Views/ProfilesView.xaml b/Source/NETworkManager/Views/ProfilesView.xaml index 2c10d0a054..e83390b75a 100644 --- a/Source/NETworkManager/Views/ProfilesView.xaml +++ b/Source/NETworkManager/Views/ProfilesView.xaml @@ -636,10 +636,9 @@ </Grid> </Button> <!-- Profile Manager error message --> - <TextBlock + <icons:EmptyStateMessage Icon="CircleAlert" Text="{Binding Source={x:Static Member=settings:ConfigurationManager.Current}, Path=ProfileManagerErrorMessage}" - Visibility="{Binding Source={x:Static Member=settings:ConfigurationManager.Current}, Path=ProfileManagerShowUnlock, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" - Style="{StaticResource ResourceKey=MessageTextBlock}" /> + Visibility="{Binding Source={x:Static Member=settings:ConfigurationManager.Current}, Path=ProfileManagerShowUnlock, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" /> </Grid> </Grid> </UserControl> \ No newline at end of file diff --git a/Source/NETworkManager/Views/PuTTYHostView.xaml b/Source/NETworkManager/Views/PuTTYHostView.xaml index 9138f3d2d7..212a155ba1 100644 --- a/Source/NETworkManager/Views/PuTTYHostView.xaml +++ b/Source/NETworkManager/Views/PuTTYHostView.xaml @@ -294,8 +294,7 @@ </Style.Triggers> </Style> </StackPanel.Style> - <TextBlock Text="{x:Static localization:Strings.ConfigureThePathToPuTTYInTheSettingsDots}" - Style="{StaticResource MessageTextBlock}" Margin="0,0,0,10" /> + <icons:EmptyStateMessage Icon="Settings" Text="{x:Static localization:Strings.ConfigureThePathToPuTTYInTheSettingsDots}" Margin="0,0,0,10" /> <Button HorizontalAlignment="Center" Command="{Binding OpenSettingsCommand}" Style="{StaticResource ImageWithTextButton}"> <Button.Content> diff --git a/Source/NETworkManager/Views/TigerVNCHostView.xaml b/Source/NETworkManager/Views/TigerVNCHostView.xaml index 83d1e477f7..395fadf89e 100644 --- a/Source/NETworkManager/Views/TigerVNCHostView.xaml +++ b/Source/NETworkManager/Views/TigerVNCHostView.xaml @@ -261,8 +261,7 @@ </Style.Triggers> </Style> </StackPanel.Style> - <TextBlock Text="{x:Static localization:Strings.ConfigureThePathToTigerVNCInTheSettingsDots}" - Style="{StaticResource MessageTextBlock}" Margin="0,0,0,10" /> + <icons:EmptyStateMessage Icon="Settings" Text="{x:Static localization:Strings.ConfigureThePathToTigerVNCInTheSettingsDots}" Margin="0,0,0,10" /> <Button HorizontalAlignment="Center" Command="{Binding OpenSettingsCommand}" Style="{StaticResource ImageWithTextButton}"> <Button.Content> diff --git a/Source/NETworkManager/Views/WebConsoleHostView.xaml b/Source/NETworkManager/Views/WebConsoleHostView.xaml index f53ce0815e..bea3efa526 100644 --- a/Source/NETworkManager/Views/WebConsoleHostView.xaml +++ b/Source/NETworkManager/Views/WebConsoleHostView.xaml @@ -249,8 +249,7 @@ </Style.Triggers> </Style> </StackPanel.Style> - <TextBlock Text="{x:Static localization:Strings.MicrosoftEdgeWebView2RuntimeIsNotAvailable}" - Style="{StaticResource MessageTextBlock}" Margin="0,0,0,10" /> + <icons:EmptyStateMessage Icon="CircleAlert" Text="{x:Static localization:Strings.MicrosoftEdgeWebView2RuntimeIsNotAvailable}" Margin="0,0,0,10" /> <TextBlock Style="{StaticResource DefaultTextBlock}" Margin="0,0,0,5" HorizontalAlignment="Center"> <Hyperlink Command="{Binding OpenWebsiteCommand}" CommandParameter="{x:Static resources:Resources.MicrosoftEdgeWebView2Runtime_DownloadUrl}" diff --git a/Source/NETworkManager/Views/WiFiView.xaml b/Source/NETworkManager/Views/WiFiView.xaml index 04f3d4a8f4..9e87b3ab3a 100644 --- a/Source/NETworkManager/Views/WiFiView.xaml +++ b/Source/NETworkManager/Views/WiFiView.xaml @@ -831,11 +831,11 @@ MinWidth="100" /> </controls2:MultiSelectDataGrid.Columns> </controls2:MultiSelectDataGrid> - <TextBlock Grid.Row="2" + <icons:EmptyStateMessage Icon="WifiOff" Grid.Row="2" Text="{x:Static Member=localization:Strings.NoWiFiNetworksFound}"> - <TextBlock.Style> - <Style TargetType="{x:Type TypeName=TextBlock}" - BasedOn="{StaticResource ResourceKey=MessageTextBlock}"> + <icons:EmptyStateMessage.Style> + <Style TargetType="{x:Type icons:EmptyStateMessage}" + BasedOn="{StaticResource DefaultEmptyStateMessage}"> <Setter Property="Visibility" Value="Collapsed" /> <Style.Triggers> <MultiDataTrigger> @@ -851,8 +851,8 @@ </MultiDataTrigger> </Style.Triggers> </Style> - </TextBlock.Style> - </TextBlock> + </icons:EmptyStateMessage.Style> + </icons:EmptyStateMessage> <StackPanel Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" Visibility="{Binding Path=IsNetworksLoading, Converter={StaticResource ResourceKey=BooleanToVisibilityCollapsedConverter}}"> @@ -981,9 +981,8 @@ <!-- Reload Adapter --> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Visibility="{Binding Path=Adapters.Count, Converter={StaticResource ResourceKey=IntZeroToVisibilityCollapsedConverter}}"> - <TextBlock Text="{x:Static Member=localization:Strings.NoWiFiAdaptersFound}" + <icons:EmptyStateMessage Icon="WifiOff" Text="{x:Static Member=localization:Strings.NoWiFiAdaptersFound}" Visibility="{Binding Path=IsAdaptersLoading, Converter={StaticResource ResourceKey=BooleanReverseToVisibilityCollapsedConverter}}" - Style="{StaticResource ResourceKey=MessageTextBlock}" Margin="0,0,0,10" /> <Button Command="{Binding Path=ReloadAdaptersCommand}" IsEnabled="{Binding Path=IsAdaptersLoading, Converter={StaticResource ResourceKey=BooleanReverseConverter}}" @@ -1022,8 +1021,7 @@ <Grid Visibility="{Binding Path=SdkContractAvailable, Converter={StaticResource ResourceKey=BooleanReverseToVisibilityCollapsedConverter}}" Margin="10"> - <TextBlock Text="{x:Static Member=localization:Strings.MicrosoftWindowsSDKContractsIsNotAvailable}" - Style="{StaticResource ResourceKey=MessageTextBlock}" /> + <icons:EmptyStateMessage Icon="CircleAlert" Text="{x:Static Member=localization:Strings.MicrosoftWindowsSDKContractsIsNotAvailable}" /> </Grid> <!-- Wi-Fi adapter access disabled --> <StackPanel VerticalAlignment="Center" Margin="10"> @@ -1043,8 +1041,7 @@ </Style.Triggers> </Style> </StackPanel.Style> - <TextBlock Text="{x:Static localization:Strings.WiFiAccessNotAvailableMessage}" - Style="{StaticResource MessageTextBlock}" Margin="0,0,0,10" /> + <icons:EmptyStateMessage Icon="ShieldOff" Text="{x:Static localization:Strings.WiFiAccessNotAvailableMessage}" Margin="0,0,0,10" /> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <Button Command="{Binding Path=OpenSettingsCommand}" Style="{StaticResource ImageWithTextButton}"> From 0f966341e886fbd775549635d2d4936c83ea7373 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:24:23 +0100 Subject: [PATCH 171/232] Changelog: icon above the messages in empty areas Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Website/docs/changelog/next-release.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 6ec61e5931..b204b3a854 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -82,6 +82,7 @@ Release date: **xx.xx.2026** - Colors: in the dark theme the boxes (tool, profiles) are raised on a darker window frame, the borders are softer, the selected tool in the navigation has a light tint of the accent color. The charts (**Ping Monitor**, bandwidth of the **Network Interface**, speed test, **WiFi** channels, **Traceroute** map) use colors with a good contrast in the light and dark theme and a fill below the lines that fades out. New installations use the accent color **Teal** (existing settings keep their accent). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - While a tab is dragged (e.g. to another window or to split the view), **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show the icon of the tool and the title of the tab instead of an empty area. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - New icons: all icons (navigation, toolbars, context menus, messages, status) come from one icon family, [Lucide](https://lucide.dev), instead of five different icon packs. They are drawn as thin lines (calmer, especially at small sizes) and have the same size and position everywhere. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Empty areas (e.g. no firewall rules or Wi-Fi networks found, the path of PuTTY not configured) show a large gray icon above the message; the notices to restart as administrator show a shield. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From 5cc922bece50cbfe57a0bd411f784dedf18156a1 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:24:23 +0100 Subject: [PATCH 172/232] Docs: status dots and empty states in the UI design system (D10) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 2e2ec7f868..0741201ef5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -565,6 +565,12 @@ SemiBold (section headers), `MessageTextBlock` 16 gray (messages in empty areas) - 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). Welcome / Upgrade keep their own overlay. +- 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, restart as administrator): `EmptyStateMessage` (`Icon`, `Text`, + `IconSize` 40, 24 for notices below a list) instead of a bare `MessageTextBlock`; status lines and loading texts stay + `MessageTextBlock`. - 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). From c781f8c8d8de967d99bb58eb0fa38edd2b6a26a9 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:27:00 +0100 Subject: [PATCH 173/232] Design: host status icons monitor-check / monitor-x / monitor-dot (D8) Up and down used cable and unplug (no matching pair), pending the same cable as up (only the color differed). Hosts now use one set (user decision): monitor-check (up), monitor-x (down), monitor-dot (pending) - IP Scanner status column, Ping Monitor hosts and the notification. Mixed up / down notifications keep network. cable is no longer used and removed from the imported icons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Scripts/Create-LucideIcons.ps1 | 4 ++-- Source/NETworkManager.Controls/LucideIcons.cs | 8 ++++++-- Source/NETworkManager/NotificationWindow.xaml.cs | 6 +++--- .../NETworkManager/Resources/Styles/RectangleStyles.xaml | 4 ++-- Source/NETworkManager/Views/PingMonitorView.xaml | 6 +++--- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/Scripts/Create-LucideIcons.ps1 b/Scripts/Create-LucideIcons.ps1 index 8a4d38b02a..393801cc36 100644 --- a/Scripts/Create-LucideIcons.ps1 +++ b/Scripts/Create-LucideIcons.ps1 @@ -23,7 +23,7 @@ $LicenseFilePath = Join-Path -Path $RepositoryRoot -ChildPath "Source/NETworkMan # 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", "cable", "calculator", "check", "check-check", "chevron-down", + "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", @@ -31,7 +31,7 @@ $Icons = @( "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-down", "network", "octagon-alert", "palette", + "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", diff --git a/Source/NETworkManager.Controls/LucideIcons.cs b/Source/NETworkManager.Controls/LucideIcons.cs index 0fb7710b0a..1bf8486e27 100644 --- a/Source/NETworkManager.Controls/LucideIcons.cs +++ b/Source/NETworkManager.Controls/LucideIcons.cs @@ -72,7 +72,6 @@ public enum LucideIconKind Box, BrickWallFire, Bug, - Cable, Calculator, Check, CheckCheck, @@ -137,7 +136,10 @@ public enum LucideIconKind Minimize, Minus, Monitor, + MonitorCheck, + MonitorDot, MonitorDown, + MonitorX, Network, OctagonAlert, Palette, @@ -212,7 +214,6 @@ internal static class LucideIconData [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.Cable] = ("F1 M17 19 a1 1 0 0 1 -1 -1 v-2 a2 2 0 0 1 2 -2 h2 a2 2 0 0 1 2 2 v2 a1 1 0 0 1 -1 1 z M17 21 v-2 M19 14 V6.5 a1 1 0 0 0 -7 0 v11 a1 1 0 0 1 -7 0 V10 M21 21 v-2 M3 5 V3 M4 10 a2 2 0 0 1 -2 -2 V6 a1 1 0 0 1 1 -1 h4 a1 1 0 0 1 1 1 v2 a2 2 0 0 1 -2 2 z M7 5 V3", 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), @@ -277,7 +278,10 @@ internal static class LucideIconData [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"), diff --git a/Source/NETworkManager/NotificationWindow.xaml.cs b/Source/NETworkManager/NotificationWindow.xaml.cs index 730c93840c..32332498fb 100644 --- a/Source/NETworkManager/NotificationWindow.xaml.cs +++ b/Source/NETworkManager/NotificationWindow.xaml.cs @@ -159,10 +159,10 @@ private static (LucideIconKind kind, Brush brush) GetStatusIcon(NotificationStat var kind = status switch { - NotificationStatus.Up => LucideIconKind.Cable, - NotificationStatus.Down => LucideIconKind.Unplug, + NotificationStatus.Up => LucideIconKind.MonitorCheck, + NotificationStatus.Down => LucideIconKind.MonitorX, NotificationStatus.UpAndDown => LucideIconKind.Network, - _ => LucideIconKind.Cable + _ => LucideIconKind.MonitorDot }; return (kind, brush); diff --git a/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml index 9124ce4764..a257ef05bc 100644 --- a/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml @@ -162,7 +162,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Success}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Cable}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=MonitorCheck}" /> </Setter.Value> </Setter> </Style> @@ -175,7 +175,7 @@ <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> <Setter Property="OpacityMask"> <Setter.Value> - <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Unplug}" /> + <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=MonitorX}" /> </Setter.Value> </Setter> </Style> diff --git a/Source/NETworkManager/Views/PingMonitorView.xaml b/Source/NETworkManager/Views/PingMonitorView.xaml index 41a11bc7e1..07717415d9 100644 --- a/Source/NETworkManager/Views/PingMonitorView.xaml +++ b/Source/NETworkManager/Views/PingMonitorView.xaml @@ -97,11 +97,11 @@ Visibility="{Binding IsErrorMessageDisplayed, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}"> <Rectangle.Resources> <VisualBrush x:Key="VisualConnected" Stretch="Uniform" - Visual="{icons:Lucide Kind=Cable}" /> + Visual="{icons:Lucide Kind=MonitorCheck}" /> <VisualBrush x:Key="VisualDisconnected" Stretch="Uniform" - Visual="{icons:Lucide Kind=Unplug}" /> + Visual="{icons:Lucide Kind=MonitorX}" /> <VisualBrush x:Key="VisualPending" Stretch="Uniform" - Visual="{icons:Lucide Kind=Cable}" /> + Visual="{icons:Lucide Kind=MonitorDot}" /> </Rectangle.Resources> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> From f577180a3ad00fab35ed5743ecc86d2531c7a59b Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:32:51 +0100 Subject: [PATCH 174/232] Design: brighter error red in dark themes (D9) The error color #b95353 was the same in both themes. With the thin Lucide lines, error icons on dark backgrounds (e.g. the validation of the run command) were hard to read, while the green and yellow are bright. Dark themes now use #e5605a (about as bright as the other status colors there), light themes keep #b95353. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 2 +- Source/NETworkManager.Settings/AppearanceManager.cs | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 0741201ef5..15363b87f4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -525,7 +525,7 @@ of local colors, sizes or templates; theme-dependent brushes always with `Dynami | `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` | readable per theme (darker in light themes) | status icons and texts, validation - never hard-code `#badc58` etc. | +| `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`). diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 941dc169d3..935be9032c 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -455,8 +455,9 @@ private static void ApplyDataGridBrushes(Theme theme, Color foreground) /// <summary> /// 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, the light ones are darker - /// to be readable on a white background (contrast ≥ 4:1). + /// 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). /// </summary> /// <param name="theme">Theme that was applied.</param> private static void ApplyStatusBrushes(Theme theme) @@ -467,7 +468,7 @@ private static void ApplyStatusBrushes(Theme theme) appResources[StatusSuccessBrushKey] = CreateFrozenBrush(isDark ? "#badc58" : "#558b16"); appResources[StatusWarningBrushKey] = CreateFrozenBrush(isDark ? "#f1b856" : "#b06d00"); - appResources[StatusErrorBrushKey] = CreateFrozenBrush("#b95353"); + appResources[StatusErrorBrushKey] = CreateFrozenBrush(isDark ? "#e5605a" : "#b95353"); } /// <summary> From 47db2d79fcc76753b47ebcd5e7ee335fbe734970 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:34:18 +0100 Subject: [PATCH 175/232] Design: plus, X, chevrons and arrows 1.25 times larger (D8) The MahApps icons were stretched to their outline, so a plus filled its 16 px rectangle. Lucide keeps the 24 box: the plus (14 units), X and chevrons (12 units) looked clearly smaller than before and than the other icons (about 20 units), e.g. the "+" to add a profile (user). LucideIcon draws these icons in a box of 19.2 units, so they look like 20 px in a 16 px rectangle (user decision: larger, not thicker). No layout changes, the Wi-Fi levels keep their positions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 3 ++- Source/NETworkManager.Controls/LucideIcon.cs | 27 +++++++++++++++++--- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 15363b87f4..5481bdc85a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -576,7 +576,8 @@ SemiBold (section headers), `MessageTextBlock` 16 gray (messages in empty areas) (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 of the context menu actions: +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 / diff --git a/Source/NETworkManager.Controls/LucideIcon.cs b/Source/NETworkManager.Controls/LucideIcon.cs index 8b0d60ffc3..1a164d26d0 100644 --- a/Source/NETworkManager.Controls/LucideIcon.cs +++ b/Source/NETworkManager.Controls/LucideIcon.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using System.Collections.Generic; using System.Windows; using System.Windows.Documents; using System.Windows.Markup; @@ -14,6 +15,7 @@ namespace NETworkManager.Controls; /// /// The whole 24 x 24 box is part of the drawing (transparent), so a <see cref="VisualBrush" /> with the icon (e.g. as /// opacity mask of a rectangle, see <see cref="LucideExtension" />) 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). /// </summary> public class LucideIcon : FrameworkElement { @@ -27,6 +29,20 @@ public class LucideIcon : FrameworkElement /// </summary> public const double DefaultStrokeThickness = 1.75; + /// <summary> + /// 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). + /// </summary> + private const double SmallIconBox = 19.2; + + private static readonly HashSet<LucideIconKind> 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<LucideIconKind, (Geometry Stroke, Geometry Fill)> Geometries = new(); public static readonly DependencyProperty KindProperty = DependencyProperty.Register(nameof(Kind), @@ -93,13 +109,16 @@ protected override void OnRender(DrawingContext drawingContext) if (size <= 0) return; - var scale = size / Size; + // 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, - (ActualHeight - size) / 2)); + 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(0, 0, Size, Size)); + drawingContext.DrawRectangle(Brushes.Transparent, null, new Rect(inset, inset, box, box)); var (stroke, fill) = GetGeometries(Kind); From fb5625c9b3563521a3fc6cdc700929cf389ea53c Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:40:39 +0100 Subject: [PATCH 176/232] Design: rounded admin notices and group boxes (D3) The "restart as administrator" notices below the lists (Firewall, Hosts File Editor, Neighbor Table, Network Interface, Discovery Protocol) and the group boxes (Network Interface configuration, profile dialog, Remote Desktop settings) still had square corners and the old Gray8 border. They use the card radius (8) like the boxes, the group boxes the surface border. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager/Resources/Styles/GroupBoxStyles.xaml | 3 ++- Source/NETworkManager/Views/DiscoveryProtocolView.xaml | 5 +++-- Source/NETworkManager/Views/FirewallView.xaml | 5 +++-- Source/NETworkManager/Views/HostsFileEditorView.xaml | 5 +++-- Source/NETworkManager/Views/NeighborTableView.xaml | 5 +++-- Source/NETworkManager/Views/NetworkInterfaceView.xaml | 5 +++-- 6 files changed, 17 insertions(+), 11 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/GroupBoxStyles.xaml b/Source/NETworkManager/Resources/Styles/GroupBoxStyles.xaml index 0c1e93c6de..12f813bdfe 100644 --- a/Source/NETworkManager/Resources/Styles/GroupBoxStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/GroupBoxStyles.xaml @@ -1,7 +1,7 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Style x:Key="WithoutHeaderGroupBox" TargetType="{x:Type GroupBox}"> - <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="BorderThickness" Value="1" /> <Setter Property="Template"> <Setter.Value> @@ -9,6 +9,7 @@ <Grid SnapsToDevicePixels="true"> <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" + CornerRadius="{StaticResource CornerRadius.Card}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> <ContentPresenter Cursor="{TemplateBinding Cursor}" ContentTemplate="{TemplateBinding ContentTemplate}" diff --git a/Source/NETworkManager/Views/DiscoveryProtocolView.xaml b/Source/NETworkManager/Views/DiscoveryProtocolView.xaml index 04c4661564..13c38e04f8 100644 --- a/Source/NETworkManager/Views/DiscoveryProtocolView.xaml +++ b/Source/NETworkManager/Views/DiscoveryProtocolView.xaml @@ -266,8 +266,9 @@ </StackPanel> <!-- Row 7: Admin note --> - <Grid Grid.Row="7" + <Border Grid.Row="7" Background="{DynamicResource MahApps.Brushes.Gray10}" + CornerRadius="{StaticResource CornerRadius.Card}" Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" Margin="0,10,0,0"> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" @@ -299,7 +300,7 @@ </Button.Content> </Button> </StackPanel> - </Grid> + </Border> </Grid> </Grid> </TabItem> diff --git a/Source/NETworkManager/Views/FirewallView.xaml b/Source/NETworkManager/Views/FirewallView.xaml index 14fa847d91..4045e068d8 100644 --- a/Source/NETworkManager/Views/FirewallView.xaml +++ b/Source/NETworkManager/Views/FirewallView.xaml @@ -821,8 +821,9 @@ </Grid> <!-- Row 7: Admin note --> - <Grid Grid.Row="7" + <Border Grid.Row="7" Background="{DynamicResource MahApps.Brushes.Gray10}" + CornerRadius="{StaticResource CornerRadius.Card}" Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" Margin="0,10,0,0"> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" @@ -854,7 +855,7 @@ </Button.Content> </Button> </StackPanel> - </Grid> + </Border> </Grid> </TabItem> </TabControl> diff --git a/Source/NETworkManager/Views/HostsFileEditorView.xaml b/Source/NETworkManager/Views/HostsFileEditorView.xaml index 45edbd990b..12708a88d3 100644 --- a/Source/NETworkManager/Views/HostsFileEditorView.xaml +++ b/Source/NETworkManager/Views/HostsFileEditorView.xaml @@ -369,8 +369,9 @@ </WrapPanel> </Grid> <!-- Row 7: Admin note --> - <Grid Grid.Column="0" Grid.Row="7" + <Border Grid.Column="0" Grid.Row="7" Background="{DynamicResource MahApps.Brushes.Gray10}" + CornerRadius="{StaticResource CornerRadius.Card}" Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" Margin="0,10,0,0"> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" @@ -402,7 +403,7 @@ </Button.Content> </Button> </StackPanel> - </Grid> + </Border> </Grid> </TabItem> </TabControl> diff --git a/Source/NETworkManager/Views/NeighborTableView.xaml b/Source/NETworkManager/Views/NeighborTableView.xaml index 91ef7b408a..18bd3d85c6 100644 --- a/Source/NETworkManager/Views/NeighborTableView.xaml +++ b/Source/NETworkManager/Views/NeighborTableView.xaml @@ -278,8 +278,9 @@ </WrapPanel> </Grid> <!-- Row 7: Admin note --> - <Grid Grid.Column="0" Grid.Row="7" + <Border Grid.Column="0" Grid.Row="7" Background="{DynamicResource MahApps.Brushes.Gray10}" + CornerRadius="{StaticResource CornerRadius.Card}" Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" Margin="0,10,0,0"> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" @@ -311,7 +312,7 @@ </Button.Content> </Button> </StackPanel> - </Grid> + </Border> </Grid> </TabItem> </TabControl> diff --git a/Source/NETworkManager/Views/NetworkInterfaceView.xaml b/Source/NETworkManager/Views/NetworkInterfaceView.xaml index 82f1c7e00f..35819bbbd8 100644 --- a/Source/NETworkManager/Views/NetworkInterfaceView.xaml +++ b/Source/NETworkManager/Views/NetworkInterfaceView.xaml @@ -1486,8 +1486,9 @@ </Button.Style> </Button> </Grid> - <Grid Grid.Row="5" + <Border Grid.Row="5" Background="{DynamicResource MahApps.Brushes.Gray10}" + CornerRadius="{StaticResource CornerRadius.Card}" Visibility="{Binding HasPermissionToConfigure, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" Margin="0,10,0,0"> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" @@ -1519,7 +1520,7 @@ </Button.Content> </Button> </StackPanel> - </Grid> + </Border> </Grid> </TabItem> </TabControl> From 6b21e257cc592290cb2f78beb08dd54567c16310 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:40:39 +0100 Subject: [PATCH 177/232] Design: label of the collapsed profile panel 14 like the navigation (D7) The vertical "Profiles" label was still 18 (old header size). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml index ea143dfce8..384d4a4067 100644 --- a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml @@ -216,7 +216,6 @@ TextOptions.TextFormattingMode="Display" Foreground="{TemplateBinding Property=Foreground}" Style="{StaticResource ResourceKey=DefaultTextBlock}" - FontSize="18" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Center"> From 55fd341b42859805d65a65bcff754f79df03fab7 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:40:39 +0100 Subject: [PATCH 178/232] Design: "not found" of the navigation and settings search like the other messages (D7) They used the header style in gray (16 SemiBold), the other messages in empty areas use MessageTextBlock (16 regular gray). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager/MainWindow.xaml | 6 ++---- Source/NETworkManager/Views/SettingsView.xaml | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index cc63480448..c8710e9edf 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -916,10 +916,8 @@ </Rectangle.Style> </Rectangle> </Button> - <TextBlock Grid.Row="1" Style="{StaticResource HeaderTextBlock}" - Foreground="{DynamicResource MahApps.Brushes.Gray3}" - Text="{x:Static localization:Strings.SearchedApplicationNotFound}" Margin="10,0" - TextWrapping="Wrap" TextAlignment="Center" /> + <TextBlock Grid.Row="1" Style="{StaticResource MessageTextBlock}" + Text="{x:Static localization:Strings.SearchedApplicationNotFound}" /> </Grid> <Border Grid.Row="2" BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" BorderThickness="0,1,0,0" Background="Transparent"> diff --git a/Source/NETworkManager/Views/SettingsView.xaml b/Source/NETworkManager/Views/SettingsView.xaml index 952251e5b7..67b8262b15 100644 --- a/Source/NETworkManager/Views/SettingsView.xaml +++ b/Source/NETworkManager/Views/SettingsView.xaml @@ -186,10 +186,8 @@ </Rectangle.Style> </Rectangle> </Button> - <TextBlock Grid.Row="1" Style="{StaticResource HeaderTextBlock}" - Foreground="{DynamicResource MahApps.Brushes.Gray3}" - Text="{x:Static localization:Strings.SearchedSettingNotFound}" Margin="10,0" - TextWrapping="Wrap" TextAlignment="Center" /> + <TextBlock Grid.Row="1" Style="{StaticResource MessageTextBlock}" + Text="{x:Static localization:Strings.SearchedSettingNotFound}" /> </Grid> </Grid> </Border> From 0f0ad98c603ab8c0f6f23711176f9a3db7de2fa4 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:43:46 +0100 Subject: [PATCH 179/232] Design: one color for all lines and surface borders (D9) Separators, tab / grid header / splitter lines, popups, tooltips, dialog and chart borders still used MahApps Gray8 (112 places), the boxes and cards Brushes.Surface.Border (foreground 10 %). They now all use Brushes.Surface.Border, also the submenus (set by AppearanceManager) and the chart separators (user decision: unify). Borders of inputs, check boxes and radio buttons keep Gray8 (more contrast for controls), as do the window glow, the tag background and the command line window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 2 +- .../ComboBoxPopupBehavior.cs | 2 +- .../AppearanceManager.cs | 3 ++ .../Controls/LiveChartsBandwidthTooltip.xaml | 2 +- .../Controls/LiveChartsPingTimeTooltip.xaml | 2 +- .../Controls/LiveChartsSpeedTestTooltip.xaml | 2 +- .../LiveChartsWiFiChannelTooltip.xaml | 2 +- .../Controls/TracerouteMapControl.xaml | 4 +-- Source/NETworkManager/MainWindow.xaml | 8 ++--- .../Resources/Styles/ChildWindowStyles.xaml | 4 +-- .../Resources/Styles/ContextMenuStyles.xaml | 3 +- .../Resources/Styles/DataGridStyles.xaml | 4 +-- .../Resources/Styles/DragablzStyles.xaml | 4 +-- .../Resources/Styles/ExpanderStyles.xaml | 2 +- .../Resources/Styles/GridSplitterStyles.xaml | 4 +-- .../Resources/Styles/TabControlStyles.xaml | 4 +-- .../Resources/Styles/ToolTipStyles.xaml | 2 +- .../Templates/ValidationErrorTemplates.xaml | 2 +- .../ViewModels/NetworkInterfaceViewModel.cs | 2 +- .../ViewModels/PingMonitorViewModel.cs | 2 +- .../ViewModels/WiFiViewModel.cs | 2 +- .../Views/Controls/ProfileExpanderPanel.xaml | 2 +- .../Views/CustomCommandChildWindow.xaml | 8 ++--- .../Views/DNSLookupHostView.xaml | 2 +- Source/NETworkManager/Views/FirewallView.xaml | 2 +- .../Views/GroupChildWindow.xaml | 26 +++++++-------- .../Views/IPGeolocationHostView.xaml | 2 +- .../Views/IPScannerHostView.xaml | 2 +- .../NETworkManager/Views/IPScannerView.xaml | 2 +- .../Views/ImportCsvFileChildWindow.xaml | 4 +-- .../ImportProfilesResultChildWindow.xaml | 2 +- .../Views/NetworkInterfaceView.xaml | 2 +- .../Views/PingMonitorHostView.xaml | 2 +- .../NETworkManager/Views/PingMonitorView.xaml | 2 +- .../Views/PortScannerHostView.xaml | 2 +- .../Views/PowerShellConnectChildWindow.xaml | 4 +-- .../Views/PowerShellHostView.xaml | 2 +- .../Views/PowerShellSettingsView.xaml | 4 +-- .../Views/ProfileChildWindow.xaml | 32 +++++++++---------- Source/NETworkManager/Views/ProfilesView.xaml | 4 +-- .../Views/PuTTYConnectChildWindow.xaml | 4 +-- .../NETworkManager/Views/PuTTYHostView.xaml | 2 +- .../Views/PuTTYSettingsView.xaml | 4 +-- Source/NETworkManager/Views/RDAPHostView.xaml | 2 +- .../Views/RemoteDesktopHostView.xaml | 2 +- .../Views/RunCommandChildWindow.xaml | 4 +-- Source/NETworkManager/Views/SNMPHostView.xaml | 2 +- .../Views/SettingsGeneralView.xaml | 2 +- Source/NETworkManager/Views/SettingsView.xaml | 2 +- .../Views/TigerVNCHostView.xaml | 2 +- .../Views/TracerouteHostView.xaml | 2 +- .../NETworkManager/Views/WakeOnLANView.xaml | 2 +- .../Views/WebConsoleHostView.xaml | 2 +- .../NETworkManager/Views/WhoisHostView.xaml | 2 +- 54 files changed, 102 insertions(+), 100 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 5481bdc85a..82d7696e10 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -520,7 +520,7 @@ of local colors, sizes or templates; theme-dependent brushes always with `Dynami |---|---|---| | `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 % | `ViewBox` / `CardBorder` border | +| `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 | diff --git a/Source/NETworkManager.Controls/ComboBoxPopupBehavior.cs b/Source/NETworkManager.Controls/ComboBoxPopupBehavior.cs index f3a838d34e..a58841bec0 100644 --- a/Source/NETworkManager.Controls/ComboBoxPopupBehavior.cs +++ b/Source/NETworkManager.Controls/ComboBoxPopupBehavior.cs @@ -93,7 +93,7 @@ private static void ComboBox_DropDownOpened(object sender, System.EventArgs e) popupBorder.CornerRadius = cornerRadius; popupBorder.Margin = shadowMargin; popupBorder.Padding = new Thickness(3); - popupBorder.SetResourceReference(Border.BorderBrushProperty, "MahApps.Brushes.Gray8"); + popupBorder.SetResourceReference(Border.BorderBrushProperty, "Brushes.Surface.Border"); // Small gap below the ComboBox (the popup of MahApps already allows transparency for the rounded corners) popup.VerticalOffset = 2; diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 935be9032c..4d267bffca 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -376,6 +376,9 @@ private static void ApplyControlStateBrushes(Theme theme) // 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); diff --git a/Source/NETworkManager/Controls/LiveChartsBandwidthTooltip.xaml b/Source/NETworkManager/Controls/LiveChartsBandwidthTooltip.xaml index e12f261a43..962c107e48 100644 --- a/Source/NETworkManager/Controls/LiveChartsBandwidthTooltip.xaml +++ b/Source/NETworkManager/Controls/LiveChartsBandwidthTooltip.xaml @@ -5,7 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"> <Border Background="{DynamicResource MahApps.Brushes.Window.Background}" - BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid Margin="10"> diff --git a/Source/NETworkManager/Controls/LiveChartsPingTimeTooltip.xaml b/Source/NETworkManager/Controls/LiveChartsPingTimeTooltip.xaml index 59a0c8db1a..4c23123c7f 100644 --- a/Source/NETworkManager/Controls/LiveChartsPingTimeTooltip.xaml +++ b/Source/NETworkManager/Controls/LiveChartsPingTimeTooltip.xaml @@ -5,7 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"> <Border Background="{DynamicResource MahApps.Brushes.Window.Background}" - BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid Margin="10"> diff --git a/Source/NETworkManager/Controls/LiveChartsSpeedTestTooltip.xaml b/Source/NETworkManager/Controls/LiveChartsSpeedTestTooltip.xaml index f691273e56..aa98e81942 100644 --- a/Source/NETworkManager/Controls/LiveChartsSpeedTestTooltip.xaml +++ b/Source/NETworkManager/Controls/LiveChartsSpeedTestTooltip.xaml @@ -5,7 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"> <Border Background="{DynamicResource MahApps.Brushes.Window.Background}" - BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> diff --git a/Source/NETworkManager/Controls/LiveChartsWiFiChannelTooltip.xaml b/Source/NETworkManager/Controls/LiveChartsWiFiChannelTooltip.xaml index c819bf01e9..ef828c968d 100644 --- a/Source/NETworkManager/Controls/LiveChartsWiFiChannelTooltip.xaml +++ b/Source/NETworkManager/Controls/LiveChartsWiFiChannelTooltip.xaml @@ -5,7 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"> <Border Background="{DynamicResource MahApps.Brushes.Window.Background}" - BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}" IsHitTestVisible="False"> diff --git a/Source/NETworkManager/Controls/TracerouteMapControl.xaml b/Source/NETworkManager/Controls/TracerouteMapControl.xaml index c5f3d1007b..2bab265836 100644 --- a/Source/NETworkManager/Controls/TracerouteMapControl.xaml +++ b/Source/NETworkManager/Controls/TracerouteMapControl.xaml @@ -56,7 +56,7 @@ <Path x:Name="CountriesPath" Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray10}" - Stroke="{DynamicResource ResourceKey=MahApps.Brushes.Gray8}" + Stroke="{DynamicResource Brushes.Surface.Border}" StrokeThickness="0.5" /> <!-- @@ -99,7 +99,7 @@ --> <Border x:Name="InfoPanel" Background="{DynamicResource ResourceKey=MahApps.Brushes.Window.Background}" - BorderBrush="{DynamicResource ResourceKey=MahApps.Brushes.Gray8}" + BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" Padding="8,6" Margin="10" diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index c8710e9edf..f6560c7c95 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -397,7 +397,7 @@ </Style.Triggers> </Style> </Grid.Style> - <Border Grid.Row="0" BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border Grid.Row="0" BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="0,0,0,1" Background="Transparent"> <Grid> <Grid.ColumnDefinitions> @@ -649,7 +649,7 @@ <Border x:Name="border" CornerRadius="{StaticResource CornerRadius.Control}" BorderThickness="1" - BorderBrush="{DynamicResource ResourceKey=MahApps.Brushes.Gray8}" + BorderBrush="{DynamicResource Brushes.Surface.Border}" Background="{DynamicResource ResourceKey=MahApps.Brushes.Window.Background}"> <TextBlock Text="{TemplateBinding Content}" VerticalAlignment="Center" @@ -919,7 +919,7 @@ <TextBlock Grid.Row="1" Style="{StaticResource MessageTextBlock}" Text="{x:Static localization:Strings.SearchedApplicationNotFound}" /> </Grid> - <Border Grid.Row="2" BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border Grid.Row="2" BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="0,1,0,0" Background="Transparent"> <Button Height="48" HorizontalContentAlignment="Stretch" Command="{Binding OpenSettingsCommand}"> @@ -1083,7 +1083,7 @@ <RowDefinition Height="49" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> - <Border Grid.Row="0" BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" BorderThickness="0,0,0,1"> + <Border Grid.Row="0" BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="0,0,0,1"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> diff --git a/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml b/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml index 5bbc5c0d51..5d56172967 100644 --- a/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml @@ -250,8 +250,8 @@ <!-- Rounded with a thin border and a shadow --> <Setter Property="CornerRadius" Value="{StaticResource CornerRadius.Overlay}" /> <Setter Property="BorderThickness" Value="1" /> - <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> - <Setter Property="NonActiveBorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> + <Setter Property="NonActiveBorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="EnableDropShadow" Value="True" /> <!-- Dims the window behind the dialog (same in light and dark theme) --> <Setter Property="OverlayBrush" Value="{StaticResource Brushes.Overlay}" /> diff --git a/Source/NETworkManager/Resources/Styles/ContextMenuStyles.xaml b/Source/NETworkManager/Resources/Styles/ContextMenuStyles.xaml index e2d23db83b..752240eb25 100644 --- a/Source/NETworkManager/Resources/Styles/ContextMenuStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ContextMenuStyles.xaml @@ -3,7 +3,7 @@ <Style x:Key="DefaultContextMenu" TargetType="{x:Type ContextMenu}" BasedOn="{StaticResource MahApps.Styles.ContextMenu}"> <Setter Property="FontSize" Value="14" /> - <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> <!-- Template of MahApps (MahApps.Styles.ContextMenu, 2.4.11) with rounded corners (also the shadow). Radius of the controls: the items fill the menu, the square highlight of the first / last item would stick out of a larger radius. --> @@ -44,7 +44,6 @@ </Setter.Value> </Setter> <Style.Resources> - <SolidColorBrush x:Key="MahApps.Brushes.SubMenu.Border" Color="{DynamicResource MahApps.Colors.Gray8}" /> <SolidColorBrush x:Key="MahApps.Brushes.RightArrowFill" Color="{DynamicResource MahApps.Colors.Gray3}" /> <!-- Checkmark of a checkable menu item (accent color by default), like the icons of the menu items --> <SolidColorBrush x:Key="MahApps.Brushes.CheckmarkFill" Color="{DynamicResource MahApps.Colors.Gray3}" /> diff --git a/Source/NETworkManager/Resources/Styles/DataGridStyles.xaml b/Source/NETworkManager/Resources/Styles/DataGridStyles.xaml index 5357282d21..057d6685ff 100644 --- a/Source/NETworkManager/Resources/Styles/DataGridStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/DataGridStyles.xaml @@ -45,7 +45,7 @@ <!-- Overwrite style from here to adjust the color of the gripper: https://github.com/MahApps/MahApps.Metro/blob/df8a3eb689caa921b936c4aeba15f5fe2bb57163/src/MahApps.Metro/Styles/Controls.DataGrid.xaml#L217 --> <Style x:Key="DefaultColumnHeaderGripper" TargetType="{x:Type Thumb}" BasedOn="{StaticResource MahApps.Styles.Thumb.ColumnHeaderGripper}"> - <Setter Property="Background" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="Background" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="Cursor" Value="SizeWE" /> <Setter Property="SnapsToDevicePixels" Value="True" /> <Setter Property="Template"> @@ -67,7 +67,7 @@ <Setter Property="mah:ControlsHelper.ContentCharacterCasing" Value="Normal" /> <Setter Property="FontWeight" Value="SemiBold" /> <Setter Property="BorderThickness" Value="0,0,0,1" /> - <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> <!-- Overwrite style from here to adjust the color of the gripper: https://github.com/MahApps/MahApps.Metro/blob/df8a3eb689caa921b936c4aeba15f5fe2bb57163/src/MahApps.Metro/Styles/Controls.DataGrid.xaml#L248 --> <Setter Property="Template"> <Setter.Value> diff --git a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml index 50376a56b0..27de66f764 100644 --- a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml @@ -40,7 +40,7 @@ the page. --> <Style x:Key="DragablzTabHeaderBorder" TargetType="{x:Type Border}"> - <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="BorderThickness" Value="0,0,1,0" /> <Setter Property="Background" Value="Transparent" /> <Style.Triggers> @@ -143,7 +143,7 @@ <Style x:Key="DefaultTabablzControl" TargetType="{x:Type dragablz:TabablzControl}" BasedOn="{StaticResource MahAppsTabablzControlStyle}"> <Setter Property="BorderThickness" Value="0,1,0,0" /> - <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="ItemContainerStyle" Value="{StaticResource CustomHeaderItemTemplate}" /> <Setter Property="AdjacentHeaderItemOffset" Value="0" /> <Setter Property="Margin" Value="0,-2,0,0" /> diff --git a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml index 384d4a4067..fb1cfb2f42 100644 --- a/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ExpanderStyles.xaml @@ -92,7 +92,7 @@ BasedOn="{StaticResource ResourceKey=ExpanderDownHeader}" TargetType="{x:Type TypeName=ToggleButton}"> <Setter Property="BorderThickness" Value="0,0,0,1" /> - <Setter Property="BorderBrush" Value="{DynamicResource ResourceKey=MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="Padding" Value="0,0,0,6" /> </Style> diff --git a/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml b/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml index 3514222800..e7f2b95fb0 100644 --- a/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/GridSplitterStyles.xaml @@ -34,7 +34,7 @@ <Setter Property="BorderThickness" Value="3" /> <Setter Property="BorderBrush" Value="Transparent" /> <Setter Property="Panel.ZIndex" Value="1" /> - <Setter Property="Background" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="Background" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="ShowsPreview" Value="True" /> <Setter Property="PreviewStyle" Value="{StaticResource GridSplitterPreviewStyle}" /> <Setter Property="HorizontalAlignment" Value="Stretch" /> @@ -90,7 +90,7 @@ <Setter Property="BorderThickness" Value="3" /> <Setter Property="BorderBrush" Value="Transparent" /> <Setter Property="Panel.ZIndex" Value="1" /> - <Setter Property="Background" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="Background" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="ShowsPreview" Value="True" /> <Setter Property="PreviewStyle" Value="{StaticResource GridSplitterPreviewStyle}" /> <Setter Property="HorizontalAlignment" Value="Stretch" /> diff --git a/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml b/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml index 8f1a619b80..a99d7238ad 100644 --- a/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TabControlStyles.xaml @@ -4,7 +4,7 @@ <Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Gray3}" /> <Setter Property="Background" Value="Transparent" /> <!-- Separator on the right, like the tabs of the tools --> - <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="BorderThickness" Value="0,0,1,0" /> <!-- 35: the line below is at the same height as the one of the tabs of the tools (Dragablz: header 36, the content border overlaps it by 1) and of the header of the navigation (36 + line, no box border) --> @@ -62,7 +62,7 @@ <Style x:Key="DefaultTabControl" TargetType="{x:Type TabControl}"> <Setter Property="Background" Value="Transparent" /> <Setter Property="BorderThickness" Value="0,1,0,0" /> - <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="ItemContainerStyle" Value="{StaticResource DefaultTabItem}" /> <Setter Property="Template"> <Setter.Value> diff --git a/Source/NETworkManager/Resources/Styles/ToolTipStyles.xaml b/Source/NETworkManager/Resources/Styles/ToolTipStyles.xaml index 2c211b1fd3..1ed63db71f 100644 --- a/Source/NETworkManager/Resources/Styles/ToolTipStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ToolTipStyles.xaml @@ -4,7 +4,7 @@ <Style x:Key="DefaultToolTip" TargetType="{x:Type TypeName=ToolTip}" BasedOn="{StaticResource ResourceKey=MahApps.Styles.ToolTip}"> <Setter Property="FontSize" Value="14" /> - <Setter Property="BorderBrush" Value="{DynamicResource ResourceKey=MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="Foreground" Value="{DynamicResource ResourceKey=MahApps.Brushes.Text}" /> <Setter Property="Background" Value="{DynamicResource ResourceKey=MahApps.Brushes.Window.Background}" /> <!-- Template of MahApps (MahApps.Styles.ToolTip, 2.4.11) with rounded corners and a shorter fade (open 120 ms, diff --git a/Source/NETworkManager/Resources/Templates/ValidationErrorTemplates.xaml b/Source/NETworkManager/Resources/Templates/ValidationErrorTemplates.xaml index 17ec303dca..6320c55513 100644 --- a/Source/NETworkManager/Resources/Templates/ValidationErrorTemplates.xaml +++ b/Source/NETworkManager/Resources/Templates/ValidationErrorTemplates.xaml @@ -45,7 +45,7 @@ </Popup.Style> <StackPanel> <Border MaxWidth="300" Background="{DynamicResource MahApps.Brushes.Window.Background}" - BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" BorderThickness="1" Padding="5" + BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" Padding="5" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> diff --git a/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs b/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs index 734366d39d..b5efb6d18a 100644 --- a/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs +++ b/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs @@ -565,7 +565,7 @@ private void InitialBandwidthChart() ? new SKColor(gray5.Color.R, gray5.Color.G, gray5.Color.B, gray5.Color.A) : new SKColor(0x68, 0x68, 0x68); - var separatorColor = Application.Current?.TryFindResource("MahApps.Brushes.Gray8") is System.Windows.Media.SolidColorBrush gray8 + var separatorColor = Application.Current?.TryFindResource("Brushes.Surface.Border") is System.Windows.Media.SolidColorBrush gray8 ? new SKColor(gray8.Color.R, gray8.Color.G, gray8.Color.B, gray8.Color.A) : new SKColor(0x80, 0x80, 0x80); diff --git a/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs b/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs index fee96d425c..3fb6008fa2 100644 --- a/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs +++ b/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs @@ -311,7 +311,7 @@ private void InitialTimeChart() ? new SKColor(gray5.Color.R, gray5.Color.G, gray5.Color.B, gray5.Color.A) : new SKColor(0x68, 0x68, 0x68); - var separatorColor = Application.Current?.TryFindResource("MahApps.Brushes.Gray8") is System.Windows.Media.SolidColorBrush gray8 + var separatorColor = Application.Current?.TryFindResource("Brushes.Surface.Border") is System.Windows.Media.SolidColorBrush gray8 ? new SKColor(gray8.Color.R, gray8.Color.G, gray8.Color.B, gray8.Color.A) : new SKColor(0x80, 0x80, 0x80); diff --git a/Source/NETworkManager/ViewModels/WiFiViewModel.cs b/Source/NETworkManager/ViewModels/WiFiViewModel.cs index f16574ede8..1801f1b6b7 100644 --- a/Source/NETworkManager/ViewModels/WiFiViewModel.cs +++ b/Source/NETworkManager/ViewModels/WiFiViewModel.cs @@ -1012,7 +1012,7 @@ private void InitializeCharts() ? new SKColor(gray5.Color.R, gray5.Color.G, gray5.Color.B, gray5.Color.A) : new SKColor(0x68, 0x68, 0x68); - var separatorColor = Application.Current?.TryFindResource("MahApps.Brushes.Gray8") is SolidColorBrush gray8 + var separatorColor = Application.Current?.TryFindResource("Brushes.Surface.Border") is SolidColorBrush gray8 ? new SKColor(gray8.Color.R, gray8.Color.G, gray8.Color.B, gray8.Color.A) : new SKColor(0x80, 0x80, 0x80); diff --git a/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml b/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml index fc1b1531cd..589470a610 100644 --- a/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml +++ b/Source/NETworkManager/Views/Controls/ProfileExpanderPanel.xaml @@ -143,7 +143,7 @@ Closed="PopupProfileFilter_Closed" Width="220"> <Border Background="{DynamicResource MahApps.Brushes.Window.Background}" - BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Overlay}"> <Grid Margin="10"> diff --git a/Source/NETworkManager/Views/CustomCommandChildWindow.xaml b/Source/NETworkManager/Views/CustomCommandChildWindow.xaml index 0e7db320d9..0a2f3e7551 100644 --- a/Source/NETworkManager/Views/CustomCommandChildWindow.xaml +++ b/Source/NETworkManager/Views/CustomCommandChildWindow.xaml @@ -94,7 +94,7 @@ <TextBlock Text="{x:Static localization:Strings.HelpMessage_CustomCommandFilePath}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -120,7 +120,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static localization:Strings.Description}" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Placeholders --> <TextBlock Grid.Row="2" Grid.Column="0" Text="{}{{IPAddress}}" /> @@ -150,7 +150,7 @@ <TextBlock Text="{x:Static localization:Strings.HelpMessage_CustomCommandArguments}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -176,7 +176,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static localization:Strings.Description}" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Placeholders --> <TextBlock Grid.Row="2" Grid.Column="0" Text="{}{{IPAddress}}" /> diff --git a/Source/NETworkManager/Views/DNSLookupHostView.xaml b/Source/NETworkManager/Views/DNSLookupHostView.xaml index c1dfa4d37f..776ffbf93d 100644 --- a/Source/NETworkManager/Views/DNSLookupHostView.xaml +++ b/Source/NETworkManager/Views/DNSLookupHostView.xaml @@ -32,7 +32,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding DNSLookup_Host}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/FirewallView.xaml b/Source/NETworkManager/Views/FirewallView.xaml index 4045e068d8..fd33dadd67 100644 --- a/Source/NETworkManager/Views/FirewallView.xaml +++ b/Source/NETworkManager/Views/FirewallView.xaml @@ -627,7 +627,7 @@ <Style TargetType="{x:Type Border}"> <Style.Triggers> <DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=DataGridRow}}" Value="False"> - <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> </DataTrigger> </Style.Triggers> </Style> diff --git a/Source/NETworkManager/Views/GroupChildWindow.xaml b/Source/NETworkManager/Views/GroupChildWindow.xaml index 320cbb5c44..dce5b832d5 100644 --- a/Source/NETworkManager/Views/GroupChildWindow.xaml +++ b/Source/NETworkManager/Views/GroupChildWindow.xaml @@ -47,7 +47,7 @@ <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> - <Border BorderThickness="0,0,1,0" BorderBrush="{DynamicResource MahApps.Brushes.Gray8}"> + <Border BorderThickness="0,0,1,0" BorderBrush="{DynamicResource Brushes.Surface.Border}"> <ScrollViewer ManipulationBoundaryFeedback="ScrollViewer_ManipulationBoundaryFeedback" Margin="0,0,10,0"> <ListBox x:Name="ListBoxViews" ItemsSource="{Binding GroupViews}" Margin="0,0,10,0"> @@ -601,7 +601,7 @@ instead of the ones of the settings --> <TextBlock Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,10,0,10" /> + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10,0,10" /> <TextBlock Text="{x:Static localization:Strings.SNMP}" Style="{StaticResource CenterTextBlock}" Margin="0,0,0,10" /> <internalControls:SNMPCredentialsControl DataContext="{Binding IPScanner_SNMP}" /> @@ -637,7 +637,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0" /> <Separator Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="4" Content="{x:Static localization:Strings.Ports}" IsChecked="{Binding PortScanner_OverridePorts}" Style="{StaticResource DefaultCheckBox}" /> @@ -690,7 +690,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0" /> <Separator Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <!-- DNS server of the group instead of the one selected in DNS Lookup: DNS servers (by name) and history, like the DNS server input of DNS Lookup --> <CheckBox Grid.Column="0" Grid.Row="4" @@ -818,7 +818,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0,10,0,0" /> <Separator Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="8" VerticalAlignment="Top" Content="{x:Static localization:Strings.Display}" IsChecked="{Binding RemoteDesktop_OverrideDisplay}" @@ -1433,7 +1433,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0" /> <Separator Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="4" Content="{x:Static localization:Strings.Command}" IsChecked="{Binding PowerShell_OverrideCommand}" @@ -1458,7 +1458,7 @@ <TextBlock Text="{x:Static localization:Strings.HelpMessage_ProfileHostPlaceholder}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -1483,7 +1483,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static localization:Strings.Description}" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Placeholder --> <TextBlock Grid.Row="2" Grid.Column="0" Text="{}{{Host}}" /> @@ -1546,7 +1546,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0" /> <Separator Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="4" Content="{x:Static localization:Strings.Username}" IsChecked="{Binding PuTTY_OverrideUsername}" @@ -1672,7 +1672,7 @@ <TextBlock Text="{x:Static localization:Strings.HelpMessage_ProfileHostPlaceholder}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -1697,7 +1697,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static localization:Strings.Description}" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Placeholder --> <TextBlock Grid.Row="2" Grid.Column="0" Text="{}{{Host}}" /> @@ -1738,7 +1738,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0" /> <Separator Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="4" Content="{x:Static localization:Strings.Port}" IsChecked="{Binding TigerVNC_OverridePort}" Style="{StaticResource DefaultCheckBox}" /> @@ -1788,7 +1788,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0" /> <Separator Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="4" Content="{x:Static localization:Strings.OID}" IsChecked="{Binding SNMP_OverrideOIDAndMode}" Style="{StaticResource DefaultCheckBox}" /> diff --git a/Source/NETworkManager/Views/IPGeolocationHostView.xaml b/Source/NETworkManager/Views/IPGeolocationHostView.xaml index 41f3d5b4eb..676d03c947 100644 --- a/Source/NETworkManager/Views/IPGeolocationHostView.xaml +++ b/Source/NETworkManager/Views/IPGeolocationHostView.xaml @@ -31,7 +31,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding IPGeolocation_Host}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/IPScannerHostView.xaml b/Source/NETworkManager/Views/IPScannerHostView.xaml index 55e0485e25..04f15f1be6 100644 --- a/Source/NETworkManager/Views/IPScannerHostView.xaml +++ b/Source/NETworkManager/Views/IPScannerHostView.xaml @@ -31,7 +31,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding IPScanner_HostOrIPRange}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/IPScannerView.xaml b/Source/NETworkManager/Views/IPScannerView.xaml index 31a5c70fca..d9486c45ce 100644 --- a/Source/NETworkManager/Views/IPScannerView.xaml +++ b/Source/NETworkManager/Views/IPScannerView.xaml @@ -1398,7 +1398,7 @@ <DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=DataGridRow}}" Value="False"> - <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> </DataTrigger> </Style.Triggers> </Style> diff --git a/Source/NETworkManager/Views/ImportCsvFileChildWindow.xaml b/Source/NETworkManager/Views/ImportCsvFileChildWindow.xaml index 1908082add..ae6229e36f 100644 --- a/Source/NETworkManager/Views/ImportCsvFileChildWindow.xaml +++ b/Source/NETworkManager/Views/ImportCsvFileChildWindow.xaml @@ -63,7 +63,7 @@ <TextBlock Text="{x:Static localization:Strings.CsvImportFormatHint}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -89,7 +89,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="Host" FontWeight="Bold" /> <TextBlock Grid.Row="0" Grid.Column="2" Text="Description" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Example rows --> <TextBlock Grid.Row="2" Grid.Column="0" Text="Webserver" /> diff --git a/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml b/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml index 200c5c31bb..ff06f00413 100644 --- a/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml +++ b/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml @@ -166,7 +166,7 @@ <!-- Vertical separator --> <Rectangle Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" - Fill="{DynamicResource ResourceKey=MahApps.Brushes.Gray8}" + Fill="{DynamicResource Brushes.Surface.Border}" Width="1" /> <!-- Right header --> diff --git a/Source/NETworkManager/Views/NetworkInterfaceView.xaml b/Source/NETworkManager/Views/NetworkInterfaceView.xaml index 35819bbbd8..3ffa4ed16c 100644 --- a/Source/NETworkManager/Views/NetworkInterfaceView.xaml +++ b/Source/NETworkManager/Views/NetworkInterfaceView.xaml @@ -51,7 +51,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding Host}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" diff --git a/Source/NETworkManager/Views/PingMonitorHostView.xaml b/Source/NETworkManager/Views/PingMonitorHostView.xaml index 61884c8c92..b632eb9ba5 100644 --- a/Source/NETworkManager/Views/PingMonitorHostView.xaml +++ b/Source/NETworkManager/Views/PingMonitorHostView.xaml @@ -38,7 +38,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding PingMonitor_Host}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/PingMonitorView.xaml b/Source/NETworkManager/Views/PingMonitorView.xaml index 07717415d9..a8263995f7 100644 --- a/Source/NETworkManager/Views/PingMonitorView.xaml +++ b/Source/NETworkManager/Views/PingMonitorView.xaml @@ -17,7 +17,7 @@ <Expander Style="{StaticResource PingMonitorExpander}" IsExpanded="{Binding ExpandHostView}" BorderThickness="1,1,1,1" - BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + BorderBrush="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10"> <Expander.ContextMenu> <ContextMenu Style="{StaticResource DefaultContextMenu}" MinWidth="150"> diff --git a/Source/NETworkManager/Views/PortScannerHostView.xaml b/Source/NETworkManager/Views/PortScannerHostView.xaml index 43c7d07556..e020aa4169 100644 --- a/Source/NETworkManager/Views/PortScannerHostView.xaml +++ b/Source/NETworkManager/Views/PortScannerHostView.xaml @@ -40,7 +40,7 @@ </MultiBinding> </TextBlock.Text> </TextBlock> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml b/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml index bdfb0338bd..87c3e8afde 100644 --- a/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml +++ b/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml @@ -90,7 +90,7 @@ <TextBlock Text="{x:Static localization:Strings.HelpMessage_ProfileHostPlaceholder}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -115,7 +115,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static localization:Strings.Description}" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Placeholder --> <TextBlock Grid.Row="2" Grid.Column="0" Text="{}{{Host}}" /> diff --git a/Source/NETworkManager/Views/PowerShellHostView.xaml b/Source/NETworkManager/Views/PowerShellHostView.xaml index 559fbf4d28..52b5a19270 100644 --- a/Source/NETworkManager/Views/PowerShellHostView.xaml +++ b/Source/NETworkManager/Views/PowerShellHostView.xaml @@ -34,7 +34,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding PowerShell_Host}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" diff --git a/Source/NETworkManager/Views/PowerShellSettingsView.xaml b/Source/NETworkManager/Views/PowerShellSettingsView.xaml index a69e257938..59c7243f51 100644 --- a/Source/NETworkManager/Views/PowerShellSettingsView.xaml +++ b/Source/NETworkManager/Views/PowerShellSettingsView.xaml @@ -59,7 +59,7 @@ <TextBlock Text="{x:Static localization:Strings.HelpMessage_ProfileHostPlaceholder}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -84,7 +84,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static localization:Strings.Description}" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Placeholder --> <TextBlock Grid.Row="2" Grid.Column="0" Text="{}{{Host}}" /> diff --git a/Source/NETworkManager/Views/ProfileChildWindow.xaml b/Source/NETworkManager/Views/ProfileChildWindow.xaml index 7b1d36d148..f4b29749c8 100644 --- a/Source/NETworkManager/Views/ProfileChildWindow.xaml +++ b/Source/NETworkManager/Views/ProfileChildWindow.xaml @@ -59,7 +59,7 @@ <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> - <Border BorderThickness="0,0,1,0" BorderBrush="{DynamicResource MahApps.Brushes.Gray8}"> + <Border BorderThickness="0,0,1,0" BorderBrush="{DynamicResource Brushes.Surface.Border}"> <ScrollViewer ManipulationBoundaryFeedback="ScrollViewer_ManipulationBoundaryFeedback" Margin="0,0,10,0"> <ListBox x:Name="ListBoxViews" ItemsSource="{Binding ProfileViews}" Margin="0,0,10,0"> @@ -1401,7 +1401,7 @@ <DataTemplate> <Border Margin="0,5,10,5" Padding="5" BorderThickness="1" - BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + BorderBrush="{DynamicResource Brushes.Surface.Border}" CornerRadius="{StaticResource CornerRadius.Control}"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding .}" @@ -1637,7 +1637,7 @@ <!-- SNMP version and credentials instead of the ones of the group / the settings --> <TextBlock Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0,20,0,0" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <TextBlock Text="{x:Static localization:Strings.SNMP}" Style="{StaticResource CenterTextBlock}" Margin="0,0,0,10" /> <internalControls:SNMPCredentialsControl DataContext="{Binding IPScanner_SNMP}" /> @@ -1716,7 +1716,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0,10,0,0" /> <Separator Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="8" Content="{x:Static localization:Strings.Ports}" IsChecked="{Binding PortScanner_OverridePorts}" Style="{StaticResource DefaultCheckBox}" /> @@ -1934,7 +1934,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0,10,0,0" /> <Separator Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <!-- DNS server of the profile instead of the one of the group or selected in DNS Lookup: DNS servers (by name) and history, like the DNS server input of DNS Lookup --> <CheckBox Grid.Column="0" Grid.Row="8" @@ -2123,7 +2123,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0,10,0,0" /> <Separator Grid.Column="0" Grid.Row="10" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="12" VerticalAlignment="Top" Content="{x:Static localization:Strings.Display}" IsChecked="{Binding RemoteDesktop_OverrideDisplay}" @@ -2799,7 +2799,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0,10,0,0" /> <Separator Grid.Column="0" Grid.Row="8" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="10" Content="{x:Static localization:Strings.Command}" IsChecked="{Binding PowerShell_OverrideCommand}" @@ -2838,7 +2838,7 @@ <TextBlock Text="{x:Static localization:Strings.HelpMessage_ProfileHostPlaceholder}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -2863,7 +2863,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static localization:Strings.Description}" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Placeholder --> <TextBlock Grid.Row="2" Grid.Column="0" Text="{}{{Host}}" /> @@ -3026,7 +3026,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0,10,0,0" /> <Separator Grid.Column="0" Grid.Row="8" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="10" IsChecked="{Binding PuTTY_OverridePortOrBaud}"> <CheckBox.Style> @@ -3208,7 +3208,7 @@ <TextBlock Text="{x:Static localization:Strings.HelpMessage_ProfileHostPlaceholder}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -3233,7 +3233,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static localization:Strings.Description}" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Placeholder --> <TextBlock Grid.Row="2" Grid.Column="0" Text="{}{{Host}}" /> @@ -3316,7 +3316,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0,10,0,0" /> <Separator Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="8" Content="{x:Static localization:Strings.Port}" IsChecked="{Binding TigerVNC_OverridePort}" Style="{StaticResource DefaultCheckBox}" /> @@ -3375,7 +3375,7 @@ <TextBlock Text="{x:Static localization:Strings.HelpMessage_ProfileHostPlaceholder}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -3400,7 +3400,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static localization:Strings.Description}" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Placeholder --> <TextBlock Grid.Row="2" Grid.Column="0" Text="{}{{Host}}" /> @@ -3487,7 +3487,7 @@ Text="{x:Static localization:Strings.OverrideDefaultSettings}" Style="{StaticResource HeaderTextBlock}" Margin="0,10,0,0" /> <Separator Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="4" - Background="{DynamicResource MahApps.Brushes.Gray8}" Margin="0,0,0,10" /> + Background="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" /> <CheckBox Grid.Column="0" Grid.Row="8" Content="{x:Static localization:Strings.OID}" IsChecked="{Binding SNMP_OverrideOIDAndMode}" Style="{StaticResource DefaultCheckBox}" /> diff --git a/Source/NETworkManager/Views/ProfilesView.xaml b/Source/NETworkManager/Views/ProfilesView.xaml index e83390b75a..75069be61d 100644 --- a/Source/NETworkManager/Views/ProfilesView.xaml +++ b/Source/NETworkManager/Views/ProfilesView.xaml @@ -28,7 +28,7 @@ <ColumnDefinition Width="250" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> - <Border Grid.Column="0" Grid.Row="0" BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border Grid.Column="0" Grid.Row="0" BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="0,0,1,0"> <Grid Margin="10"> <Grid.RowDefinitions> @@ -227,7 +227,7 @@ IsOpen="{Binding ProfileFilterIsOpen}" Width="220"> <Border Background="{DynamicResource MahApps.Brushes.Window.Background}" - BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Overlay}"> <Grid Margin="10"> diff --git a/Source/NETworkManager/Views/PuTTYConnectChildWindow.xaml b/Source/NETworkManager/Views/PuTTYConnectChildWindow.xaml index 962ecf378c..a10a57295d 100644 --- a/Source/NETworkManager/Views/PuTTYConnectChildWindow.xaml +++ b/Source/NETworkManager/Views/PuTTYConnectChildWindow.xaml @@ -222,7 +222,7 @@ <TextBlock Text="{x:Static localization:Strings.HelpMessage_ProfileHostPlaceholder}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -247,7 +247,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static localization:Strings.Description}" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Placeholder --> <TextBlock Grid.Row="2" Grid.Column="0" Text="{}{{Host}}" /> diff --git a/Source/NETworkManager/Views/PuTTYHostView.xaml b/Source/NETworkManager/Views/PuTTYHostView.xaml index 212a155ba1..d5c6d9200d 100644 --- a/Source/NETworkManager/Views/PuTTYHostView.xaml +++ b/Source/NETworkManager/Views/PuTTYHostView.xaml @@ -34,7 +34,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding PuTTY_HostOrSerialLine}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/PuTTYSettingsView.xaml b/Source/NETworkManager/Views/PuTTYSettingsView.xaml index 4b48678c66..bdb995b109 100644 --- a/Source/NETworkManager/Views/PuTTYSettingsView.xaml +++ b/Source/NETworkManager/Views/PuTTYSettingsView.xaml @@ -161,7 +161,7 @@ <TextBlock Text="{x:Static localization:Strings.HelpMessage_ProfileHostPlaceholder}" Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" Margin="0,0,0,8" /> - <Border BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius.Control}"> <Grid> <Grid.ColumnDefinitions> @@ -186,7 +186,7 @@ <TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static localization:Strings.Description}" FontWeight="Bold" /> <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Height="1" - Fill="{DynamicResource MahApps.Brushes.Gray8}" /> + Fill="{DynamicResource Brushes.Surface.Border}" /> <!-- Placeholder --> <TextBlock Grid.Row="2" Grid.Column="0" Text="{}{{Host}}" /> diff --git a/Source/NETworkManager/Views/RDAPHostView.xaml b/Source/NETworkManager/Views/RDAPHostView.xaml index fa905d8a2a..5979807555 100644 --- a/Source/NETworkManager/Views/RDAPHostView.xaml +++ b/Source/NETworkManager/Views/RDAPHostView.xaml @@ -31,7 +31,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding RDAP_Query}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/RemoteDesktopHostView.xaml b/Source/NETworkManager/Views/RemoteDesktopHostView.xaml index cc0c5494ce..ffe71ed7c3 100644 --- a/Source/NETworkManager/Views/RemoteDesktopHostView.xaml +++ b/Source/NETworkManager/Views/RemoteDesktopHostView.xaml @@ -33,7 +33,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding RemoteDesktop_Host}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/RunCommandChildWindow.xaml b/Source/NETworkManager/Views/RunCommandChildWindow.xaml index 4c1a41271a..d807d5c222 100644 --- a/Source/NETworkManager/Views/RunCommandChildWindow.xaml +++ b/Source/NETworkManager/Views/RunCommandChildWindow.xaml @@ -44,7 +44,7 @@ Visual="{icons:Lucide Kind=List}" /> <!-- Key of the key hints (e.g. "Enter") --> <Style x:Key="RunCommandKeyBorder" TargetType="{x:Type Border}"> - <Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray8}" /> + <Setter Property="BorderBrush" Value="{DynamicResource Brushes.Surface.Border}" /> <Setter Property="BorderThickness" Value="1" /> <Setter Property="CornerRadius" Value="{StaticResource CornerRadius.Control}" /> <Setter Property="Padding" Value="4,0" /> @@ -76,7 +76,7 @@ <!-- Input: icon of the recognized command, input and validation --> <!-- Bottom border like the search (gray, also with the focus) --> <Border Grid.Row="0" BorderThickness="0,0,0,1" Padding="0,0,0,2" - BorderBrush="{DynamicResource MahApps.Brushes.Gray8}"> + BorderBrush="{DynamicResource Brushes.Surface.Border}"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> diff --git a/Source/NETworkManager/Views/SNMPHostView.xaml b/Source/NETworkManager/Views/SNMPHostView.xaml index 541f23e101..da2d2e6648 100644 --- a/Source/NETworkManager/Views/SNMPHostView.xaml +++ b/Source/NETworkManager/Views/SNMPHostView.xaml @@ -31,7 +31,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding SNMP_Host}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/SettingsGeneralView.xaml b/Source/NETworkManager/Views/SettingsGeneralView.xaml index d1486266a1..d401cf97d1 100644 --- a/Source/NETworkManager/Views/SettingsGeneralView.xaml +++ b/Source/NETworkManager/Views/SettingsGeneralView.xaml @@ -24,7 +24,7 @@ HorizontalAlignment="Left" ItemsSource="{Binding Applications}" SelectedItem="{Binding ApplicationSelectedItem}" - BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + BorderBrush="{DynamicResource Brushes.Surface.Border}" Margin="0,0,0,10" dd:DragDrop.IsDragSource="True" dd:DragDrop.IsDropTarget="True"> diff --git a/Source/NETworkManager/Views/SettingsView.xaml b/Source/NETworkManager/Views/SettingsView.xaml index 67b8262b15..86a56930de 100644 --- a/Source/NETworkManager/Views/SettingsView.xaml +++ b/Source/NETworkManager/Views/SettingsView.xaml @@ -25,7 +25,7 @@ <ColumnDefinition Width="250" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> - <Border Grid.Column="0" BorderBrush="{DynamicResource MahApps.Brushes.Gray8}" + <Border Grid.Column="0" BorderBrush="{DynamicResource Brushes.Surface.Border}" BorderThickness="0,0,1,0"> <Grid> <Grid.RowDefinitions> diff --git a/Source/NETworkManager/Views/TigerVNCHostView.xaml b/Source/NETworkManager/Views/TigerVNCHostView.xaml index 395fadf89e..5ffd7dd03b 100644 --- a/Source/NETworkManager/Views/TigerVNCHostView.xaml +++ b/Source/NETworkManager/Views/TigerVNCHostView.xaml @@ -33,7 +33,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding TigerVNC_Host}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/TracerouteHostView.xaml b/Source/NETworkManager/Views/TracerouteHostView.xaml index b2623f8831..1798e05624 100644 --- a/Source/NETworkManager/Views/TracerouteHostView.xaml +++ b/Source/NETworkManager/Views/TracerouteHostView.xaml @@ -32,7 +32,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding Traceroute_Host}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/WakeOnLANView.xaml b/Source/NETworkManager/Views/WakeOnLANView.xaml index 210e0d8c1e..8cfe4a3b36 100644 --- a/Source/NETworkManager/Views/WakeOnLANView.xaml +++ b/Source/NETworkManager/Views/WakeOnLANView.xaml @@ -32,7 +32,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding WakeOnLAN_MACAddress}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/WebConsoleHostView.xaml b/Source/NETworkManager/Views/WebConsoleHostView.xaml index bea3efa526..546190c423 100644 --- a/Source/NETworkManager/Views/WebConsoleHostView.xaml +++ b/Source/NETworkManager/Views/WebConsoleHostView.xaml @@ -33,7 +33,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding WebConsole_Url}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> diff --git a/Source/NETworkManager/Views/WhoisHostView.xaml b/Source/NETworkManager/Views/WhoisHostView.xaml index 8dd99e983a..40b9f95aa0 100644 --- a/Source/NETworkManager/Views/WhoisHostView.xaml +++ b/Source/NETworkManager/Views/WhoisHostView.xaml @@ -31,7 +31,7 @@ <StackPanel Margin="10"> <TextBlock Text="{Binding Whois_Domain}" Style="{StaticResource DefaultTextBlock}" /> - <Separator Background="{DynamicResource MahApps.Brushes.Gray8}" + <Separator Background="{DynamicResource Brushes.Surface.Border}" Margin="0,10" /> <TextBlock Text="{Binding Description}" Style="{StaticResource InfoTextBlock}" TextWrapping="Wrap" /> From 5d4b60ab0c9e73e8e5c124c17499aeb61ff13ca9 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:44:22 +0100 Subject: [PATCH 180/232] Design: Welcome and Upgrade dialogs like the other dialogs (D4) They still had their own style: a full gray overlay (Gray8) and a square dialog. They use DefaultChildWindow now (rounded with shadow, the usual dark overlay, zoom animation), 650 wide without title bar as before (user decision). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 2 +- Source/NETworkManager/Views/UpgradeChildWindow.xaml | 5 +++-- Source/NETworkManager/Views/WelcomeChildWindow.xaml | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 82d7696e10..f9d41e19a7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -564,7 +564,7 @@ SemiBold (section headers), `MessageTextBlock` 16 gray (messages in empty areas) - 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). Welcome / Upgrade keep their own overlay. +- 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. diff --git a/Source/NETworkManager/Views/UpgradeChildWindow.xaml b/Source/NETworkManager/Views/UpgradeChildWindow.xaml index a230bc5b59..233072ec6d 100644 --- a/Source/NETworkManager/Views/UpgradeChildWindow.xaml +++ b/Source/NETworkManager/Views/UpgradeChildWindow.xaml @@ -8,12 +8,13 @@ xmlns:resources="clr-namespace:NETworkManager.Properties" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - ShowTitleBar="False" + Style="{StaticResource DefaultChildWindow}" + ShowTitleBar="False" + ChildWindowWidth="650" ChildWindowMaxWidth="650" ChildWindowMaxHeight="800" CloseByEscape="False" Padding="20" - OverlayBrush="{DynamicResource ResourceKey=MahApps.Brushes.Gray8}" Loaded="ChildWindow_OnLoaded" mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:UpgradeViewModel}"> <Grid Margin="10"> diff --git a/Source/NETworkManager/Views/WelcomeChildWindow.xaml b/Source/NETworkManager/Views/WelcomeChildWindow.xaml index 38e7d9daa6..fdc4bce1b0 100644 --- a/Source/NETworkManager/Views/WelcomeChildWindow.xaml +++ b/Source/NETworkManager/Views/WelcomeChildWindow.xaml @@ -9,12 +9,13 @@ xmlns:resources="clr-namespace:NETworkManager.Properties" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" - ShowTitleBar="False" + Style="{StaticResource DefaultChildWindow}" + ShowTitleBar="False" + ChildWindowWidth="650" ChildWindowMaxWidth="650" ChildWindowMaxHeight="800" CloseByEscape="False" Padding="20" - OverlayBrush="{DynamicResource MahApps.Brushes.Gray8}" Loaded="ChildWindow_OnLoaded" mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:WelcomeViewModel}"> <Grid Margin="10"> From ebc39afebfbbce29a611b2026c45de1d0d9ba5ec Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:05:49 +0100 Subject: [PATCH 181/232] Refactor: StatusLevel in NETworkManager.Controls (D12) The status level of the dots in lists will also be used by a control for the status messages (icon + color), which lives in NETworkManager.Controls. The converters reference it from there (via NETworkManager.Models). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../StatusLevel.cs | 8 +++----- .../FirewallRuleActionToStatusLevelConverter.cs | 1 + .../NeighborStateToStatusLevelConverter.cs | 1 + .../TcpStateToStatusLevelConverter.cs | 1 + .../NETworkManager/Resources/Styles/RectangleStyles.xaml | 9 ++++----- 5 files changed, 10 insertions(+), 10 deletions(-) rename Source/{NETworkManager.Converters => NETworkManager.Controls}/StatusLevel.cs (64%) diff --git a/Source/NETworkManager.Converters/StatusLevel.cs b/Source/NETworkManager.Controls/StatusLevel.cs similarity index 64% rename from Source/NETworkManager.Converters/StatusLevel.cs rename to Source/NETworkManager.Controls/StatusLevel.cs index c0e4ad3cca..c9b2f2b6f2 100644 --- a/Source/NETworkManager.Converters/StatusLevel.cs +++ b/Source/NETworkManager.Controls/StatusLevel.cs @@ -1,10 +1,8 @@ -using System.Windows.Shapes; - -namespace NETworkManager.Converters; +namespace NETworkManager.Controls; /// <summary> -/// Status of a value in a list (e.g. the action of a firewall rule), shown as colored dot (style <c>StatusDot</c>: -/// <see cref="Ellipse" /> with the level as <c>Tag</c>) in front of the text. +/// Status of a value or message: colored dot in front of a value in a list (style <c>StatusDot</c>, the level as +/// <c>Tag</c>, e.g. the action of a firewall rule) or icon + color of a status message (<see cref="StatusMessageText" />). /// </summary> public enum StatusLevel { diff --git a/Source/NETworkManager.Converters/FirewallRuleActionToStatusLevelConverter.cs b/Source/NETworkManager.Converters/FirewallRuleActionToStatusLevelConverter.cs index 84c728c083..b1e4906b53 100644 --- a/Source/NETworkManager.Converters/FirewallRuleActionToStatusLevelConverter.cs +++ b/Source/NETworkManager.Converters/FirewallRuleActionToStatusLevelConverter.cs @@ -1,6 +1,7 @@ using System; using System.Globalization; using System.Windows.Data; +using NETworkManager.Controls; using NETworkManager.Models.Firewall; namespace NETworkManager.Converters; diff --git a/Source/NETworkManager.Converters/NeighborStateToStatusLevelConverter.cs b/Source/NETworkManager.Converters/NeighborStateToStatusLevelConverter.cs index cc1ae1faea..b50547db76 100644 --- a/Source/NETworkManager.Converters/NeighborStateToStatusLevelConverter.cs +++ b/Source/NETworkManager.Converters/NeighborStateToStatusLevelConverter.cs @@ -1,6 +1,7 @@ using System; using System.Globalization; using System.Windows.Data; +using NETworkManager.Controls; using NETworkManager.Models.Network; namespace NETworkManager.Converters; diff --git a/Source/NETworkManager.Converters/TcpStateToStatusLevelConverter.cs b/Source/NETworkManager.Converters/TcpStateToStatusLevelConverter.cs index d715788cad..2e30b53a93 100644 --- a/Source/NETworkManager.Converters/TcpStateToStatusLevelConverter.cs +++ b/Source/NETworkManager.Converters/TcpStateToStatusLevelConverter.cs @@ -2,6 +2,7 @@ using System.Globalization; using System.Net.NetworkInformation; using System.Windows.Data; +using NETworkManager.Controls; namespace NETworkManager.Converters; diff --git a/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml index a257ef05bc..d841738f51 100644 --- a/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/RectangleStyles.xaml @@ -1,7 +1,6 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" - xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters"> + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"> <Style x:Key="ButtonWithImageRectangle" TargetType="{x:Type Rectangle}"> <Setter Property="Width" Value="20" /> <Setter Property="Height" Value="20" /> @@ -189,13 +188,13 @@ <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="Fill" Value="{DynamicResource MahApps.Brushes.Gray5}" /> <Style.Triggers> - <Trigger Property="Tag" Value="{x:Static converters:StatusLevel.Success}"> + <Trigger Property="Tag" Value="{x:Static icons:StatusLevel.Success}"> <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Success}" /> </Trigger> - <Trigger Property="Tag" Value="{x:Static converters:StatusLevel.Warning}"> + <Trigger Property="Tag" Value="{x:Static icons:StatusLevel.Warning}"> <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Warning}" /> </Trigger> - <Trigger Property="Tag" Value="{x:Static converters:StatusLevel.Error}"> + <Trigger Property="Tag" Value="{x:Static icons:StatusLevel.Error}"> <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> </Trigger> </Style.Triggers> From 6a1f7727941fa652b80acc294701e146bdfb9dc8 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:08:57 +0100 Subject: [PATCH 182/232] Design: status messages with icon and status color (D12) The status line below the input of the tools showed errors and info (e.g. "Canceled by user", "Magic packet sent", "Data has been updated") in the accent color, so errors looked like links and success like an error. Status messages now show an icon and the text in the color of their level (user decision): info gray (info), success green (circle-check), warning yellow (triangle-alert), error red (circle-alert). - StatusMessageText (NETworkManager.Controls: Text, Level) with the implicit style DefaultStatusMessageText (TextBlockStyles.xaml). - The view models set StatusMessageLevel with every message: IP Scanner, Port Scanner, DNS Lookup, Whois, RDAP (+ settings), IP Geolocation, SNMP, Wake on LAN, Discovery Protocol, Network Interface. Messages that are appended keep the most severe level. - Fixed levels: passwords do not match (error), connect the network card (warning), nothing found in Lookup, process ended / disconnect reason of the remote tools (info). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../StatusMessageText.cs | 37 +++++++++++++ .../Controls/PowerShellControl.xaml | 4 +- .../NETworkManager/Controls/PuTTYControl.xaml | 4 +- .../Controls/RemoteDesktopControl.xaml | 5 +- .../Controls/TigerVNCControl.xaml | 4 +- .../Resources/Styles/TextBlockStyles.xaml | 54 +++++++++++++++++++ .../ViewModels/DNSLookupViewModel.cs | 29 ++++++++-- .../ViewModels/DiscoveryProtocolViewModel.cs | 22 ++++++++ .../ViewModels/IPGeolocationViewModel.cs | 19 +++++++ .../ViewModels/IPScannerViewModel.cs | 34 ++++++++++-- .../ViewModels/NetworkInterfaceViewModel.cs | 29 ++++++++++ .../ViewModels/PortScannerViewModel.cs | 40 +++++++++++--- .../ViewModels/RDAPSettingsViewModel.cs | 19 +++++++ .../ViewModels/RDAPViewModel.cs | 29 +++++++--- .../ViewModels/SNMPViewModel.cs | 21 ++++++++ .../ViewModels/WakeOnLANViewModel.cs | 19 +++++++ .../ViewModels/WhoisViewModel.cs | 18 +++++++ .../CredentialsChangePasswordChildWindow.xaml | 11 ++-- .../CredentialsSetPasswordChildWindow.xaml | 11 ++-- .../NETworkManager/Views/DNSLookupView.xaml | 5 +- .../Views/DiscoveryProtocolView.xaml | 4 +- .../Views/IPGeolocationView.xaml | 5 +- .../NETworkManager/Views/IPScannerView.xaml | 4 +- .../Views/LookupOUILookupView.xaml | 5 +- .../Views/LookupPortLookupView.xaml | 5 +- .../Views/NetworkInterfaceView.xaml | 11 ++-- .../NETworkManager/Views/PortScannerView.xaml | 5 +- .../Views/RDAPSettingsView.xaml | 5 +- Source/NETworkManager/Views/RDAPView.xaml | 5 +- Source/NETworkManager/Views/SNMPView.xaml | 5 +- .../NETworkManager/Views/WakeOnLANView.xaml | 5 +- Source/NETworkManager/Views/WhoisView.xaml | 5 +- 32 files changed, 395 insertions(+), 83 deletions(-) create mode 100644 Source/NETworkManager.Controls/StatusMessageText.cs 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; + +/// <summary> +/// 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 <see cref="Level" /> - info gray (<see cref="StatusLevel.None" />), success green, +/// warning yellow, error red. The look is defined by the style <c>DefaultStatusMessageText</c> of the application +/// (TextBlockStyles.xaml, implicit style). +/// </summary> +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)); + + /// <summary> + /// Message (can have several lines). + /// </summary> + public string Text + { + get => (string)GetValue(TextProperty); + set => SetValue(TextProperty, value); + } + + /// <summary> + /// Level of the message (icon and color). + /// </summary> + public StatusLevel Level + { + get => (StatusLevel)GetValue(LevelProperty); + set => SetValue(LevelProperty, value); + } +} diff --git a/Source/NETworkManager/Controls/PowerShellControl.xaml b/Source/NETworkManager/Controls/PowerShellControl.xaml index f0f39e233f..0aac749d74 100644 --- a/Source/NETworkManager/Controls/PowerShellControl.xaml +++ b/Source/NETworkManager/Controls/PowerShellControl.xaml @@ -1,5 +1,6 @@ <local:UserControlBase x:Class="NETworkManager.Controls.PowerShellControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" @@ -48,9 +49,8 @@ <TextBlock Grid.Row="0" Text="{x:Static localization:Strings.Disconnected}" Style="{StaticResource HeaderTextBlock}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanReverseToVisibilityHiddenConverter}}" /> - <TextBlock Grid.Row="1" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Grid.Row="1" Text="{x:Static localization:Strings.PowerShellProcessHasEnded}" - Style="{DynamicResource DefaultTextBlock}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanReverseToVisibilityHiddenConverter}}" /> <mah:ProgressRing Style="{StaticResource ProgressRingLarge}" Grid.Row="0" Grid.RowSpan="2" IsActive="{Binding IsConnecting}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" /> diff --git a/Source/NETworkManager/Controls/PuTTYControl.xaml b/Source/NETworkManager/Controls/PuTTYControl.xaml index 8837386395..58327d8888 100644 --- a/Source/NETworkManager/Controls/PuTTYControl.xaml +++ b/Source/NETworkManager/Controls/PuTTYControl.xaml @@ -1,5 +1,6 @@ <local:UserControlBase x:Class="NETworkManager.Controls.PuTTYControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" @@ -48,9 +49,8 @@ <TextBlock Grid.Row="0" Text="{x:Static localization:Strings.Disconnected}" Style="{StaticResource HeaderTextBlock}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanReverseToVisibilityHiddenConverter}}" /> - <TextBlock Grid.Row="1" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Grid.Row="1" Text="{x:Static localization:Strings.PuTTYProcessHasEnded}" - Style="{DynamicResource DefaultTextBlock}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanReverseToVisibilityHiddenConverter}}" /> <mah:ProgressRing Style="{StaticResource ProgressRingLarge}" Grid.Row="0" Grid.RowSpan="2" IsActive="{Binding IsConnecting}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" /> diff --git a/Source/NETworkManager/Controls/RemoteDesktopControl.xaml b/Source/NETworkManager/Controls/RemoteDesktopControl.xaml index 2fefbd2cf5..c1fcadd1fb 100644 --- a/Source/NETworkManager/Controls/RemoteDesktopControl.xaml +++ b/Source/NETworkManager/Controls/RemoteDesktopControl.xaml @@ -1,5 +1,6 @@ <local:UserControlBase x:Class="NETworkManager.Controls.RemoteDesktopControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" @@ -49,8 +50,8 @@ <TextBlock Grid.Row="0" Text="{x:Static localization:Strings.Disconnected}" Style="{StaticResource HeaderTextBlock}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanReverseToVisibilityHiddenConverter}}" /> - <TextBlock Grid.Row="1" Foreground="{DynamicResource MahApps.Brushes.Accent}" - Text="{Binding DisconnectReason}" Style="{DynamicResource DefaultTextBlock}" + <icons:StatusMessageText Grid.Row="1" + Text="{Binding DisconnectReason}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanReverseToVisibilityHiddenConverter}}" /> <mah:ProgressRing Style="{StaticResource ProgressRingLarge}" Grid.Row="0" Grid.RowSpan="2" IsActive="{Binding IsConnecting}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" /> diff --git a/Source/NETworkManager/Controls/TigerVNCControl.xaml b/Source/NETworkManager/Controls/TigerVNCControl.xaml index 5f8122b031..e54ae44e36 100644 --- a/Source/NETworkManager/Controls/TigerVNCControl.xaml +++ b/Source/NETworkManager/Controls/TigerVNCControl.xaml @@ -1,5 +1,6 @@ <local:UserControlBase x:Class="NETworkManager.Controls.TigerVNCControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" @@ -47,9 +48,8 @@ <TextBlock Grid.Row="0" Text="{x:Static localization:Strings.Disconnected}" Style="{StaticResource HeaderTextBlock}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanReverseToVisibilityHiddenConverter}}" /> - <TextBlock Grid.Row="1" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Grid.Row="1" Text="{x:Static localization:Strings.TigerVNCProcessHasEnded}" - Style="{DynamicResource DefaultTextBlock}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanReverseToVisibilityHiddenConverter}}" /> <mah:ProgressRing Style="{StaticResource ProgressRingLarge}" Grid.Row="0" Grid.RowSpan="2" IsActive="{Binding IsConnecting}" Visibility="{Binding IsConnecting, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" /> diff --git a/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml index 3571c0d073..2a07c97aaf 100644 --- a/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml @@ -98,6 +98,60 @@ <Style x:Key="StatusMessageTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource WrapTextBlock}" /> + <!-- Status message of a tool (icons:StatusMessageText): icon (16) + text in the color of the level - info gray, + success green, warning yellow, error red. Implicit style --> + <Style x:Key="DefaultStatusMessageText" TargetType="{x:Type icons:StatusMessageText}"> + <Setter Property="Focusable" Value="False" /> + <Setter Property="IsTabStop" Value="False" /> + <Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Gray3}" /> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type icons:StatusMessageText}"> + <Grid> + <Grid.ColumnDefinitions> + <ColumnDefinition Width="Auto" /> + <ColumnDefinition Width="*" /> + </Grid.ColumnDefinitions> + <icons:LucideIcon x:Name="Icon" Grid.Column="0" + Kind="Info" + Width="16" Height="16" + Foreground="{TemplateBinding Foreground}" + VerticalAlignment="Top" + Margin="0,2,8,0" /> + <TextBlock Grid.Column="1" + Text="{TemplateBinding Text}" + Foreground="{TemplateBinding Foreground}" + Style="{StaticResource WrapTextBlock}" /> + </Grid> + <ControlTemplate.Triggers> + <Trigger Property="Level" Value="Success"> + <Setter TargetName="Icon" Property="Kind" Value="CircleCheck" /> + </Trigger> + <Trigger Property="Level" Value="Warning"> + <Setter TargetName="Icon" Property="Kind" Value="TriangleAlert" /> + </Trigger> + <Trigger Property="Level" Value="Error"> + <Setter TargetName="Icon" Property="Kind" Value="CircleAlert" /> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + <Style.Triggers> + <Trigger Property="Level" Value="Success"> + <Setter Property="Foreground" Value="{DynamicResource Brushes.Status.Success}" /> + </Trigger> + <Trigger Property="Level" Value="Warning"> + <Setter Property="Foreground" Value="{DynamicResource Brushes.Status.Warning}" /> + </Trigger> + <Trigger Property="Level" Value="Error"> + <Setter Property="Foreground" Value="{DynamicResource Brushes.Status.Error}" /> + </Trigger> + </Style.Triggers> + </Style> + + <Style TargetType="{x:Type icons:StatusMessageText}" BasedOn="{StaticResource DefaultStatusMessageText}" /> + <Style x:Key="ConsoleTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource DefaultTextBlock}"> <Setter Property="FontFamily" Value="{StaticResource Fonts.Family.Mono}" /> <Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Gray3}" /> diff --git a/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs b/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs index c3d78e3485..82398fb4a5 100644 --- a/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs +++ b/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs @@ -232,6 +232,22 @@ private set } } + /// <summary> + /// Level of the status message (icon and color, see <see cref="StatusMessageText" />). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + #endregion #region Contructor, load settings @@ -256,7 +272,7 @@ public DNSLookupViewModel(Guid tabId, string host, string dnsServer = null, Quer { _message = message; - AppendStatusMessage(message); + AppendStatusMessage(message, StatusLevel.None); } _isLoading = true; @@ -377,11 +393,12 @@ private async Task QueryAsync() { IsStatusMessageDisplayed = false; StatusMessage = string.Empty; + StatusMessageLevel = StatusLevel.None; // Message of the tab (see constructor): still shown with the first lookup if (_message != null) { - AppendStatusMessage(_message); + AppendStatusMessage(_message, StatusLevel.None); _message = null; } @@ -524,12 +541,16 @@ public void OnClose() /// Appends the specified message to the current status message, adding a new line if a message already exists. /// </summary> /// <param name="message">The status message text to append. Cannot be null.</param> - private void AppendStatusMessage(string message) + private void AppendStatusMessage(string message, StatusLevel level = StatusLevel.Error) { if (!string.IsNullOrEmpty(StatusMessage)) StatusMessage += Environment.NewLine; StatusMessage += message; + + // The most severe message determines the level + if (level > StatusMessageLevel) + StatusMessageLevel = level; IsStatusMessageDisplayed = true; } @@ -614,6 +635,7 @@ private void DNSLookup_LookupError(object sender, DNSLookupErrorArgs e) if (!IsStatusMessageDisplayed) { StatusMessage = statusMessage; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; return; @@ -621,6 +643,7 @@ private void DNSLookup_LookupError(object sender, DNSLookupErrorArgs e) // Append the message StatusMessage += Environment.NewLine + statusMessage; + StatusMessageLevel = StatusLevel.Error; })); } diff --git a/Source/NETworkManager/ViewModels/DiscoveryProtocolViewModel.cs b/Source/NETworkManager/ViewModels/DiscoveryProtocolViewModel.cs index c909d4386d..d426cc3633 100644 --- a/Source/NETworkManager/ViewModels/DiscoveryProtocolViewModel.cs +++ b/Source/NETworkManager/ViewModels/DiscoveryProtocolViewModel.cs @@ -1,5 +1,6 @@ using log4net; using MahApps.Metro.SimpleChildWindow; +using NETworkManager.Controls; using NETworkManager.Localization.Resources; using NETworkManager.Models.Export; using NETworkManager.Models.Network; @@ -195,6 +196,22 @@ private set } } + /// <summary> + /// Level of the status message (icon and color, see <see cref="StatusMessageText" />). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + /// <summary> /// Gets or sets a value indicating whether a discovery package has been received. /// </summary> @@ -309,6 +326,7 @@ private async Task CaptureAction() IsStatusMessageDisplayed = false; StatusMessage = string.Empty; + StatusMessageLevel = StatusLevel.None; DiscoveryPackageReceived = false; @@ -443,6 +461,9 @@ private void DiscoveryProtocol_WarningReceived(object sender, DiscoveryProtocolW StatusMessage += e.Message; + if (StatusMessageLevel < StatusLevel.Warning) + StatusMessageLevel = StatusLevel.Warning; + IsStatusMessageDisplayed = true; } @@ -455,6 +476,7 @@ private void DiscoveryProtocol_ErrorReceived(object sender, DiscoveryProtocolErr StatusMessage += Environment.NewLine; StatusMessage += e.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } diff --git a/Source/NETworkManager/ViewModels/IPGeolocationViewModel.cs b/Source/NETworkManager/ViewModels/IPGeolocationViewModel.cs index 5b8821c809..2e0a540f32 100644 --- a/Source/NETworkManager/ViewModels/IPGeolocationViewModel.cs +++ b/Source/NETworkManager/ViewModels/IPGeolocationViewModel.cs @@ -131,6 +131,22 @@ private set } } + /// <summary> + /// Level of the status message (icon and color, see <see cref="StatusMessageText" />). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + #endregion #region Contructor, load settings @@ -243,6 +259,7 @@ private async Task Query() Log.Error($"ip-api.com error: {result.ErrorMessage}, error code: {result.ErrorCode}"); StatusMessage = $"ip-api.com: {result.ErrorMessage}"; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; return; @@ -254,6 +271,7 @@ private async Task Query() StatusMessage = $"ip-api.com {string.Format(Strings.RateLimitReachedTryAgainInXSeconds, result.RateLimitRemainingTime)}"; + StatusMessageLevel = StatusLevel.Warning; IsStatusMessageDisplayed = true; return; @@ -268,6 +286,7 @@ private async Task Query() catch (Exception ex) { StatusMessage = ex.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } diff --git a/Source/NETworkManager/ViewModels/IPScannerViewModel.cs b/Source/NETworkManager/ViewModels/IPScannerViewModel.cs index 0cbb65156a..095510108e 100644 --- a/Source/NETworkManager/ViewModels/IPScannerViewModel.cs +++ b/Source/NETworkManager/ViewModels/IPScannerViewModel.cs @@ -535,6 +535,22 @@ private set } } + /// <summary> + /// Level of the status message (icon and color, see <see cref="StatusMessageText" />). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + /// <summary> /// Gets the options of the scan whose results are shown. Columns, context menu and row details follow them /// instead of the current settings, which may have been changed since. While no results are shown, they @@ -896,7 +912,7 @@ private void ShowWindowsLogonRejected() _isWindowsLogonRejectedShown = true; - AddStatusMessage(string.Format(Strings.WindowsLogonFailedMessage, _windowsCredentials)); + AddStatusMessage(string.Format(Strings.WindowsLogonFailedMessage, _windowsCredentials), StatusLevel.Warning); } /// <summary> @@ -1107,6 +1123,7 @@ private async Task Start(bool isRepeat = false) !SettingsManager.Current.IPScanner_NetBIOSEnabled && !SettingsManager.Current.IPScanner_SNMPEnabled) { StatusMessage = Strings.EnableAtLeastOneProbeToFindHostsMessage; + StatusMessageLevel = StatusLevel.Warning; IsStatusMessageDisplayed = true; return; @@ -1125,6 +1142,7 @@ private async Task Start(bool isRepeat = false) Log.Error("Error while counting the hosts", ex); StatusMessage = ex.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; return; @@ -1132,6 +1150,7 @@ private async Task Start(bool isRepeat = false) if (hostCount > GlobalStaticConfiguration.IPScanner_MaxHostCount) { + StatusMessageLevel = StatusLevel.Error; StatusMessage = string.Format(Strings.ScanTooManyIPAddressesMessage, hostCount.ToString("N0"), GlobalStaticConfiguration.IPScanner_MaxHostCount.ToString("N0")); IsStatusMessageDisplayed = true; @@ -1258,11 +1277,12 @@ private async Task Start(bool isRepeat = false) // Show error message if (some) hostnames could not be resolved if (hosts.hostnamesNotResolved.Count > 0) AddStatusMessage( - $"{Strings.TheFollowingHostnamesCouldNotBeResolved} {string.Join(", ", hosts.hostnamesNotResolved)}"); + $"{Strings.TheFollowingHostnamesCouldNotBeResolved} {string.Join(", ", hosts.hostnamesNotResolved)}", + StatusLevel.Error); // The exclusions removed every host (also if hostnames could not be resolved, keep their message) if (hosts.hosts.Count == 0 && hosts.excludedCount > 0) - AddStatusMessage(Strings.AllIPAddressesAreExcludedMessage); + AddStatusMessage(Strings.AllIPAddressesAreExcludedMessage, StatusLevel.Warning); HostsToScan = hosts.hosts.Count; @@ -1494,8 +1514,10 @@ private static IPScannerResultOptions CreateResultOptions() /// resolved). The messages are cleared when a scan starts. /// </summary> /// <param name="message">Message to show.</param> - private void AddStatusMessage(string message) + private void AddStatusMessage(string message, StatusLevel level) { + // The most severe message determines the level + StatusMessageLevel = IsStatusMessageDisplayed && StatusMessageLevel > level ? StatusMessageLevel : level; StatusMessage = IsStatusMessageDisplayed ? StatusMessage + Environment.NewLine + message : message; IsStatusMessageDisplayed = true; } @@ -2090,6 +2112,7 @@ private void ScanComplete(object sender, ScanCompleteArgs e) if (e.IsCanceled) { StatusMessage = Strings.CanceledByUserMessage; + StatusMessageLevel = StatusLevel.None; IsStatusMessageDisplayed = true; } else if (e.Exception != null) @@ -2097,12 +2120,13 @@ private void ScanComplete(object sender, ScanCompleteArgs e) Log.Error("Error while scanning", e.Exception); StatusMessage = e.Exception.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } else if (Results.Count == 0 && !isNothingScanned) { // Keep a message from the preparation (e.g. hostnames that could not be resolved) - AddStatusMessage(Strings.NoReachableHostsFound); + AddStatusMessage(Strings.NoReachableHostsFound, StatusLevel.None); } // Windows credentials rejected (wrong username or password, also in a canceled scan): one message after diff --git a/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs b/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs index b5efb6d18a..774fb265e4 100644 --- a/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs +++ b/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs @@ -6,6 +6,7 @@ using LiveChartsCore.SkiaSharpView.Painting.Effects; using log4net; using MahApps.Metro.SimpleChildWindow; +using NETworkManager.Controls; using NETworkManager.Localization.Resources; using NETworkManager.Models; using NETworkManager.Models.Export; @@ -128,6 +129,22 @@ private set } } + /// <summary> + /// Level of the status message (icon and color, see <see cref="StatusMessageText" />). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + #region NetworkInterfaces, SelectedNetworkInterface /// <summary> @@ -1142,11 +1159,13 @@ private async Task ApplyConfiguration() ReloadNetworkInterfaces(); StatusMessage = Strings.NetworkInterfaceConfigurationAppliedSuccessfully; + StatusMessageLevel = StatusLevel.Success; IsStatusMessageDisplayed = true; } catch (Exception ex) { StatusMessage = ex.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } finally @@ -1202,11 +1221,13 @@ private async Task ApplyConfigurationFromProfile() ReloadNetworkInterfaces(); StatusMessage = Strings.NetworkInterfaceConfigurationAppliedSuccessfully; + StatusMessageLevel = StatusLevel.Success; IsStatusMessageDisplayed = true; } catch (Exception ex) { StatusMessage = ex.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } finally @@ -1238,11 +1259,13 @@ private async Task FlushDNSAsync() await NetworkInterface.FlushDnsAsync(); StatusMessage = Strings.FlushDNSCacheSuccessfully; + StatusMessageLevel = StatusLevel.Success; IsStatusMessageDisplayed = true; } catch (Exception ex) { StatusMessage = ex.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } finally @@ -1272,11 +1295,13 @@ private async Task ReleaseRenewAsync(IPConfigReleaseRenewMode releaseRenewMode) IPConfigReleaseRenewMode.Renew6 => Strings.IPv6AddressRenewedSuccessfully, _ => string.Empty }; + StatusMessageLevel = StatusLevel.Success; IsStatusMessageDisplayed = true; } catch (Exception ex) { StatusMessage = ex.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } finally @@ -1311,11 +1336,13 @@ private async Task AddIPv4Address(string ipAddress, string subnetmaskOrCidr) ReloadNetworkInterfaces(); StatusMessage = Strings.IPv4AddressAddedSuccessfully; + StatusMessageLevel = StatusLevel.Success; IsStatusMessageDisplayed = true; } catch (Exception ex) { StatusMessage = ex.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } finally @@ -1342,11 +1369,13 @@ private async Task RemoveIPv4Address(string ipAddress) ReloadNetworkInterfaces(); StatusMessage = Strings.IPv4AddressRemovedSuccessfully; + StatusMessageLevel = StatusLevel.Success; IsStatusMessageDisplayed = true; } catch (Exception ex) { StatusMessage = ex.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } finally diff --git a/Source/NETworkManager/ViewModels/PortScannerViewModel.cs b/Source/NETworkManager/ViewModels/PortScannerViewModel.cs index 69ecdc6965..dd666d22cc 100644 --- a/Source/NETworkManager/ViewModels/PortScannerViewModel.cs +++ b/Source/NETworkManager/ViewModels/PortScannerViewModel.cs @@ -189,6 +189,7 @@ public string Ports { IsStatusMessageDisplayed = false; StatusMessage = string.Empty; + StatusMessageLevel = StatusLevel.None; } _message = null; @@ -545,6 +546,22 @@ private set } } + /// <summary> + /// Level of the status message (icon and color, see <see cref="StatusMessageText" />). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + /// <summary> /// Gets the options of the scan whose results are shown. Columns and context menu follow them instead of /// the current settings, which may have been changed since. While no results are shown, they follow the @@ -598,6 +615,7 @@ public PortScannerViewModel(Guid tabId, string host, string port, bool start = t _message = message; StatusMessage = message; + StatusMessageLevel = StatusLevel.None; IsStatusMessageDisplayed = true; } @@ -917,8 +935,10 @@ private void ExportAction() /// hostnames that could not be resolved). The messages are cleared when a scan starts. /// </summary> /// <param name="message">Message to show.</param> - private void AddStatusMessage(string message) + private void AddStatusMessage(string message, StatusLevel level) { + // The most severe message determines the level + StatusMessageLevel = IsStatusMessageDisplayed && StatusMessageLevel > level ? StatusMessageLevel : level; StatusMessage = IsStatusMessageDisplayed ? StatusMessage + Environment.NewLine + message : message; IsStatusMessageDisplayed = true; } @@ -931,6 +951,7 @@ private async Task Start(bool isRepeat = false) out var resolvedPorts)) { StatusMessage = Strings.EnterValidPortsOrPortProfiles; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; return; @@ -951,6 +972,7 @@ private async Task Start(bool isRepeat = false) Log.Error("Error while counting the hosts and ports", ex); StatusMessage = ex.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; return; @@ -960,6 +982,7 @@ private async Task Start(bool isRepeat = false) if (portCount > GlobalStaticConfiguration.PortScanner_MaxPortCount) { + StatusMessageLevel = StatusLevel.Error; StatusMessage = string.Format(Strings.ScanTooManyPortsMessage, portCount.ToString("N0"), hostCount.ToString("N0"), portsPerHost.ToString("N0"), GlobalStaticConfiguration.PortScanner_MaxPortCount.ToString("N0")); @@ -1000,11 +1023,13 @@ private async Task Start(bool isRepeat = false) IsStatusMessageDisplayed = false; StatusMessage = string.Empty; + StatusMessageLevel = StatusLevel.None; // Message of the tab (see constructor): still shown with the first scan if (_message != null) { StatusMessage = _message; + StatusMessageLevel = StatusLevel.None; IsStatusMessageDisplayed = true; _message = null; @@ -1104,11 +1129,12 @@ private async Task Start(bool isRepeat = false) // Show error message if (some) hostnames could not be resolved if (hosts.hostnamesNotResolved.Count > 0) AddStatusMessage( - $"{Strings.TheFollowingHostnamesCouldNotBeResolved} {string.Join(", ", hosts.hostnamesNotResolved)}"); + $"{Strings.TheFollowingHostnamesCouldNotBeResolved} {string.Join(", ", hosts.hostnamesNotResolved)}", + StatusLevel.Error); // The exclusions removed every host (also if hostnames could not be resolved) if (hosts.hosts.Count == 0 && hosts.excludedCount > 0) - AddStatusMessage(Strings.AllIPAddressesAreExcludedMessage); + AddStatusMessage(Strings.AllIPAddressesAreExcludedMessage, StatusLevel.Warning); PortsToScan = ports.Length * hosts.hosts.Count; @@ -1863,23 +1889,23 @@ private void ScanComplete(object sender, ScanCompleteArgs e) // Keep a message from the preparation (e.g. the message of the tab or hostnames that could not be resolved) if (e.IsCanceled) { - AddStatusMessage(Strings.CanceledByUserMessage); + AddStatusMessage(Strings.CanceledByUserMessage, StatusLevel.None); } else if (e.Exception != null) { Log.Error("Error while scanning", e.Exception); - AddStatusMessage(e.Exception.Message); + AddStatusMessage(e.Exception.Message, StatusLevel.Error); } else if (Results.Count == 0 && !isNothingScanned) { - AddStatusMessage(Strings.NoOpenPortsFound); + AddStatusMessage(Strings.NoOpenPortsFound, StatusLevel.None); } // Hosts that were not scanned because they didn't answer the ping before the scan (option) if (!e.IsCanceled && e.Exception == null && sender is PortScanner { HostsSkipped: > 0 } pingScanner) AddStatusMessage(string.Format(Strings.XHostsDidNotAnswerThePingAndWereNotScanned, - pingScanner.HostsSkipped)); + pingScanner.HostsSkipped), StatusLevel.Warning); // A completed rescan: the changes against the same previous scan (e.g. a port that is open again) if (isRescan && !e.IsCanceled && e.Exception == null && _comparisonBaseline != null) diff --git a/Source/NETworkManager/ViewModels/RDAPSettingsViewModel.cs b/Source/NETworkManager/ViewModels/RDAPSettingsViewModel.cs index 923984c08d..5076832b73 100644 --- a/Source/NETworkManager/ViewModels/RDAPSettingsViewModel.cs +++ b/Source/NETworkManager/ViewModels/RDAPSettingsViewModel.cs @@ -1,4 +1,5 @@ using log4net; +using NETworkManager.Controls; using NETworkManager.Localization.Resources; using NETworkManager.Models.RDAP; using NETworkManager.Settings; @@ -78,6 +79,22 @@ private set } } + /// <summary> + /// Level of the status message (icon and color, see <see cref="StatusMessageText" />). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + public bool FollowReferral { get; @@ -173,10 +190,12 @@ private async Task UpdateBootstrapFilesAsync() await RDAPBootstrapService.GetInstance().UpdateNowAsync(CachePath); StatusMessage = Strings.BootstrapFilesAreUpToDate; + StatusMessageLevel = StatusLevel.Success; } catch (Exception ex) { StatusMessage = string.Format(Strings.RDAPBootstrapUnavailableX, ex.Message); + StatusMessageLevel = StatusLevel.Error; } IsStatusMessageDisplayed = true; diff --git a/Source/NETworkManager/ViewModels/RDAPViewModel.cs b/Source/NETworkManager/ViewModels/RDAPViewModel.cs index ce5e91f3d6..37131eeb2a 100644 --- a/Source/NETworkManager/ViewModels/RDAPViewModel.cs +++ b/Source/NETworkManager/ViewModels/RDAPViewModel.cs @@ -176,6 +176,22 @@ private set } } + /// <summary> + /// Level of the status message (icon and color, see <see cref="StatusMessageText" />). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + /// <summary> /// Offer to open the domain in the Whois tool, if no RDAP server is known for it. /// </summary> @@ -303,7 +319,7 @@ private async Task RunQuery() if (parseError != RDAPQueryParseError.None) { - ShowStatusMessage(RDAPQueryValidator.GetErrorMessage(parseError)); + ShowStatusMessage(RDAPQueryValidator.GetErrorMessage(parseError), StatusLevel.Error); IsRunning = false; return; @@ -346,18 +362,18 @@ private async Task RunQuery() messages.Add(GetReferralErrorMessage(_result.ReferralError, query)); if (messages.Count > 0) - ShowStatusMessage(string.Join(Environment.NewLine, messages)); + ShowStatusMessage(string.Join(Environment.NewLine, messages), StatusLevel.Warning); ListHelper.Modify(SettingsManager.Current.RDAP_QueryHistory, Query, SettingsManager.Current.General_HistoryListEntries); } catch (OperationCanceledException) { - ShowStatusMessage(Strings.CanceledByUserMessage); + ShowStatusMessage(Strings.CanceledByUserMessage, StatusLevel.None); } catch (RDAPException ex) { - ShowStatusMessage(GetErrorMessage(ex, query)); + ShowStatusMessage(GetErrorMessage(ex, query), StatusLevel.Error); if (ex.Kind == RDAPErrorKind.NoServer && query.Type is RDAPQueryType.Domain or RDAPQueryType.TLD) { @@ -368,7 +384,7 @@ private async Task RunQuery() catch (Exception ex) { Log.Error("Error while querying RDAP.", ex); - ShowStatusMessage(ex.Message); + ShowStatusMessage(ex.Message, StatusLevel.Error); } finally { @@ -383,9 +399,10 @@ private void Stop() _cancellationTokenSource?.Cancel(); } - private void ShowStatusMessage(string message) + private void ShowStatusMessage(string message, StatusLevel level) { StatusMessage = message; + StatusMessageLevel = level; IsStatusMessageDisplayed = true; } diff --git a/Source/NETworkManager/ViewModels/SNMPViewModel.cs b/Source/NETworkManager/ViewModels/SNMPViewModel.cs index fae5366719..ef422aea33 100644 --- a/Source/NETworkManager/ViewModels/SNMPViewModel.cs +++ b/Source/NETworkManager/ViewModels/SNMPViewModel.cs @@ -430,6 +430,22 @@ private set } } + /// <summary> + /// Level of the status message (icon and color, see <see cref="StatusMessageText" />). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + #endregion #region ICommands & Actions @@ -492,6 +508,7 @@ await DNSClientHelper.ResolveAorAaaaAsync(Host, if (dnsResult.HasError) { StatusMessage = DNSClientHelper.FormatDNSClientResultError(Host, dnsResult); + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; IsRunning = false; return; @@ -693,6 +710,7 @@ private void SNMPClient_Received(object sender, SNMPReceivedArgs e) private void SNMPClient_DataUpdated(object sender, EventArgs e) { StatusMessage = Strings.DataHasBeenUpdated; + StatusMessageLevel = StatusLevel.Success; IsStatusMessageDisplayed = true; } @@ -705,6 +723,8 @@ private void SNMPClient_Error(object sender, SNMPErrorArgs e) else StatusMessage = e.ErrorMessage; + StatusMessageLevel = StatusLevel.Error; + IsStatusMessageDisplayed = true; } @@ -713,6 +733,7 @@ private void SNMPClient_Canceled(object sender, EventArgs e) StatusMessage = CancelScan ? Strings.CanceledByUserMessage : Strings.TimeoutOnSNMPQuery; + StatusMessageLevel = CancelScan ? StatusLevel.None : StatusLevel.Error; IsStatusMessageDisplayed = true; } diff --git a/Source/NETworkManager/ViewModels/WakeOnLANViewModel.cs b/Source/NETworkManager/ViewModels/WakeOnLANViewModel.cs index c686513669..00d0928a4f 100644 --- a/Source/NETworkManager/ViewModels/WakeOnLANViewModel.cs +++ b/Source/NETworkManager/ViewModels/WakeOnLANViewModel.cs @@ -1,3 +1,4 @@ +using NETworkManager.Controls; using NETworkManager.Localization.Resources; using NETworkManager.Models; using NETworkManager.Models.Network; @@ -113,6 +114,22 @@ private set } } + /// <summary> + /// Level of the status message (icon and color, see <see cref="StatusMessageText" />). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + /// <summary> /// Gets or sets the currently selected profile. Pre-fills <see cref="MACAddress"/>/<see cref="Broadcast"/> /// from the profile, unless a wake-up is currently running. @@ -251,11 +268,13 @@ private async Task WakeUp(WakeOnLANInfo info) await Task.Delay(GlobalStaticConfiguration.ApplicationUIRefreshInterval); StatusMessage = Strings.MagicPacketSentMessage; + StatusMessageLevel = StatusLevel.Success; IsStatusMessageDisplayed = true; } catch (Exception ex) { StatusMessage = ex.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } diff --git a/Source/NETworkManager/ViewModels/WhoisViewModel.cs b/Source/NETworkManager/ViewModels/WhoisViewModel.cs index fc55bf03ab..e23610ef92 100644 --- a/Source/NETworkManager/ViewModels/WhoisViewModel.cs +++ b/Source/NETworkManager/ViewModels/WhoisViewModel.cs @@ -106,6 +106,22 @@ private set } } + /// <summary> + /// Level of the status message (icon and color, see <see cref="StatusMessageText" />). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + #endregion #region Contructor, load settings @@ -184,6 +200,7 @@ private async Task Query() if (string.IsNullOrEmpty(whoisServer)) { StatusMessage = string.Format(Strings.WhoisServerNotFoundForTheDomain, Domain); + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } else @@ -198,6 +215,7 @@ private async Task Query() catch (Exception ex) { StatusMessage = ex.Message; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } diff --git a/Source/NETworkManager/Views/CredentialsChangePasswordChildWindow.xaml b/Source/NETworkManager/Views/CredentialsChangePasswordChildWindow.xaml index 4ef3c381bd..d68f61e3e7 100644 --- a/Source/NETworkManager/Views/CredentialsChangePasswordChildWindow.xaml +++ b/Source/NETworkManager/Views/CredentialsChangePasswordChildWindow.xaml @@ -1,5 +1,6 @@ <simpleChildWindow:ChildWindow x:Class="NETworkManager.Views.CredentialsChangePasswordChildWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" @@ -61,10 +62,10 @@ </interactivity:Interaction.Behaviors> </PasswordBox> </Grid> - <TextBlock Grid.Row="1" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="Error" Grid.Row="1" Text="{x:Static localization:Strings.PasswordsDoNotMatch}" Margin="0,10,0,0"> - <TextBlock.Style> - <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource DefaultTextBlock}"> + <icons:StatusMessageText.Style> + <Style TargetType="{x:Type icons:StatusMessageText}" BasedOn="{StaticResource DefaultStatusMessageText}"> <Setter Property="Visibility" Value="Collapsed" /> <Style.Triggers> <MultiDataTrigger> @@ -78,8 +79,8 @@ </MultiDataTrigger> </Style.Triggers> </Style> - </TextBlock.Style> - </TextBlock> + </icons:StatusMessageText.Style> + </icons:StatusMessageText> <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right"> <Button Content="{x:Static localization:Strings.OK}" Command="{Binding OKCommand}" IsDefault="True" Margin="0,0,10,0"> diff --git a/Source/NETworkManager/Views/CredentialsSetPasswordChildWindow.xaml b/Source/NETworkManager/Views/CredentialsSetPasswordChildWindow.xaml index 962e6d0496..c965cbe49f 100644 --- a/Source/NETworkManager/Views/CredentialsSetPasswordChildWindow.xaml +++ b/Source/NETworkManager/Views/CredentialsSetPasswordChildWindow.xaml @@ -1,5 +1,6 @@ <simpleChildWindow:ChildWindow x:Class="NETworkManager.Views.CredentialsSetPasswordChildWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" @@ -51,10 +52,10 @@ </interactivity:Interaction.Behaviors> </PasswordBox> </Grid> - <TextBlock Grid.Row="1" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="Error" Grid.Row="1" Text="{x:Static localization:Strings.PasswordsDoNotMatch}" Margin="0,10,0,0"> - <TextBlock.Style> - <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource DefaultTextBlock}"> + <icons:StatusMessageText.Style> + <Style TargetType="{x:Type icons:StatusMessageText}" BasedOn="{StaticResource DefaultStatusMessageText}"> <Setter Property="Visibility" Value="Collapsed" /> <Style.Triggers> <MultiDataTrigger> @@ -68,8 +69,8 @@ </MultiDataTrigger> </Style.Triggers> </Style> - </TextBlock.Style> - </TextBlock> + </icons:StatusMessageText.Style> + </icons:StatusMessageText> <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right"> <Button Content="{x:Static localization:Strings.OK}" Command="{Binding OKCommand}" IsDefault="True" Margin="0,0,10,0"> diff --git a/Source/NETworkManager/Views/DNSLookupView.xaml b/Source/NETworkManager/Views/DNSLookupView.xaml index 5a4fcacb8b..752361e912 100644 --- a/Source/NETworkManager/Views/DNSLookupView.xaml +++ b/Source/NETworkManager/Views/DNSLookupView.xaml @@ -152,10 +152,9 @@ </Style> </mah:MetroProgressBar.Style> </mah:MetroProgressBar> - <TextBlock Grid.Row="2" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Row="2" Text="{Binding StatusMessage}" - Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource StatusMessageTextBlock}" Margin="0,10,0,0" /> + Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,10,0,0" /> </Grid> <TextBlock Grid.Row="2" Text="{x:Static localization:Strings.Result}" Style="{StaticResource HeaderTextBlock}" /> <controls:MultiSelectDataGrid x:Name="DataGridResults" Grid.Row="3" diff --git a/Source/NETworkManager/Views/DiscoveryProtocolView.xaml b/Source/NETworkManager/Views/DiscoveryProtocolView.xaml index 13c38e04f8..f08b29cd2d 100644 --- a/Source/NETworkManager/Views/DiscoveryProtocolView.xaml +++ b/Source/NETworkManager/Views/DiscoveryProtocolView.xaml @@ -88,11 +88,9 @@ </Button.Content> </Button> </Grid> - <TextBlock Grid.Column="0" Grid.Row="4" - Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Column="0" Grid.Row="4" Text="{Binding StatusMessage}" Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource StatusMessageTextBlock}" Margin="0,0,0,10" /> <TextBlock Grid.Column="0" Grid.Row="5" Text="{x:Static localization:Strings.Result}" diff --git a/Source/NETworkManager/Views/IPGeolocationView.xaml b/Source/NETworkManager/Views/IPGeolocationView.xaml index 01ad1d3361..ec879c117d 100644 --- a/Source/NETworkManager/Views/IPGeolocationView.xaml +++ b/Source/NETworkManager/Views/IPGeolocationView.xaml @@ -115,10 +115,9 @@ </Style> </mahAppsControls:MetroProgressBar.Style> </mahAppsControls:MetroProgressBar> - <TextBlock Grid.Row="2" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Row="2" Text="{Binding StatusMessage}" - Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource StatusMessageTextBlock}" Margin="0,10,0,0" /> + Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,10,0,0" /> </Grid> <Grid Grid.Column="0" Grid.Row="2" Visibility="{Binding IsResultVisible, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> diff --git a/Source/NETworkManager/Views/IPScannerView.xaml b/Source/NETworkManager/Views/IPScannerView.xaml index d9486c45ce..403df6029f 100644 --- a/Source/NETworkManager/Views/IPScannerView.xaml +++ b/Source/NETworkManager/Views/IPScannerView.xaml @@ -359,11 +359,9 @@ </TextBlock.Text> </TextBlock> </StackPanel> - <TextBlock Grid.Column="0" Grid.Row="2" - Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Column="0" Grid.Row="2" Text="{Binding StatusMessage}" Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource StatusMessageTextBlock}" Margin="0,10,0,0" /> </Grid> <!-- Header of the result: "Last scan at" / countdown (trimmed first if the header is narrow), repeat and search --> diff --git a/Source/NETworkManager/Views/LookupOUILookupView.xaml b/Source/NETworkManager/Views/LookupOUILookupView.xaml index 8376497655..0628f73239 100644 --- a/Source/NETworkManager/Views/LookupOUILookupView.xaml +++ b/Source/NETworkManager/Views/LookupOUILookupView.xaml @@ -99,10 +99,9 @@ IsIndeterminate="True" Visibility="{Binding IsRunning, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,10,0,0" /> - <TextBlock Grid.Row="2" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Grid.Row="2" Text="{x:Static localization:Strings.NoVendorFoundCheckYourInput}" - Visibility="{Binding NothingFound, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource DefaultTextBlock}" Margin="0,10,0,0" /> + Visibility="{Binding NothingFound, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,10,0,0" /> </Grid> <TextBlock Grid.Row="2" Text="{x:Static localization:Strings.Result}" Style="{StaticResource HeaderTextBlock}" /> <controls:MultiSelectDataGrid x:Name="DataGridResults" diff --git a/Source/NETworkManager/Views/LookupPortLookupView.xaml b/Source/NETworkManager/Views/LookupPortLookupView.xaml index e27161628e..b6cca3f296 100644 --- a/Source/NETworkManager/Views/LookupPortLookupView.xaml +++ b/Source/NETworkManager/Views/LookupPortLookupView.xaml @@ -98,10 +98,9 @@ IsIndeterminate="True" Visibility="{Binding IsRunning, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,10,0,0" /> - <TextBlock Grid.Row="2" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Grid.Row="2" Text="{x:Static localization:Strings.NoPortsFoundCheckYourInput}" - Visibility="{Binding NothingFound, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource DefaultTextBlock}" Margin="0,10,0,0" /> + Visibility="{Binding NothingFound, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,10,0,0" /> </Grid> <TextBlock Grid.Row="2" Text="{x:Static localization:Strings.Result}" Style="{StaticResource HeaderTextBlock}" /> <controls:MultiSelectDataGrid x:Name="DataGridResults" diff --git a/Source/NETworkManager/Views/NetworkInterfaceView.xaml b/Source/NETworkManager/Views/NetworkInterfaceView.xaml index 3ffa4ed16c..973da62e42 100644 --- a/Source/NETworkManager/Views/NetworkInterfaceView.xaml +++ b/Source/NETworkManager/Views/NetworkInterfaceView.xaml @@ -1084,11 +1084,9 @@ </Rectangle.Style> </Rectangle> </Button> - <TextBlock Grid.Column="0" Grid.Row="1" - Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="Warning" Grid.Column="0" Grid.Row="1" Text="{x:Static localization:Strings.ConnectTheNetworkCardToConfigureIt}" - Visibility="{Binding CanConfigure, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" - Style="{DynamicResource DefaultTextBlock}" Margin="0,10,0,0" /> + Visibility="{Binding CanConfigure, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" Margin="0,10,0,0" /> </Grid> </StackPanel> <TextBlock Grid.Row="1" Style="{StaticResource HeaderTextBlock}" @@ -1289,10 +1287,9 @@ </Style> </mahAppsControls:MetroProgressBar.Style> </mahAppsControls:MetroProgressBar> - <TextBlock Grid.Row="3" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Row="3" Text="{Binding StatusMessage}" - Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource StatusMessageTextBlock}" Margin="0,0,0,10" /> + Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,0,0,10" /> <Grid Grid.Row="4"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> diff --git a/Source/NETworkManager/Views/PortScannerView.xaml b/Source/NETworkManager/Views/PortScannerView.xaml index 6f450f92d8..0323d8ca2c 100644 --- a/Source/NETworkManager/Views/PortScannerView.xaml +++ b/Source/NETworkManager/Views/PortScannerView.xaml @@ -217,10 +217,9 @@ </TextBlock.Text> </TextBlock> </StackPanel> - <TextBlock Grid.Row="2" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Row="2" Text="{Binding StatusMessage}" - Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource StatusMessageTextBlock}" Margin="0,10,0,0" /> + Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,10,0,0" /> </Grid> <!-- Header of the result: "Last scan at" / countdown (trimmed first if the header is narrow), repeat and search --> <Grid Grid.Row="2"> diff --git a/Source/NETworkManager/Views/RDAPSettingsView.xaml b/Source/NETworkManager/Views/RDAPSettingsView.xaml index 29868e1e06..e0a964d2ac 100644 --- a/Source/NETworkManager/Views/RDAPSettingsView.xaml +++ b/Source/NETworkManager/Views/RDAPSettingsView.xaml @@ -103,10 +103,7 @@ <mah:ProgressRing Style="{StaticResource ProgressRingSmall}" Margin="10,0,0,0" IsActive="{Binding IsUpdating}" /> </StackPanel> - <TextBlock Text="{Binding StatusMessage}" - Style="{DynamicResource StatusMessageTextBlock}" - Foreground="{DynamicResource MahApps.Brushes.Accent}" - TextWrapping="Wrap" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Text="{Binding StatusMessage}" Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,0,0,10" /> <StackPanel Orientation="Horizontal" Margin="0,10,0,10"> diff --git a/Source/NETworkManager/Views/RDAPView.xaml b/Source/NETworkManager/Views/RDAPView.xaml index d4949d2960..d060838c52 100644 --- a/Source/NETworkManager/Views/RDAPView.xaml +++ b/Source/NETworkManager/Views/RDAPView.xaml @@ -608,10 +608,9 @@ </Style> </mahAppsControls:MetroProgressBar.Style> </mahAppsControls:MetroProgressBar> - <TextBlock Grid.Row="2" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Row="2" Text="{Binding StatusMessage}" - Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource StatusMessageTextBlock}" Margin="0,10,0,0" /> + Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,10,0,0" /> </Grid> <Grid Grid.Row="2" Visibility="{Binding IsResultVisible, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> diff --git a/Source/NETworkManager/Views/SNMPView.xaml b/Source/NETworkManager/Views/SNMPView.xaml index 1c6d7d3d74..d8c0759cf5 100644 --- a/Source/NETworkManager/Views/SNMPView.xaml +++ b/Source/NETworkManager/Views/SNMPView.xaml @@ -594,10 +594,9 @@ <mah:MetroProgressBar IsIndeterminate="True" Visibility="{Binding IsRunning, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" /> - <TextBlock Foreground="{DynamicResource MahApps.Brushes.Accent}" + <controls:StatusMessageText Level="{Binding StatusMessageLevel}" Text="{Binding StatusMessage}" - Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{StaticResource StatusMessageTextBlock}" /> + Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" /> </Grid> <TextBlock Grid.Row="4" Grid.ColumnSpan="3" Grid.Column="0"> <TextBlock.Style> diff --git a/Source/NETworkManager/Views/WakeOnLANView.xaml b/Source/NETworkManager/Views/WakeOnLANView.xaml index 8cfe4a3b36..89bf6bd521 100644 --- a/Source/NETworkManager/Views/WakeOnLANView.xaml +++ b/Source/NETworkManager/Views/WakeOnLANView.xaml @@ -175,10 +175,9 @@ <mahAppsControls:MetroProgressBar Grid.Row="2" Margin="0,10,0,0" Visibility="{Binding IsRunning, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" IsIndeterminate="True" /> - <TextBlock Grid.Row="3" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Row="3" Text="{Binding StatusMessage}" - Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource StatusMessageTextBlock}" Margin="0,10,0,0" /> + Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,10,0,0" /> </Grid> </TabItem> </TabControl> diff --git a/Source/NETworkManager/Views/WhoisView.xaml b/Source/NETworkManager/Views/WhoisView.xaml index 29f6eeb033..5f9253ceba 100644 --- a/Source/NETworkManager/Views/WhoisView.xaml +++ b/Source/NETworkManager/Views/WhoisView.xaml @@ -112,10 +112,9 @@ </Style> </mahAppsControls:MetroProgressBar.Style> </mahAppsControls:MetroProgressBar> - <TextBlock Grid.Row="2" Foreground="{DynamicResource MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Row="2" Text="{Binding StatusMessage}" - Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource StatusMessageTextBlock}" Margin="0,10,0,0" /> + Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" Margin="0,10,0,0" /> </Grid> <Grid Grid.Column="0" Grid.Row="2" Visibility="{Binding IsResultVisible, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"> From 357c5f610a12b326c0cad67ab39bc9a579b7169c Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:09:07 +0100 Subject: [PATCH 183/232] Changelog: status messages with icon and status color Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Website/docs/changelog/next-release.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index b204b3a854..0fd0a4b1e3 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -83,6 +83,7 @@ Release date: **xx.xx.2026** - While a tab is dragged (e.g. to another window or to split the view), **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show the icon of the tool and the title of the tab instead of an empty area. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - New icons: all icons (navigation, toolbars, context menus, messages, status) come from one icon family, [Lucide](https://lucide.dev), instead of five different icon packs. They are drawn as thin lines (calmer, especially at small sizes) and have the same size and position everywhere. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) - Empty areas (e.g. no firewall rules or Wi-Fi networks found, the path of PuTTY not configured) show a large gray icon above the message; the notices to restart as administrator show a shield. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Status messages below the input (e.g. **IP Scanner**, **Port Scanner**, **DNS Lookup**, **Whois**, **SNMP**, **Wake on LAN**, **Network Interface**) show an icon and the color of the message: errors red, warnings yellow, success green (e.g. `Magic packet sent`), info gray (e.g. `Canceled by user`) - instead of the accent color for all messages. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) **Profiles** From 89379f929e60847abf2988404d7dca599f8ec1e6 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:09:07 +0100 Subject: [PATCH 184/232] Docs: status messages in the UI design system (D12) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f9d41e19a7..89633fafb3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -569,8 +569,11 @@ SemiBold (section headers), `MessageTextBlock` 16 gray (messages in empty areas) `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, restart as administrator): `EmptyStateMessage` (`Icon`, `Text`, - `IconSize` 40, 24 for notices below a list) instead of a bare `MessageTextBlock`; status lines and loading texts stay - `MessageTextBlock`. + `IconSize` 40, 24 for notices below a list) instead of a bare `MessageTextBlock`; loading texts stay `MessageTextBlock`. +- 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). From 857ab7c45ca21cd4c5b94a8cc14412f92b538d52 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:31:06 +0100 Subject: [PATCH 185/232] Fix: theme resources at startup, light override for Mist / Soft / Paper (review #1, #4) - ControlzEx doesn't raise ThemeChanged when the theme is already applied. At startup with the theme merged in App.xaml (Dark.Lime, the old default) the brushes computed by AppearanceManager (frame, surfaces, status colors, control states, grid selection, console colors) were never set until the theme was switched. ChangeTheme now applies them directly (ApplyThemeResources, the same theme only once). - The light / dark brush override was chosen by the theme name, so the new light themes (Mist, Soft, Paper) didn't get the darker grays of the light theme. It is chosen by the brightness of the background now (ThemeVariants.IsDark). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../AppearanceManager.cs | 56 ++++++++++++------- 1 file changed, 37 insertions(+), 19 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 4d267bffca..799a16d57a 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -233,6 +233,30 @@ public static void Load() ChangeTheme(SettingsManager.Current.Appearance_Theme, SettingsManager.Current.Appearance_Accent); } + /// <summary> + /// Theme whose resources were applied last (see <see cref="ApplyThemeResources" />). + /// </summary> + private static Theme _appliedTheme; + + /// <summary> + /// 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 + /// <see cref="ThemeManager.ThemeChanged" /> 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. + /// </summary> + /// <param name="theme">Theme that was applied.</param> + private static void ApplyThemeResources(Theme theme) + { + if (theme == null || ReferenceEquals(theme, _appliedTheme)) + return; + + _appliedTheme = theme; + + ApplyControlStateBrushes(theme); + ApplyStatusBrushes(theme); + ApplyCustomThemeFixes(theme); + } + /// <summary> /// Method to load the custom themes from a folder into the <see cref="ThemeManager" />. /// </summary> @@ -318,7 +342,10 @@ public static void ChangeTheme(string name) if (!ThemeVariants.EnsureTheme(name) || ThemeManager.Current.GetTheme(name) == null) name = $"{GlobalStaticConfiguration.Appearance_Theme}.{GlobalStaticConfiguration.Appearance_Accent}"; - ThemeManager.Current.ChangeTheme(System.Windows.Application.Current, name); + var theme = ThemeManager.Current.ChangeTheme(System.Windows.Application.Current, name); + + // Also if ThemeChanged wasn't raised (theme already applied) + ApplyThemeResources(theme); } /// <summary> @@ -516,11 +543,11 @@ private static SolidColorBrush CreateFrozenBrush(Color color, double opacity) /// <summary> /// Apply the brush overrides of the built-in light / dark theme (not for custom themes). /// </summary> - /// <param name="theme">Theme name as "theme.accent".</param> - private static void ApplyCustomThemeFixes(string theme) + /// <param name="theme">Theme that was applied.</param> + private static void ApplyCustomThemeFixes(Theme theme) { - // Don't apply on custom themes (only built-in light/dark themes) - if (CustomThemes.Any(x => x.Name.Equals(theme, StringComparison.OrdinalIgnoreCase))) + // 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 @@ -531,17 +558,10 @@ private static void ApplyCustomThemeFixes(string theme) appResources.MergedDictionaries.Remove(DarkThemeOverrideDictionary); - // Theme name is in format "theme.accent" - switch (theme.ToLowerInvariant().Split('.')[0]) - { - case "light": - appResources.MergedDictionaries.Add(LightThemeOverrideDictionary); - break; - - case "dark": - appResources.MergedDictionaries.Add(DarkThemeOverrideDictionary); - break; - } + // Light or dark by the background (also the additional themes, e.g. Mist, Midnight), not by the name + appResources.MergedDictionaries.Add(ThemeVariants.IsDark(theme) + ? DarkThemeOverrideDictionary + : LightThemeOverrideDictionary); // Refresh UI foreach (Window window in System.Windows.Application.Current.Windows) @@ -556,9 +576,7 @@ private static void ApplyCustomThemeFixes(string theme) #region Events private static void Current_ThemeChanged(object sender, ThemeChangedEventArgs e) { - ApplyControlStateBrushes(e.NewTheme); - ApplyStatusBrushes(e.NewTheme); - ApplyCustomThemeFixes(e.NewTheme.Name); + ApplyThemeResources(e.NewTheme); } #endregion } From 6396567b387110543cfb4b738be15f3af7db0e3a Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:31:42 +0100 Subject: [PATCH 186/232] Fix: chart separators in full foreground color (review #2) Since the separators use Brushes.Surface.Border (0f0ad98c6), the charts of the Ping Monitor, Network Interface (bandwidth) and WiFi (channels) read its color incl. Color.A - but the brush keeps the color opaque and gets its 10 % from Brush.Opacity, so the grid lines were drawn solid white (dark) / black (light). ChartColors.FromResource converts a brush incl. its opacity; also used for the labels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager/ChartColors.cs | 13 +++++++++++++ .../ViewModels/NetworkInterfaceViewModel.cs | 9 +++------ .../ViewModels/PingMonitorViewModel.cs | 9 +++------ Source/NETworkManager/ViewModels/WiFiViewModel.cs | 9 +++------ 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/Source/NETworkManager/ChartColors.cs b/Source/NETworkManager/ChartColors.cs index 6d81ae7624..b1abbb59fd 100644 --- a/Source/NETworkManager/ChartColors.cs +++ b/Source/NETworkManager/ChartColors.cs @@ -64,6 +64,19 @@ public static SKColor GetPaletteColor(int index) return palette[index % palette.Length]; } + /// <summary> + /// Color of a brush of the application (e.g. <c>MahApps.Brushes.Gray5</c> for labels, <c>Brushes.Surface.Border</c> + /// for separators) for a chart, incl. the opacity of the brush (the surface brushes keep the color opaque and get + /// their low opacity from <see cref="Brush.Opacity" />). + /// </summary> + /// <param name="resourceKey">Resource key of a <see cref="SolidColorBrush" />.</param> + /// <param name="fallback">Color if the resource is not found.</param> + public static SKColor FromResource(string resourceKey, SKColor fallback) => + Application.Current?.TryFindResource(resourceKey) is SolidColorBrush brush + ? new SKColor(brush.Color.R, brush.Color.G, brush.Color.B, + (byte)System.Math.Round(brush.Color.A * brush.Opacity)) + : fallback; + /// <summary> /// <see cref="Primary"/> as WPF color (e.g. the traceroute map). /// </summary> diff --git a/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs b/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs index 774fb265e4..a15bfe04a0 100644 --- a/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs +++ b/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs @@ -578,13 +578,10 @@ private void InitialBandwidthChart() var downloadColor = ChartColors.Primary; var uploadColor = ChartColors.Secondary; - var labelColor = Application.Current?.TryFindResource("MahApps.Brushes.Gray5") is System.Windows.Media.SolidColorBrush gray5 - ? new SKColor(gray5.Color.R, gray5.Color.G, gray5.Color.B, gray5.Color.A) - : new SKColor(0x68, 0x68, 0x68); + var labelColor = ChartColors.FromResource("MahApps.Brushes.Gray5", new SKColor(0x68, 0x68, 0x68)); - var separatorColor = Application.Current?.TryFindResource("Brushes.Surface.Border") is System.Windows.Media.SolidColorBrush gray8 - ? new SKColor(gray8.Color.R, gray8.Color.G, gray8.Color.B, gray8.Color.A) - : new SKColor(0x80, 0x80, 0x80); + // Incl. the opacity of the brush (10 %) + var separatorColor = ChartColors.FromResource("Brushes.Surface.Border", new SKColor(0x80, 0x80, 0x80, 0x40)); Series = [ diff --git a/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs b/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs index 3fb6008fa2..0f6aeccfbf 100644 --- a/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs +++ b/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs @@ -307,13 +307,10 @@ private void InitialTimeChart() var chartColor = ChartColors.Primary; - var labelColor = Application.Current?.TryFindResource("MahApps.Brushes.Gray5") is System.Windows.Media.SolidColorBrush gray5 - ? new SKColor(gray5.Color.R, gray5.Color.G, gray5.Color.B, gray5.Color.A) - : new SKColor(0x68, 0x68, 0x68); + var labelColor = ChartColors.FromResource("MahApps.Brushes.Gray5", new SKColor(0x68, 0x68, 0x68)); - var separatorColor = Application.Current?.TryFindResource("Brushes.Surface.Border") is System.Windows.Media.SolidColorBrush gray8 - ? new SKColor(gray8.Color.R, gray8.Color.G, gray8.Color.B, gray8.Color.A) - : new SKColor(0x80, 0x80, 0x80); + // Incl. the opacity of the brush (10 %) + var separatorColor = ChartColors.FromResource("Brushes.Surface.Border", new SKColor(0x80, 0x80, 0x80, 0x40)); Series = [ diff --git a/Source/NETworkManager/ViewModels/WiFiViewModel.cs b/Source/NETworkManager/ViewModels/WiFiViewModel.cs index 1801f1b6b7..c6452e2dd6 100644 --- a/Source/NETworkManager/ViewModels/WiFiViewModel.cs +++ b/Source/NETworkManager/ViewModels/WiFiViewModel.cs @@ -1008,13 +1008,10 @@ private static HashSet<int> BuildChannelSet(int first, int last, int step) /// </summary> private void InitializeCharts() { - var labelColor = Application.Current?.TryFindResource("MahApps.Brushes.Gray5") is SolidColorBrush gray5 - ? new SKColor(gray5.Color.R, gray5.Color.G, gray5.Color.B, gray5.Color.A) - : new SKColor(0x68, 0x68, 0x68); + var labelColor = ChartColors.FromResource("MahApps.Brushes.Gray5", new SKColor(0x68, 0x68, 0x68)); - var separatorColor = Application.Current?.TryFindResource("Brushes.Surface.Border") is SolidColorBrush gray8 - ? new SKColor(gray8.Color.R, gray8.Color.G, gray8.Color.B, gray8.Color.A) - : new SKColor(0x80, 0x80, 0x80); + // Incl. the opacity of the brush (10 %) + var separatorColor = ChartColors.FromResource("Brushes.Surface.Border", new SKColor(0x80, 0x80, 0x80, 0x40)); // (min, max) in display space. The lower bound is extended below the first channel so the // left flank of its trapezoid reaches the baseline instead of being clipped. The 5 GHz From e3e284d373fc0f4be277951626946c831ee0308d Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:31:50 +0100 Subject: [PATCH 187/232] Fix: Alt+F4 didn't close the window while a read-only ComboBox had the focus (review #3) The class handler of ComboBoxReadOnlyBehavior blocked F4 (opens the drop-down) also as system key, so Alt+F4 was handled and the window stayed open, e.g. while an IP Scanner scan runs with the focus in the host input. Only F4 without Alt is blocked now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs b/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs index eebe0b9ff2..05a8c4a9e9 100644 --- a/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs +++ b/Source/NETworkManager.Controls/ComboBoxReadOnlyBehavior.cs @@ -69,12 +69,15 @@ private static void ComboBox_PreviewKeyDown(object sender, KeyEventArgs e) switch (key) { - // Select another entry or open the drop-down (F4, Alt + Up / Down) + // Select another entry or open the drop-down (Alt + Up / Down) case Key.Up: case Key.Down: case Key.PageUp: case Key.PageDown: - case Key.F4: + 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) From 282473d2b6b8e4b2b91353b18f4c79cb79d000cc Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:32:42 +0100 Subject: [PATCH 188/232] Fix: timeout of the App Execution Alias resolve, failed resolve cached (review #6) ResolveAppExecutionAlias read stdout with ReadToEnd before WaitForExit(10000), so the timeout never applied: a hanging alias (e.g. a first-run prompt) blocked the thread pool thread. The output is read asynchronously now, the process tree is killed on timeout. A failed resolve was cached as null for the session; it is removed and tried again with the next write. Lazy entries start the alias only once when called in parallel. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../PowerShell/PowerShell.cs | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/Source/NETworkManager.Models/PowerShell/PowerShell.cs b/Source/NETworkManager.Models/PowerShell/PowerShell.cs index 61d86cc980..2c68ac9971 100644 --- a/Source/NETworkManager.Models/PowerShell/PowerShell.cs +++ b/Source/NETworkManager.Models/PowerShell/PowerShell.cs @@ -54,9 +54,10 @@ public static class PowerShell /// <summary> /// 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). + /// 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. /// </summary> - private static readonly ConcurrentDictionary<string, string> ResolvedAliases = new(StringComparer.OrdinalIgnoreCase); + private static readonly ConcurrentDictionary<string, Lazy<string>> ResolvedAliases = new(StringComparer.OrdinalIgnoreCase); /// <summary> /// Write default (global) PowerShell profile to registry: the console settings of Windows (conhost) in @@ -80,7 +81,12 @@ public static void WriteDefaultProfileToRegistry((byte R, byte G, byte B) backgr if (!IsAppExecutionAlias(powerShellPath)) return; - var realPath = ResolvedAliases.GetOrAdd(powerShellPath, ResolveAppExecutionAlias); + var resolved = ResolvedAliases.GetOrAdd(powerShellPath, x => new Lazy<string>(() => ResolveAppExecutionAlias(x))); + var realPath = resolved.Value; + + // Not resolved (e.g. timeout): try again with the next write + if (string.IsNullOrEmpty(realPath)) + ResolvedAliases.TryRemove(new KeyValuePair<string, Lazy<string>>(powerShellPath, resolved)); if (!string.IsNullOrEmpty(realPath) && !string.Equals(realPath, powerShellPath, StringComparison.OrdinalIgnoreCase)) WriteProfile(background, foreground, realPath); @@ -121,16 +127,22 @@ private static string ResolveAppExecutionAlias(string aliasPath) if (process == null) return null; - var output = process.StandardOutput.ReadToEnd().Trim(); + // 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(); + 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; From 8858e01392fab776e992ba615e5ed36635712b12 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:32:43 +0100 Subject: [PATCH 189/232] Fix: PowerShell console profile could keep the colors of the previous theme (review #5) Every theme change started an unordered Task.Run with the colors captured at the start, so an older write could finish last. The writes are serialized now and read the current colors and path when they run, so the last write always has the latest values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../ViewModels/PowerShellHostViewModel.cs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs b/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs index 510ff28856..52750a4354 100644 --- a/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs +++ b/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs @@ -506,6 +506,11 @@ public override void OnViewVisible() FocusEmbeddedWindow(); } + /// <summary> + /// Serializes the writes of the PowerShell profile (see <see cref="WriteDefaultProfileToRegistry" />). + /// </summary> + private static readonly object RegistryWriteLock = new(); + private void WriteDefaultProfileToRegistry() { if (!SettingsManager.Current.Appearance_PowerShellModifyGlobalProfile) @@ -516,16 +521,18 @@ private void WriteDefaultProfileToRegistry() Log.Debug("Write PowerShell profile to registry..."); - var background = AppearanceManager.ConsoleBackground; - var foreground = AppearanceManager.ConsoleForeground; - var path = SettingsManager.Current.PowerShell_ApplicationFilePath; - - // In the background: an App Execution Alias (Microsoft Store) is started once to resolve the real path + // In the background: an App Execution Alias (Microsoft Store) is started once to resolve the real path. One + // write at a time with the current colors and path, so the last write always has the latest values (e.g. after + // several theme changes) - not the values of a task that was started earlier Task.Run(() => { try { - PowerShell.WriteDefaultProfileToRegistry(background, foreground, path); + lock (RegistryWriteLock) + { + PowerShell.WriteDefaultProfileToRegistry(AppearanceManager.ConsoleBackground, + AppearanceManager.ConsoleForeground, SettingsManager.Current.PowerShell_ApplicationFilePath); + } } catch (Exception ex) { From e7ef1e1dcdfb8b4d2b6d56c3b51020ccae1033e5 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:33:43 +0100 Subject: [PATCH 190/232] Fix: dialog size handler subscribed before the dialog is shown (review #7) The SizeChanged handler of the parent window was subscribed in the constructor and removed in Unloaded, so a dialog that was created but never shown still stayed in memory. The same code was copied into five dialogs (group, profile, import AD computers, import result, SNMP OID profiles). ChildWindowSizeHelper.FollowParentSize sets the size (85 % of the parent window) and subscribes in Loaded / unsubscribes in Unloaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../NETworkManager/ChildWindowSizeHelper.cs | 48 +++++++++++++++++++ .../Views/GroupChildWindow.xaml.cs | 18 +------ .../ImportAdComputersChildWindow.xaml.cs | 18 +------ .../ImportProfilesResultChildWindow.xaml.cs | 18 +------ .../Views/ProfileChildWindow.xaml.cs | 18 +------ .../Views/SNMPOIDProfilesChildWindow.xaml.cs | 18 +------ 6 files changed, 53 insertions(+), 85 deletions(-) create mode 100644 Source/NETworkManager/ChildWindowSizeHelper.cs diff --git a/Source/NETworkManager/ChildWindowSizeHelper.cs b/Source/NETworkManager/ChildWindowSizeHelper.cs new file mode 100644 index 0000000000..7215d6044c --- /dev/null +++ b/Source/NETworkManager/ChildWindowSizeHelper.cs @@ -0,0 +1,48 @@ +using System.Windows; +using MahApps.Metro.SimpleChildWindow; + +namespace NETworkManager; + +/// <summary> +/// Size of a dialog relative to its parent window (85 %, limited by ChildWindowMaxWidth / -Height of the dialog), +/// updated when the parent window is resized. +/// </summary> +public static class ChildWindowSizeHelper +{ + private const double Factor = 0.85; + + /// <summary> + /// Sets the size of the dialog and follows the size of the parent window while the dialog is shown: subscribed + /// in Loaded and unsubscribed in Unloaded, so the parent window doesn't keep closed (or never shown) dialogs in + /// memory. + /// </summary> + /// <param name="dialog">Dialog.</param> + /// <param name="parentWindow">Window that shows the dialog.</param> + /// <param name="height">Also the height (otherwise only the width; the height follows the content).</param> + public static void FollowParentSize(ChildWindow dialog, Window parentWindow, bool height) + { + Update(); + + dialog.Loaded += (_, _) => + { + parentWindow.SizeChanged -= ParentWindow_SizeChanged; + parentWindow.SizeChanged += ParentWindow_SizeChanged; + + Update(); + }; + + dialog.Unloaded += (_, _) => parentWindow.SizeChanged -= ParentWindow_SizeChanged; + + return; + + void ParentWindow_SizeChanged(object sender, SizeChangedEventArgs e) => Update(); + + void Update() + { + dialog.ChildWindowWidth = parentWindow.ActualWidth * Factor; + + if (height) + dialog.ChildWindowHeight = parentWindow.ActualHeight * Factor; + } + } +} diff --git a/Source/NETworkManager/Views/GroupChildWindow.xaml.cs b/Source/NETworkManager/Views/GroupChildWindow.xaml.cs index 7f765a7a8c..4b427c1dde 100644 --- a/Source/NETworkManager/Views/GroupChildWindow.xaml.cs +++ b/Source/NETworkManager/Views/GroupChildWindow.xaml.cs @@ -7,8 +7,6 @@ namespace NETworkManager.Views; public partial class GroupChildWindow { - private readonly Window _parentWindow; - public GroupChildWindow(Window parentWindow) { InitializeComponent(); @@ -16,21 +14,7 @@ public GroupChildWindow(Window parentWindow) // Set the width and height of the child window based on the parent window size ChildWindowMaxWidth = 1050; ChildWindowMaxHeight = 650; - ChildWindowWidth = parentWindow.ActualWidth * 0.85; - ChildWindowHeight = parentWindow.ActualHeight * 0.85; - - _parentWindow = parentWindow; - - // Update the size of the child window when the parent window is resized (while the dialog is open, - // unsubscribed when it is closed - otherwise the parent window keeps every closed dialog in memory) - _parentWindow.SizeChanged += ParentWindow_SizeChanged; - Unloaded += (_, _) => _parentWindow.SizeChanged -= ParentWindow_SizeChanged; - } - - private void ParentWindow_SizeChanged(object sender, SizeChangedEventArgs e) - { - ChildWindowWidth = _parentWindow.ActualWidth * 0.85; - ChildWindowHeight = _parentWindow.ActualHeight * 0.85; + ChildWindowSizeHelper.FollowParentSize(this, parentWindow, height: true); } private void ChildWindow_OnLoaded(object sender, RoutedEventArgs e) diff --git a/Source/NETworkManager/Views/ImportAdComputersChildWindow.xaml.cs b/Source/NETworkManager/Views/ImportAdComputersChildWindow.xaml.cs index 27116510d4..8ad067822c 100644 --- a/Source/NETworkManager/Views/ImportAdComputersChildWindow.xaml.cs +++ b/Source/NETworkManager/Views/ImportAdComputersChildWindow.xaml.cs @@ -6,8 +6,6 @@ namespace NETworkManager.Views; public partial class ImportAdComputersChildWindow { - private readonly Window _parentWindow; - public ImportAdComputersChildWindow(Window parentWindow) { InitializeComponent(); @@ -15,21 +13,7 @@ public ImportAdComputersChildWindow(Window parentWindow) // Set the width and height of the child window based on the parent window size ChildWindowMaxWidth = 850; ChildWindowMaxHeight = 650; - ChildWindowWidth = parentWindow.ActualWidth * 0.85; - //ChildWindowHeight = parentWindow.ActualHeight * 0.85; - - _parentWindow = parentWindow; - - // Update the size of the child window when the parent window is resized (while the dialog is open, - // unsubscribed when it is closed - otherwise the parent window keeps every closed dialog in memory) - _parentWindow.SizeChanged += ParentWindow_SizeChanged; - Unloaded += (_, _) => _parentWindow.SizeChanged -= ParentWindow_SizeChanged; - } - - private void ParentWindow_SizeChanged(object sender, SizeChangedEventArgs e) - { - ChildWindowWidth = _parentWindow.ActualWidth * 0.85; - //ChildWindowHeight = _parentWindow.ActualHeight * 0.85; + ChildWindowSizeHelper.FollowParentSize(this, parentWindow, height: false); } private void ChildWindow_OnLoaded(object sender, RoutedEventArgs e) diff --git a/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml.cs b/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml.cs index 934387b9d9..ef49f4c3f1 100644 --- a/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml.cs +++ b/Source/NETworkManager/Views/ImportProfilesResultChildWindow.xaml.cs @@ -10,29 +10,13 @@ namespace NETworkManager.Views; public partial class ImportProfilesResultChildWindow { - private readonly Window _parentWindow; - public ImportProfilesResultChildWindow(Window parentWindow) { InitializeComponent(); ChildWindowMaxWidth = 1050; ChildWindowMaxHeight = 650; - ChildWindowWidth = parentWindow.ActualWidth * 0.85; - //ChildWindowHeight = parentWindow.ActualHeight * 0.85; - - _parentWindow = parentWindow; - - // Update the size of the child window when the parent window is resized (while the dialog is open, - // unsubscribed when it is closed - otherwise the parent window keeps every closed dialog in memory) - _parentWindow.SizeChanged += ParentWindow_SizeChanged; - Unloaded += (_, _) => _parentWindow.SizeChanged -= ParentWindow_SizeChanged; - } - - private void ParentWindow_SizeChanged(object sender, SizeChangedEventArgs e) - { - ChildWindowWidth = _parentWindow.ActualWidth * 0.85; - //ChildWindowHeight = _parentWindow.ActualHeight * 0.85; + ChildWindowSizeHelper.FollowParentSize(this, parentWindow, height: false); } private void ChildWindow_OnLoaded(object sender, RoutedEventArgs e) diff --git a/Source/NETworkManager/Views/ProfileChildWindow.xaml.cs b/Source/NETworkManager/Views/ProfileChildWindow.xaml.cs index 98cbb5bee4..65e4f3c6f7 100644 --- a/Source/NETworkManager/Views/ProfileChildWindow.xaml.cs +++ b/Source/NETworkManager/Views/ProfileChildWindow.xaml.cs @@ -8,8 +8,6 @@ namespace NETworkManager.Views; public partial class ProfileChildWindow { - private readonly Window _parentWindow; - // Set name as hostname (if empty or identical) private string _oldName = string.Empty; @@ -20,21 +18,7 @@ public ProfileChildWindow(Window parentWindow) // Set the width and height of the child window based on the parent window size ChildWindowMaxWidth = 1050; ChildWindowMaxHeight = 650; - ChildWindowWidth = parentWindow.ActualWidth * 0.85; - ChildWindowHeight = parentWindow.ActualHeight * 0.85; - - _parentWindow = parentWindow; - - // Update the size of the child window when the parent window is resized (while the dialog is open, - // unsubscribed when it is closed - otherwise the parent window keeps every closed dialog in memory) - _parentWindow.SizeChanged += ParentWindow_SizeChanged; - Unloaded += (_, _) => _parentWindow.SizeChanged -= ParentWindow_SizeChanged; - } - - private void ParentWindow_SizeChanged(object sender, SizeChangedEventArgs e) - { - ChildWindowWidth = _parentWindow.ActualWidth * 0.85; - ChildWindowHeight = _parentWindow.ActualHeight * 0.85; + ChildWindowSizeHelper.FollowParentSize(this, parentWindow, height: true); } private void ChildWindow_OnLoaded(object sender, RoutedEventArgs e) diff --git a/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml.cs b/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml.cs index c9aa46dbd1..f505165406 100644 --- a/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml.cs +++ b/Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml.cs @@ -7,8 +7,6 @@ namespace NETworkManager.Views; public partial class SNMPOIDProfilesChildWindow { - private readonly Window _parentWindow; - public SNMPOIDProfilesChildWindow(Window parentWindow) { InitializeComponent(); @@ -16,21 +14,7 @@ public SNMPOIDProfilesChildWindow(Window parentWindow) // Set the width and height of the child window based on the parent window size ChildWindowMaxWidth = 850; ChildWindowMaxHeight = 650; - ChildWindowWidth = parentWindow.ActualWidth * 0.85; - //ChildWindowHeight = parentWindow.ActualHeight * 0.85; - - _parentWindow = parentWindow; - - // Update the size of the child window when the parent window is resized (while the dialog is open, - // unsubscribed when it is closed - otherwise the parent window keeps every closed dialog in memory) - _parentWindow.SizeChanged += ParentWindow_SizeChanged; - Unloaded += (_, _) => _parentWindow.SizeChanged -= ParentWindow_SizeChanged; - } - - private void ParentWindow_SizeChanged(object sender, SizeChangedEventArgs e) - { - ChildWindowWidth = _parentWindow.ActualWidth * 0.85; - //ChildWindowHeight = _parentWindow.ActualHeight * 0.85; + ChildWindowSizeHelper.FollowParentSize(this, parentWindow, height: false); } private void ChildWindow_OnLoaded(object sender, RoutedEventArgs e) From b9a5940bc93bc4df3e5b3fbe32f0b1ed464ef1c4 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:34:15 +0100 Subject: [PATCH 191/232] Refactor: one rule for light / dark and the luminance (review #8) The luminance formula and the dark threshold were implemented three times (ChartColors, ThemeVariants, the theme sort in AppearanceManager), so they could drift apart and the charts could pick the light palette on a theme the rest of the app treats as dark. ThemeVariants.Luminance and ThemeVariants.IsDark(Color) are public now and used everywhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager.Settings/AppearanceManager.cs | 4 +--- Source/NETworkManager.Settings/ThemeVariants.cs | 13 +++++++++++-- Source/NETworkManager/ChartColors.cs | 3 ++- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 799a16d57a..0f5078f946 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -198,9 +198,7 @@ static AppearanceManager() .Select(x => new ThemeColorInfo { 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 } - ? 0.2126 * color.R + 0.7152 * color.G + 0.0722 * color.B - : 0)]; + .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 diff --git a/Source/NETworkManager.Settings/ThemeVariants.cs b/Source/NETworkManager.Settings/ThemeVariants.cs index 5745202e9a..e34f1e442a 100644 --- a/Source/NETworkManager.Settings/ThemeVariants.cs +++ b/Source/NETworkManager.Settings/ThemeVariants.cs @@ -151,7 +151,13 @@ private static void CreateTheme(string name) /// themes are detected by their background). /// </summary> public static bool IsDark(Theme theme) => - theme.Resources["MahApps.Colors.ThemeBackground"] is not Color background || Luminance(background) < 128; + theme.Resources["MahApps.Colors.ThemeBackground"] is not Color background || IsDark(background); + + /// <summary> + /// <see langword="true" /> if the background color is dark (luminance below the middle). The one rule for light / + /// dark in the application (themes, overrides, charts). + /// </summary> + public static bool IsDark(Color background) => Luminance(background) < 128; private static ResourceDictionary Copy(Theme source) { @@ -253,7 +259,10 @@ private static byte Shift(byte value, int delta, double weight) => private static Color WithAlpha(Color color, byte alpha) => Color.FromArgb(alpha, color.R, color.G, color.B); - private static double Luminance(Color color) => 0.2126 * color.R + 0.7152 * color.G + 0.0722 * color.B; + /// <summary> + /// Relative luminance of a color (0 - 255, Rec. 709 weights), e.g. to sort the themes from light to dark. + /// </summary> + public static double Luminance(Color color) => 0.2126 * color.R + 0.7152 * color.G + 0.0722 * color.B; private static Color Blend(Color color, Color target, double amount) => Color.FromRgb( (byte)Math.Round(color.R + (target.R - color.R) * amount), diff --git a/Source/NETworkManager/ChartColors.cs b/Source/NETworkManager/ChartColors.cs index b1abbb59fd..b5b5a5550a 100644 --- a/Source/NETworkManager/ChartColors.cs +++ b/Source/NETworkManager/ChartColors.cs @@ -2,6 +2,7 @@ using System.Windows.Media; using LiveChartsCore.Painting; using LiveChartsCore.SkiaSharpView.Painting; +using NETworkManager.Settings; using SkiaSharp; namespace NETworkManager; @@ -42,7 +43,7 @@ public static class ChartColors /// </summary> private static bool IsDark => Application.Current?.TryFindResource("MahApps.Colors.ThemeBackground") is not Color background || - 0.2126 * background.R + 0.7152 * background.G + 0.0722 * background.B < 128; + ThemeVariants.IsDark(background); /// <summary> /// Main series (ping time, download, cities of the traceroute map). From 194fd8699684ae4ed9790a6d324710f74f0b5272 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:34:56 +0100 Subject: [PATCH 192/232] Refactor: one rule for the level of appended status messages (review #9) The "most severe message wins" logic was written differently in DNS Lookup, Discovery Protocol and the IP / Port Scanner. StatusLevel.MostSevere is the one rule now; the scanners still start with the level of the first message when no message is shown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager.Controls/StatusLevel.cs | 12 ++++++++++++ .../NETworkManager/ViewModels/DNSLookupViewModel.cs | 8 +++----- .../ViewModels/DiscoveryProtocolViewModel.cs | 5 ++--- .../NETworkManager/ViewModels/IPScannerViewModel.cs | 4 ++-- .../ViewModels/PortScannerViewModel.cs | 4 ++-- 5 files changed, 21 insertions(+), 12 deletions(-) diff --git a/Source/NETworkManager.Controls/StatusLevel.cs b/Source/NETworkManager.Controls/StatusLevel.cs index c9b2f2b6f2..8500a1631f 100644 --- a/Source/NETworkManager.Controls/StatusLevel.cs +++ b/Source/NETworkManager.Controls/StatusLevel.cs @@ -26,3 +26,15 @@ public enum StatusLevel /// </summary> Error } + +/// <summary> +/// Helpers for <see cref="StatusLevel" />. +/// </summary> +public static class StatusLevelExtensions +{ + /// <summary> + /// 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. + /// </summary> + public static StatusLevel MostSevere(this StatusLevel level, StatusLevel other) => other > level ? other : level; +} diff --git a/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs b/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs index 82398fb4a5..55a54a4130 100644 --- a/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs +++ b/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs @@ -548,9 +548,7 @@ private void AppendStatusMessage(string message, StatusLevel level = StatusLevel StatusMessage += message; - // The most severe message determines the level - if (level > StatusMessageLevel) - StatusMessageLevel = level; + StatusMessageLevel = StatusMessageLevel.MostSevere(level); IsStatusMessageDisplayed = true; } @@ -635,7 +633,7 @@ private void DNSLookup_LookupError(object sender, DNSLookupErrorArgs e) if (!IsStatusMessageDisplayed) { StatusMessage = statusMessage; - StatusMessageLevel = StatusLevel.Error; + StatusMessageLevel = StatusMessageLevel.MostSevere(StatusLevel.Error); IsStatusMessageDisplayed = true; return; @@ -643,7 +641,7 @@ private void DNSLookup_LookupError(object sender, DNSLookupErrorArgs e) // Append the message StatusMessage += Environment.NewLine + statusMessage; - StatusMessageLevel = StatusLevel.Error; + StatusMessageLevel = StatusMessageLevel.MostSevere(StatusLevel.Error); })); } diff --git a/Source/NETworkManager/ViewModels/DiscoveryProtocolViewModel.cs b/Source/NETworkManager/ViewModels/DiscoveryProtocolViewModel.cs index d426cc3633..2406d8b4fe 100644 --- a/Source/NETworkManager/ViewModels/DiscoveryProtocolViewModel.cs +++ b/Source/NETworkManager/ViewModels/DiscoveryProtocolViewModel.cs @@ -461,8 +461,7 @@ private void DiscoveryProtocol_WarningReceived(object sender, DiscoveryProtocolW StatusMessage += e.Message; - if (StatusMessageLevel < StatusLevel.Warning) - StatusMessageLevel = StatusLevel.Warning; + StatusMessageLevel = StatusMessageLevel.MostSevere(StatusLevel.Warning); IsStatusMessageDisplayed = true; } @@ -476,7 +475,7 @@ private void DiscoveryProtocol_ErrorReceived(object sender, DiscoveryProtocolErr StatusMessage += Environment.NewLine; StatusMessage += e.Message; - StatusMessageLevel = StatusLevel.Error; + StatusMessageLevel = StatusMessageLevel.MostSevere(StatusLevel.Error); IsStatusMessageDisplayed = true; } diff --git a/Source/NETworkManager/ViewModels/IPScannerViewModel.cs b/Source/NETworkManager/ViewModels/IPScannerViewModel.cs index 095510108e..f6c1970e86 100644 --- a/Source/NETworkManager/ViewModels/IPScannerViewModel.cs +++ b/Source/NETworkManager/ViewModels/IPScannerViewModel.cs @@ -1516,8 +1516,8 @@ private static IPScannerResultOptions CreateResultOptions() /// <param name="message">Message to show.</param> private void AddStatusMessage(string message, StatusLevel level) { - // The most severe message determines the level - StatusMessageLevel = IsStatusMessageDisplayed && StatusMessageLevel > level ? StatusMessageLevel : level; + // Appended: the most severe message determines the level, otherwise the level of the new message + StatusMessageLevel = IsStatusMessageDisplayed ? StatusMessageLevel.MostSevere(level) : level; StatusMessage = IsStatusMessageDisplayed ? StatusMessage + Environment.NewLine + message : message; IsStatusMessageDisplayed = true; } diff --git a/Source/NETworkManager/ViewModels/PortScannerViewModel.cs b/Source/NETworkManager/ViewModels/PortScannerViewModel.cs index dd666d22cc..d6e405dd9a 100644 --- a/Source/NETworkManager/ViewModels/PortScannerViewModel.cs +++ b/Source/NETworkManager/ViewModels/PortScannerViewModel.cs @@ -937,8 +937,8 @@ private void ExportAction() /// <param name="message">Message to show.</param> private void AddStatusMessage(string message, StatusLevel level) { - // The most severe message determines the level - StatusMessageLevel = IsStatusMessageDisplayed && StatusMessageLevel > level ? StatusMessageLevel : level; + // Appended: the most severe message determines the level, otherwise the level of the new message + StatusMessageLevel = IsStatusMessageDisplayed ? StatusMessageLevel.MostSevere(level) : level; StatusMessage = IsStatusMessageDisplayed ? StatusMessage + Environment.NewLine + message : message; IsStatusMessageDisplayed = true; } From 222fc09c1e6c39fa0e9d3730d7c39808a78b59ba Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:35:59 +0100 Subject: [PATCH 193/232] Docs: XML comments on the right members in AppearanceManager (review #10) The summary of the static constructor sat on AnimationsEnabled (two summaries), the summary of ApplyWindowBrush on GetAccentGlowAmount (two summaries, none on the public method). AnimationsEnabled is in the properties region again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../AppearanceManager.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 0f5078f946..86a0568f9b 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -168,12 +168,7 @@ public static class AppearanceManager /// List who contains all MahApps.Metro accents. /// </summary> public static List<AccentColorInfo> Accents { get; set; } - #endregion - #region Constructor - /// <summary> - /// Load the MahApps.Metro themes and accents when needed. - /// </summary> /// <summary> /// Whether animations are shown (e.g. when a dialog is opened or closed): the system-wide policy /// (<see cref="PolicyInfo.Appearance_Animations" />), otherwise the setting; <see cref="AnimationMode.System" /> @@ -187,7 +182,12 @@ public static class AppearanceManager AnimationMode.Off => false, _ => SystemParameters.ClientAreaAnimation }; + #endregion + #region Constructor + /// <summary> + /// Load the MahApps.Metro themes and accents when needed. + /// </summary> static AppearanceManager() { // Themes of MahApps (Light, Dark) and the additional themes (Black, Midnight, ...), created when used; sorted @@ -275,13 +275,6 @@ private static void LoadCustomThemes() CustomThemes = customThemes; } - /// <summary> - /// Sets the background of the main window (<see cref="SurfaceWindowBrushKey" />): 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. - /// </summary> /// <summary> /// Amount of the accent in the glow (0 = off). /// </summary> @@ -293,6 +286,13 @@ private static void LoadCustomThemes() _ => 0 }; + /// <summary> + /// Sets the background of the main window (<see cref="SurfaceWindowBrushKey" />): 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. + /// </summary> public static void ApplyWindowBrush() { var amount = GetAccentGlowAmount(); From fa99eae1c4e07f01554bd5dd43374fe3cef70f31 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:45:55 +0100 Subject: [PATCH 194/232] Changelog: link of the design refresh entries to #3702 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Website/docs/changelog/next-release.md | 58 +++++++++++++------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 0fd0a4b1e3..113d301365 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -36,8 +36,8 @@ Release date: **xx.xx.2026** ## What's new? - New setting **Dynamic tab width** in [Settings > Window](../settings/window.md#dynamic-tab-width): the tabs of the tools (e.g. **IP Scanner**, **Remote Desktop**, **PuTTY**) are as wide as their title, up to a configurable maximum width (default `300`), instead of a fixed width of `150`. Long titles (e.g. hostnames) are shortened with `...`, the tooltip shows the full title. [#3055](https://github.com/BornToBeRoot/NETworkManager/issues/3055) -- New setting **Accent glow** in [Settings > Appearance](../settings/appearance.md#accent-glow): a glow of the accent color in the top left corner of the windows (main window, window of dragged-out tabs, status window), weaker while a window is inactive. Intensity `Off`, `Subtle`, `Medium` (default for new installations) or `Strong`. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- New themes **Black**, **Midnight**, **Steel**, **Indigo** (dark) and **Mist** (light blue-gray like the Blue theme of Visual Studio), **Soft**, **Paper** (dimmed light) and new accent colors **Sky**, **Ocean**, **Mint**, **Rose**, **Coral**, **Gold**, **Lavender**, **Slate** and **Graphite** (neutral gray) in [Settings > Appearance](../settings/appearance.md#theme). All accents can be used with every theme. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- New setting **Accent glow** in [Settings > Appearance](../settings/appearance.md#accent-glow): a glow of the accent color in the top left corner of the windows (main window, window of dragged-out tabs, status window), weaker while a window is inactive. Intensity `Off`, `Subtle`, `Medium` (default for new installations) or `Strong`. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- New themes **Black**, **Midnight**, **Steel**, **Indigo** (dark) and **Mist** (light blue-gray like the Blue theme of Visual Studio), **Soft**, **Paper** (dimmed light) and new accent colors **Sky**, **Ocean**, **Mint**, **Rose**, **Coral**, **Gold**, **Lavender**, **Slate** and **Graphite** (neutral gray) in [Settings > Appearance](../settings/appearance.md#theme). All accents can be used with every theme. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - ARM64 builds are now available. [#3538](https://github.com/BornToBeRoot/NETworkManager/issues/3538) **Run command** @@ -72,23 +72,23 @@ Release date: **xx.xx.2026** - Actions that require elevated rights now show a tooltip with the reason when they are disabled because the application is not running as administrator (e.g. **Apply**, **Flush DNS cache** and **Release & Renew** in **Network Interface**, the context menu and **Add entry...** in **Hosts File Editor**, **Firewall** and **Neighbor Table**, and **Capture** in **Discovery Protocol**). [#3626](https://github.com/BornToBeRoot/NETworkManager/pull/3626) - The collapsed/expanded state of profile groups (e.g. **linux-server**) is now remembered per profile file and shared across all tools, instead of resetting every time you switch tools or restart the application. [#3539](https://github.com/BornToBeRoot/NETworkManager/pull/3539) - The **Experimental features** setting in **Settings > Update** is removed: features in testing are marked with a **Beta** label at their own setting instead (e.g. **Read Windows host information** of the **IP Scanner**). [#3691](https://github.com/BornToBeRoot/NETworkManager/pull/3691) -- Disabled inputs and buttons (e.g. while a scan or refresh is running) are dimmed instead of covered by a light gray overlay (especially visible in the dark theme); disabled buttons keep their color. Disabled check boxes, radio buttons and toggle switches are dimmed the same way instead of shown in gray. Buttons and drop-downs (e.g. the adapter in **WiFi**) use a subtle background when the mouse is over them or they are clicked instead of a light gray. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- The status colors (e.g. host up / down, port open / closed, changes since the last scan, warnings and errors) are darker in the light theme and easier to read on the white background. Monospace text uses **Cascadia Mono** on Windows 11 (Consolas on Windows 10): IP and MAC addresses, hostnames, ports, subnets and other technical values in the lists, inputs and details of all tools (e.g. **IP Scanner**, **Port Scanner**, **Network Interface**, **Subnet Calculator**), the run command and console output. Names, descriptions and labels keep the normal font. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- Buttons, inputs, tooltips and context menus have rounded corners. Buttons have a subtle background instead of a border and are narrower (min. width 100 instead of 150), icon buttons (e.g. next to the inputs) are transparent until the mouse is over them; the main action (e.g. **Scan**, **Connect**) keeps the accent color. Inputs show a gray border while they have the focus and a slightly stronger border when the mouse is over them. Drop-downs (e.g. the profile file in the title bar) are rounded with a shadow like the context menus and show the selected entry with a subtle background instead of the accent color. Keyboard navigation (`Tab`) shows a gray focus ring instead of a dotted rectangle. Scrollbars have a rounded thumb and are less bright when the mouse is over them. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- New layout: the navigation, the main view and the profiles are shown as rounded boxes on a slightly tinted window background (like Visual Studio); the selected application is shown with a rounded background over the whole row and a short accent indicator. The groups of the **Ping Monitor** are shown as sections with a line below the group name. Dialogs are rounded with a soft shadow and darken the window behind them. **Dashboard** widgets and **Ping Monitor** hosts are shown as rounded cards. Lists have taller rows, a subtle mouse over and a light accent-colored selection (instead of the full accent color). The window with dragged-out tabs and the status window use the same layout. Tabs look like in VS Code: the tab bar has the color of the window frame, the selected tab has the background of the page with an accent line on top. On Windows 11, the windows have rounded corners. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- Dialogs (e.g. add / edit profile, settings) open with a short zoom and fade and close faster; the run command slides down from the top. The indicator of the selected tool in the navigation grows in, buttons and the navigation fade their mouse over / pressed background, expanders rotate their arrow and fade in their content, tooltips appear faster, notifications slide in from the right and the progress of the **IP Scanner** and **Port Scanner** moves smoothly (at most 10 updates per second of the bar, also for large scans). New setting **Animations** in [Settings > Appearance](../settings/appearance.md#animations): `System` (default, follows the Windows setting **Animation effects**), `On` or `Off`; can be turned on or off for all users with the system-wide policy `Appearance_Animations` (e.g. on a terminal server). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- Progress bars and loading indicators look the same in all tools: progress bars in the accent color on a subtle track (also readable in the light theme), one kind of spinner in three sizes instead of three different loading animations. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- Clearer text: section headers (e.g. in the settings and the profile dialog) are 16 semibold instead of 18 light gray, the tools in the navigation 14 like the tabs, messages in empty areas 16. On Windows 11 the application uses **Segoe UI Variable** (Segoe UI on Windows 10). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- Colors: in the dark theme the boxes (tool, profiles) are raised on a darker window frame, the borders are softer, the selected tool in the navigation has a light tint of the accent color. The charts (**Ping Monitor**, bandwidth of the **Network Interface**, speed test, **WiFi** channels, **Traceroute** map) use colors with a good contrast in the light and dark theme and a fill below the lines that fades out. New installations use the accent color **Teal** (existing settings keep their accent). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- While a tab is dragged (e.g. to another window or to split the view), **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show the icon of the tool and the title of the tab instead of an empty area. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- New icons: all icons (navigation, toolbars, context menus, messages, status) come from one icon family, [Lucide](https://lucide.dev), instead of five different icon packs. They are drawn as thin lines (calmer, especially at small sizes) and have the same size and position everywhere. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- Empty areas (e.g. no firewall rules or Wi-Fi networks found, the path of PuTTY not configured) show a large gray icon above the message; the notices to restart as administrator show a shield. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) -- Status messages below the input (e.g. **IP Scanner**, **Port Scanner**, **DNS Lookup**, **Whois**, **SNMP**, **Wake on LAN**, **Network Interface**) show an icon and the color of the message: errors red, warnings yellow, success green (e.g. `Magic packet sent`), info gray (e.g. `Canceled by user`) - instead of the accent color for all messages. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Disabled inputs and buttons (e.g. while a scan or refresh is running) are dimmed instead of covered by a light gray overlay (especially visible in the dark theme); disabled buttons keep their color. Disabled check boxes, radio buttons and toggle switches are dimmed the same way instead of shown in gray. Buttons and drop-downs (e.g. the adapter in **WiFi**) use a subtle background when the mouse is over them or they are clicked instead of a light gray. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- The status colors (e.g. host up / down, port open / closed, changes since the last scan, warnings and errors) are darker in the light theme and easier to read on the white background. Monospace text uses **Cascadia Mono** on Windows 11 (Consolas on Windows 10): IP and MAC addresses, hostnames, ports, subnets and other technical values in the lists, inputs and details of all tools (e.g. **IP Scanner**, **Port Scanner**, **Network Interface**, **Subnet Calculator**), the run command and console output. Names, descriptions and labels keep the normal font. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Buttons, inputs, tooltips and context menus have rounded corners. Buttons have a subtle background instead of a border and are narrower (min. width 100 instead of 150), icon buttons (e.g. next to the inputs) are transparent until the mouse is over them; the main action (e.g. **Scan**, **Connect**) keeps the accent color. Inputs show a gray border while they have the focus and a slightly stronger border when the mouse is over them. Drop-downs (e.g. the profile file in the title bar) are rounded with a shadow like the context menus and show the selected entry with a subtle background instead of the accent color. Keyboard navigation (`Tab`) shows a gray focus ring instead of a dotted rectangle. Scrollbars have a rounded thumb and are less bright when the mouse is over them. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- New layout: the navigation, the main view and the profiles are shown as rounded boxes on a slightly tinted window background (like Visual Studio); the selected application is shown with a rounded background over the whole row and a short accent indicator. The groups of the **Ping Monitor** are shown as sections with a line below the group name. Dialogs are rounded with a soft shadow and darken the window behind them. **Dashboard** widgets and **Ping Monitor** hosts are shown as rounded cards. Lists have taller rows, a subtle mouse over and a light accent-colored selection (instead of the full accent color). The window with dragged-out tabs and the status window use the same layout. Tabs look like in VS Code: the tab bar has the color of the window frame, the selected tab has the background of the page with an accent line on top. On Windows 11, the windows have rounded corners. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Dialogs (e.g. add / edit profile, settings) open with a short zoom and fade and close faster; the run command slides down from the top. The indicator of the selected tool in the navigation grows in, buttons and the navigation fade their mouse over / pressed background, expanders rotate their arrow and fade in their content, tooltips appear faster, notifications slide in from the right and the progress of the **IP Scanner** and **Port Scanner** moves smoothly (at most 10 updates per second of the bar, also for large scans). New setting **Animations** in [Settings > Appearance](../settings/appearance.md#animations): `System` (default, follows the Windows setting **Animation effects**), `On` or `Off`; can be turned on or off for all users with the system-wide policy `Appearance_Animations` (e.g. on a terminal server). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Progress bars and loading indicators look the same in all tools: progress bars in the accent color on a subtle track (also readable in the light theme), one kind of spinner in three sizes instead of three different loading animations. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Clearer text: section headers (e.g. in the settings and the profile dialog) are 16 semibold instead of 18 light gray, the tools in the navigation 14 like the tabs, messages in empty areas 16. On Windows 11 the application uses **Segoe UI Variable** (Segoe UI on Windows 10). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Colors: in the dark theme the boxes (tool, profiles) are raised on a darker window frame, the borders are softer, the selected tool in the navigation has a light tint of the accent color. The charts (**Ping Monitor**, bandwidth of the **Network Interface**, speed test, **WiFi** channels, **Traceroute** map) use colors with a good contrast in the light and dark theme and a fill below the lines that fades out. New installations use the accent color **Teal** (existing settings keep their accent). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- While a tab is dragged (e.g. to another window or to split the view), **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show the icon of the tool and the title of the tab instead of an empty area. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- New icons: all icons (navigation, toolbars, context menus, messages, status) come from one icon family, [Lucide](https://lucide.dev), instead of five different icon packs. They are drawn as thin lines (calmer, especially at small sizes) and have the same size and position everywhere. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Empty areas (e.g. no firewall rules or Wi-Fi networks found, the path of PuTTY not configured) show a large gray icon above the message; the notices to restart as administrator show a shield. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Status messages below the input (e.g. **IP Scanner**, **Port Scanner**, **DNS Lookup**, **Whois**, **SNMP**, **Wake on LAN**, **Network Interface**) show an icon and the color of the message: errors red, warnings yellow, success green (e.g. `Magic packet sent`), info gray (e.g. `Canceled by user`) - instead of the accent color for all messages. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **Profiles** - **Settings > Profiles**: `Enter` in the search box filters the profiles right away instead of after the delay while typing. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) -- The profile and group dialogs open faster: the error marker of each page in the list only checks the inputs of its page (instead of the checks of all pages for every page). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The profile and group dialogs open faster: the error marker of each page in the list only checks the inputs of its page (instead of the checks of all pages for every page). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **Dashboard** @@ -101,7 +101,7 @@ Release date: **xx.xx.2026** **WiFi** -- The **Channels** tab shows the charts of all bands (2.4, 5 and 6 GHz) one below the other in a scrollable list instead of two sub-tabs (**2.4 & 5 GHz**, **6 GHz**). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The **Channels** tab shows the charts of all bands (2.4, 5 and 6 GHz) one below the other in a scrollable list instead of two sub-tabs (**2.4 & 5 GHz**, **6 GHz**). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - The search filters after a short delay while typing instead of on every key press, `Enter` filters right away. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - The time of the last scan of the networks (`Last scan at 14:32`, the date in the tooltip) is shown in their header, with **Automatically update every** a countdown to the next scan; the line below only shows errors and the connection status. Reloading the network adapters is faster (the minimum of 2.5 seconds runs while loading) and the reload icon spins until it is finished. [#3685](https://github.com/BornToBeRoot/NETworkManager/pull/3685) - A channel width that could not be read from the beacon of the access point and is estimated is shown as `~80 MHz` (grid, copy and the tooltip of the **Channels** tab), the tooltip of the cell explains it. Estimated widths on 2.4 GHz are 20 MHz (40 MHz is rarely used there). [#3695](https://github.com/BornToBeRoot/NETworkManager/pull/3695) @@ -221,11 +221,11 @@ Release date: **xx.xx.2026** **PowerShell** -- The console uses the colors of the application theme (also the new and custom themes): the background of the box around it and a matching text color, updated when the theme is changed (with **Apply theme to PowerShell console**). [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The console uses the colors of the application theme (also the new and custom themes): the background of the box around it and a matching text color, updated when the theme is changed (with **Apply theme to PowerShell console**). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **PuTTY** -- The terminal uses the colors of the application theme (also the new and custom themes): the background of the box around it and a matching text color, bold text readable in light themes; updated when the theme is changed. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The terminal uses the colors of the application theme (also the new and custom themes): the background of the box around it and a matching text color, bold text readable in light themes; updated when the theme is changed. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **SNMP** @@ -237,7 +237,7 @@ Release date: **xx.xx.2026** **Hosts File Editor** -- The list has its own heading **Hosts file entries** instead of repeating the name of the tool. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The list has its own heading **Hosts file entries** instead of repeating the name of the tool. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Added **Copy as...** to the context menu to create a new entry based on an existing one. The copy is added directly below the original entry. [0544698](https://github.com/BornToBeRoot/NETworkManager/commit/0544698aefc325ab36ca4c8e80250e1fe0b62d4a) - Multiple entries can now be selected to enable, disable or delete them at once, or to change their comment via **Edit entries...** (`F2`). The edit dialog switches to a bulk mode in which only the comment can be changed. [#3624](https://github.com/BornToBeRoot/NETworkManager/pull/3624) - Entries that don't change (e.g. enabling an already enabled entry, or confirming the edit dialog without changes) are no longer rewritten in the `hosts` file, so custom formatting such as tabs or alignment is kept. [#3624](https://github.com/BornToBeRoot/NETworkManager/pull/3624) @@ -265,7 +265,7 @@ Release date: **xx.xx.2026** - `Enter` in the search box filters the rules right away instead of after the delay while typing. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - The time of the last refresh (`Reloaded at 14:32`, the date in the tooltip) is shown in the header instead of a status line below the list; the line below the list only shows errors (e.g. rules loaded with errors, a failed action). A manual refresh is faster (the minimum of 2.5 seconds runs while loading, not before) and the refresh icon spins until the rules are loaded (also with **Show all rules**). [#3685](https://github.com/BornToBeRoot/NETworkManager/pull/3685) - **Export** exports the rules shown (search) in the order shown (sorting), the selected rules in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) -- The **Action** column shows a colored dot (allow green, block red) in front of the text instead of colored text. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The **Action** column shows a colored dot (allow green, block red) in front of the text instead of colored text. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **Discovery Protocol** @@ -285,30 +285,30 @@ Release date: **xx.xx.2026** **Connections** -- The list has its own heading **Active connections** instead of repeating the name of the tool. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The list has its own heading **Active connections** instead of repeating the name of the tool. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - The search filters after a short delay while typing instead of on every key press (smoother with many connections), `Enter` filters right away. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - The time of the last refresh (`Reloaded at 14:32`, the date in the tooltip) is shown in the header instead of a status line below the list; with **Automatically update every**, a countdown to the next refresh (`Next refresh in 00:04`). A manual refresh is faster (the minimum of 2.5 seconds runs while loading, not before) and the refresh icon spins until it is finished. [#3685](https://github.com/BornToBeRoot/NETworkManager/pull/3685) - **Export...** exports the entries shown (search) in the order shown (sorting), the selected entries in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) -- The **State** column shows a colored dot in front of the state: established green, connecting yellow, other states gray. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The **State** column shows a colored dot in front of the state: established green, connecting yellow, other states gray. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **Listeners** -- The list has its own heading **Listening ports** instead of repeating the name of the tool. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The list has its own heading **Listening ports** instead of repeating the name of the tool. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - The search filters after a short delay while typing instead of on every key press (smoother with many listeners), `Enter` filters right away. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - The time of the last refresh (`Reloaded at 14:32`, the date in the tooltip) is shown in the header instead of a status line below the list; with **Automatically update every**, a countdown to the next refresh (`Next refresh in 00:04`). A manual refresh is faster (the minimum of 2.5 seconds runs while loading, not before) and the refresh icon spins until it is finished. [#3685](https://github.com/BornToBeRoot/NETworkManager/pull/3685) - **Export...** exports the entries shown (search) in the order shown (sorting), the selected entries in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) **Neighbor Table** -- The list has its own heading **Neighbor entries** instead of repeating the name of the tool. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The list has its own heading **Neighbor entries** instead of repeating the name of the tool. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - The search filters after a short delay while typing instead of on every key press (smoother with many entries), `Enter` filters right away. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - The time of the last refresh (`Reloaded at 14:32`, the date in the tooltip) is shown in the header instead of a status line below the list; with **Automatically update every**, a countdown to the next refresh (`Next refresh in 00:04`). The line below the list only shows errors. A manual refresh is faster (the minimum of 2.5 seconds runs while loading, not before) and the refresh icon spins until it is finished. [#3685](https://github.com/BornToBeRoot/NETworkManager/pull/3685) - **Export...** exports the entries shown (search) in the order shown (sorting), the selected entries in the order shown instead of the order they were selected. The file is written in the background, so the window stays responsive. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) -- The **State** column shows a colored dot in front of the state: reachable green, stale / delay / probe yellow, incomplete / unreachable red, permanent gray. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The **State** column shows a colored dot in front of the state: reachable green, stale / delay / probe yellow, incomplete / unreachable red, permanent gray. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) ## Bug Fixes -- Fixed that the input of a running tool (e.g. the host of the **IP Scanner**, **Port Scanner**, **Ping Monitor**, **Traceroute** or **DNS Lookup**, the version / mode of **SNMP**) could still be changed by selecting an entry of the history (drop-down, `Up`/`Down`, `F4`). The input stays read-only while the tool is running, the text can still be selected and copied. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Fixed that the input of a running tool (e.g. the host of the **IP Scanner**, **Port Scanner**, **Ping Monitor**, **Traceroute** or **DNS Lookup**, the version / mode of **SNMP**) could still be changed by selecting an entry of the history (drop-down, `Up`/`Down`, `F4`). The input stays read-only while the tool is running, the text can still be selected and copied. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Fixed changes to lists in the settings (e.g. query histories, port profiles, custom commands) not being saved if no other setting was changed in the same session. This happened since the settings are stored as JSON. [#3607](https://github.com/BornToBeRoot/NETworkManager/pull/3607) - Fixed the profile search (profile list in the tools, **Profiles** settings and import result) filtering the profiles while still typing. The profiles are now filtered once after the user stopped typing, instead of every 750 ms after the first key press. [#3638](https://github.com/BornToBeRoot/NETworkManager/pull/3638) - Fixed the application list not scrolling to the selected application if it was opened from somewhere else (e.g. from the **Dashboard**, another application or the run command). [#3644](https://github.com/BornToBeRoot/NETworkManager/pull/3644) @@ -336,7 +336,7 @@ Release date: **xx.xx.2026** - Fixed `Enter` in the search box of the import result importing the profiles (default button). It filters the found profiles right away now, instead of after the delay while typing. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - Fixed columns that couldn't be made wider than the window (by dragging or double-clicking the gripper) in the groups (Settings > Profiles) and the import result. The grid scrolls horizontally now, the last (or main) column still fills the remaining width. [#3557](https://github.com/BornToBeRoot/NETworkManager/issues/3557) - Fixed the names of the features in the group dialog shown without spaces (e.g. `RemoteDesktop` instead of **Remote Desktop**). [#3667](https://github.com/BornToBeRoot/NETworkManager/pull/3667) -- Fixed closed dialogs (profile, group, import of Active Directory computers, import result, SNMP OID profiles) being kept in memory until the application was closed; resizing the main window also resized all of them. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Fixed closed dialogs (profile, group, import of Active Directory computers, import result, SNMP OID profiles) being kept in memory until the application was closed; resizing the main window also resized all of them. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Fixed the profiles of a group renamed only by case (e.g. `servers` → `Servers`) keeping the old group name. Opening them in a feature with group settings (e.g. **Remote Desktop**, **PuTTY**) failed, and editing one could create a second group with the old name. Profile files with such profiles are repaired when they are loaded. [#3667](https://github.com/BornToBeRoot/NETworkManager/pull/3667) **Dashboard** @@ -469,7 +469,7 @@ Release date: **xx.xx.2026** **PowerShell** -- Fixed **Apply theme to PowerShell console** not being applied to PowerShell from the Microsoft Store (path in `%LocalAppData%\Microsoft\WindowsApps\...`): the console profile is also written for the real path of the app. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- Fixed **Apply theme to PowerShell console** not being applied to PowerShell from the Microsoft Store (path in `%LocalAppData%\Microsoft\WindowsApps\...`): the console profile is also written for the real path of the app. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **SNMP** @@ -566,6 +566,6 @@ Release date: **xx.xx.2026** - Reworked the GitHub issue templates as forms (bug report, feature request, question) that ask for the relevant information (e.g. affected feature, version, installation, Windows version, log), with links to the documentation, discussions, translations and security advisories. Simplified the pull request template and removed the Copilot summary section. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - Faster CI: AppVeyor no longer builds a branch a second time when a PR is open, skips changes that only affect the documentation / website, builds ARM64 only for releases and now runs the unit tests. The website is only built for PRs that change it and builds about 3x faster (Docusaurus Faster). Dependabot also updates the GitHub Actions, and CodeQL also scans the workflows. Website changes are only merged automatically if the website builds. Dependabot major updates are no longer merged automatically. Removed the stale bot. [#3675](https://github.com/BornToBeRoot/NETworkManager/pull/3675) - The exports (CSV, XML, JSON) of all tools define their columns once and are written by one shared writer, so the three formats can't drift apart and every tool formats the same kind of value the same way (not translated), see [Export format](../faq/export-format.md). Added unit tests for the exports. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) -- The icons are imported from the original SVG files of Lucide (`Scripts/Create-LucideIcons.ps1`, only the used icons) and drawn by an own control, the MahApps.Metro.IconPacks packages are removed. [#XXXX](https://github.com/BornToBeRoot/NETworkManager/pull/XXXX) +- The icons are imported from the original SVG files of Lucide (`Scripts/Create-LucideIcons.ps1`, only the used icons) and drawn by an own control, the MahApps.Metro.IconPacks packages are removed. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Language files updated via [#transifex](https://github.com/BornToBeRoot/NETworkManager/pulls?q=author%3Aapp%2Ftransifex-integration) - Dependencies updated via [#dependabot](https://github.com/BornToBeRoot/NETworkManager/pulls?q=author%3Aapp%2Fdependabot) From 2b5030c2925f252d4075d60202114586bc67bff4 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:08:25 +0100 Subject: [PATCH 195/232] Fix: PowerShell profile written synchronously, only the alias resolve in the background (review 2 #1) A session started right after the start or a theme change could open before the registry had the new colors, and the first alias resolve held the lock for up to ~12 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../PowerShell/PowerShell.cs | 35 +++++++++++------- .../ViewModels/PowerShellHostViewModel.cs | 36 ++++++++++++++----- 2 files changed, 51 insertions(+), 20 deletions(-) diff --git a/Source/NETworkManager.Models/PowerShell/PowerShell.cs b/Source/NETworkManager.Models/PowerShell/PowerShell.cs index 2c68ac9971..9921dba7c9 100644 --- a/Source/NETworkManager.Models/PowerShell/PowerShell.cs +++ b/Source/NETworkManager.Models/PowerShell/PowerShell.cs @@ -66,9 +66,9 @@ public static class PowerShell /// /// 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 - the - /// profile is written for the alias and for the real path, so it applies whichever the console uses as title. - /// Resolving the alias starts it once (can take a moment, call it in the background). + /// executable in C:\Program Files\WindowsApps\Microsoft.PowerShell_7.x.x.0_x64__8wekyb3d8bbwe\pwsh.exe - write + /// the profile for the real path too (<see cref="ResolveAppExecutionAlias" />), so it applies whichever the + /// console uses as title. /// </summary> /// <param name="background">Background of the console (DefaultBackground, ColorTable00).</param> /// <param name="foreground">Text of the console (ColorTable07).</param> @@ -77,19 +77,30 @@ public static void WriteDefaultProfileToRegistry((byte R, byte G, byte B) backgr (byte R, byte G, byte B) foreground, string powerShellPath) { WriteProfile(background, foreground, powerShellPath); + } - if (!IsAppExecutionAlias(powerShellPath)) - return; - - var resolved = ResolvedAliases.GetOrAdd(powerShellPath, x => new Lazy<string>(() => ResolveAppExecutionAlias(x))); + /// <summary> + /// 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. + /// </summary> + /// <param name="aliasPath">Path of the App Execution Alias.</param> + /// <returns>Real path, or <see langword="null" /> if it could not be resolved or is the alias itself.</returns> + public static string ResolveAppExecutionAlias(string aliasPath) + { + var resolved = ResolvedAliases.GetOrAdd(aliasPath, + x => new Lazy<string>(() => StartAndResolveAppExecutionAlias(x))); var realPath = resolved.Value; - // Not resolved (e.g. timeout): try again with the next write + // Not resolved (e.g. timeout): try again with the next call if (string.IsNullOrEmpty(realPath)) - ResolvedAliases.TryRemove(new KeyValuePair<string, Lazy<string>>(powerShellPath, resolved)); + { + ResolvedAliases.TryRemove(new KeyValuePair<string, Lazy<string>>(aliasPath, resolved)); + + return null; + } - if (!string.IsNullOrEmpty(realPath) && !string.Equals(realPath, powerShellPath, StringComparison.OrdinalIgnoreCase)) - WriteProfile(background, foreground, realPath); + return string.Equals(realPath, aliasPath, StringComparison.OrdinalIgnoreCase) ? null : realPath; } /// <summary> @@ -109,7 +120,7 @@ public static bool IsAppExecutionAlias(string path) /// (works with Windows PowerShell and PowerShell 7). /// </summary> /// <returns>Real path or <see langword="null" /> if it could not be resolved.</returns> - private static string ResolveAppExecutionAlias(string aliasPath) + private static string StartAndResolveAppExecutionAlias(string aliasPath) { try { diff --git a/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs b/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs index 52750a4354..91b6daffea 100644 --- a/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs +++ b/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs @@ -507,9 +507,10 @@ public override void OnViewVisible() } /// <summary> - /// Serializes the writes of the PowerShell profile (see <see cref="WriteDefaultProfileToRegistry" />). + /// Serializes the background writes of the profile for the real path of an App Execution Alias (see + /// <see cref="WriteDefaultProfileToRegistry" />). /// </summary> - private static readonly object RegistryWriteLock = new(); + private static readonly object AliasProfileWriteLock = new(); private void WriteDefaultProfileToRegistry() { @@ -521,22 +522,41 @@ private void WriteDefaultProfileToRegistry() Log.Debug("Write PowerShell profile to registry..."); - // In the background: an App Execution Alias (Microsoft Store) is started once to resolve the real path. One - // write at a time with the current colors and path, so the last write always has the latest values (e.g. after + var powerShellPath = SettingsManager.Current.PowerShell_ApplicationFilePath; + + // Synchronously (only a few registry values), so a session started right after has the current colors + try + { + PowerShell.WriteDefaultProfileToRegistry(AppearanceManager.ConsoleBackground, + AppearanceManager.ConsoleForeground, powerShellPath); + } + catch (Exception ex) + { + Log.Error("Could not write the PowerShell profile to the registry.", ex); + } + + if (!PowerShell.IsAppExecutionAlias(powerShellPath)) + return; + + // App Execution Alias (Microsoft Store): the alias is started once to resolve the real path, in the background. + // One write at a time with the current colors, so the last write always has the latest values (e.g. after // several theme changes) - not the values of a task that was started earlier Task.Run(() => { try { - lock (RegistryWriteLock) + lock (AliasProfileWriteLock) { - PowerShell.WriteDefaultProfileToRegistry(AppearanceManager.ConsoleBackground, - AppearanceManager.ConsoleForeground, SettingsManager.Current.PowerShell_ApplicationFilePath); + var realPath = PowerShell.ResolveAppExecutionAlias(powerShellPath); + + if (realPath != null) + PowerShell.WriteDefaultProfileToRegistry(AppearanceManager.ConsoleBackground, + AppearanceManager.ConsoleForeground, realPath); } } catch (Exception ex) { - Log.Error("Could not write the PowerShell profile to the registry.", ex); + Log.Error("Could not write the PowerShell profile of the App Execution Alias to the registry.", ex); } }); } From 40b10819c2936ad27bbc782d744a70de6550cb65 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:08:31 +0100 Subject: [PATCH 196/232] Fix: resolve only PowerShell App Execution Aliases (review 2 #5) Another Store alias configured as PowerShell (e.g. wt.exe) was started with PowerShell arguments to resolve its real path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager.Models/PowerShell/PowerShell.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Source/NETworkManager.Models/PowerShell/PowerShell.cs b/Source/NETworkManager.Models/PowerShell/PowerShell.cs index 9921dba7c9..197bb8c079 100644 --- a/Source/NETworkManager.Models/PowerShell/PowerShell.cs +++ b/Source/NETworkManager.Models/PowerShell/PowerShell.cs @@ -85,9 +85,18 @@ public static void WriteDefaultProfileToRegistry((byte R, byte G, byte B) backgr /// the background); a failed resolve is tried again with the next call. /// </summary> /// <param name="aliasPath">Path of the App Execution Alias.</param> - /// <returns>Real path, or <see langword="null" /> if it could not be resolved or is the alias itself.</returns> + /// <returns> + /// Real path, or <see langword="null" /> 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). + /// </returns> public static string ResolveAppExecutionAlias(string aliasPath) { + 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<string>(() => StartAndResolveAppExecutionAlias(x))); var realPath = resolved.Value; From 6d00dcc3b17a67789b46b7e0cd80b3e31b781e99 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:08:47 +0100 Subject: [PATCH 197/232] Fix: expander chevron in the wrong direction after a state change while hidden (review 2 #2) FindChevron skipped the expander itself when it was not visible (IsVisible), so the own transform kept the old angle and overrode the template trigger (e.g. collapse all, recycled containers). Check the own Visibility instead and set the angle without animation while the expander is hidden. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager/ExpanderAnimation.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/NETworkManager/ExpanderAnimation.cs b/Source/NETworkManager/ExpanderAnimation.cs index 456d3c15b5..5f0c102786 100644 --- a/Source/NETworkManager/ExpanderAnimation.cs +++ b/Source/NETworkManager/ExpanderAnimation.cs @@ -134,10 +134,11 @@ private static void RotateChevron(Expander expander, double from, double to) if (FindChevron(expander) is not { } chevron) return; - var animate = AppearanceManager.AnimationsEnabled; + // Not while hidden (e.g. all collapsed with the expander scrolled out / in a recycled container): nothing to see + var animate = AppearanceManager.AnimationsEnabled && expander.IsVisible; // Without animations: the trigger of the template sets the angle, unless an own transform was set before - // (animations turned off later) - then set its angle + // (animations turned off later, expander hidden) - then set its angle if (!animate) { if (chevron.RenderTransform is RotateTransform { IsFrozen: false } ownRotate) @@ -162,6 +163,8 @@ private static void RotateChevron(Expander expander, double from, double to) /// <summary> /// The chevron: the first visible element named <see cref="ChevronName"/> or with this tag (if several in one view, /// e.g. the profile panel) - breadth-first, the header is above the chevrons of nested expanders in the content. + /// Visible by its own <see cref="UIElement.Visibility"/> (not <see cref="UIElement.IsVisible"/>), so the chevron is + /// also found while the expander itself is hidden. /// </summary> private static FrameworkElement FindChevron(DependencyObject root) { @@ -173,7 +176,7 @@ private static FrameworkElement FindChevron(DependencyObject root) var element = queue.Dequeue(); // Hidden part (e.g. the other state): not its chevrons - if (element is UIElement { IsVisible: false }) + if (element is UIElement { Visibility: not Visibility.Visible }) continue; if (element is FrameworkElement chevron && !ReferenceEquals(element, root) && From a8e85a6aeddb59605805b9815af83de7f76e7563 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:13:03 +0100 Subject: [PATCH 198/232] Fix: chart colors follow a theme change (review 2 #3) The colors of the charts were taken once when a chart was created, so open charts kept the old palette and grid lines after a theme switch (e.g. 10 % white lines on a light theme). - AppearanceManager.ThemeResourcesChanged after the resources of a theme are applied - ChartColors: LabelPaint / SeparatorPaint / LineStroke / ApplyAxisColors, used to create and to update the charts - Ping Monitor (unsubscribed in Cleanup), Network Interface, WiFi (networks and legend by their palette index), speed test widget and the cities of the traceroute map (unfrozen brush, subscribed while loaded) set their colors again Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../AppearanceManager.cs | 8 ++ Source/NETworkManager/ChartColors.cs | 45 ++++++++- .../Controls/TracerouteMapControl.xaml.cs | 32 +++++-- .../Controls/WiFiChannelChart.cs | 3 +- .../ViewModels/NetworkInterfaceViewModel.cs | 66 ++++++++----- .../ViewModels/PingMonitorViewModel.cs | 47 +++++----- .../ViewModels/SpeedTestWidgetViewModel.cs | 28 +++++- .../ViewModels/WiFiViewModel.cs | 92 +++++++++++++------ 8 files changed, 231 insertions(+), 90 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 86a0568f9b..36cb48f247 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -119,6 +119,12 @@ public static class AppearanceManager /// </summary> public static event EventHandler ConsoleColorsChanged; + /// <summary> + /// Raised after the resources of a new theme are applied (see <see cref="ApplyThemeResources" />), e.g. to + /// update colors that are not taken from a <c>DynamicResource</c> (charts). + /// </summary> + 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; @@ -253,6 +259,8 @@ private static void ApplyThemeResources(Theme theme) ApplyControlStateBrushes(theme); ApplyStatusBrushes(theme); ApplyCustomThemeFixes(theme); + + ThemeResourcesChanged?.Invoke(null, EventArgs.Empty); } /// <summary> diff --git a/Source/NETworkManager/ChartColors.cs b/Source/NETworkManager/ChartColors.cs index b5b5a5550a..da9cf0de5c 100644 --- a/Source/NETworkManager/ChartColors.cs +++ b/Source/NETworkManager/ChartColors.cs @@ -1,7 +1,9 @@ using System.Windows; using System.Windows.Media; using LiveChartsCore.Painting; +using LiveChartsCore.SkiaSharpView; using LiveChartsCore.SkiaSharpView.Painting; +using LiveChartsCore.SkiaSharpView.Painting.Effects; using NETworkManager.Settings; using SkiaSharp; @@ -10,7 +12,8 @@ namespace NETworkManager; /// <summary> /// Colors of the charts and maps (Ping Monitor, bandwidth of the Network Interface, speed test, WiFi channels, /// cities of the traceroute map) for the current theme: the same hues in both themes, a bit brighter on the dark and -/// darker on the light background for contrast. Read when a chart is created. +/// darker on the light background for contrast. Read when a chart is created and set again on +/// <see cref="AppearanceManager.ThemeResourcesChanged"/> (the paints of an open chart don't follow the theme). /// </summary> public static class ChartColors { @@ -78,6 +81,46 @@ public static SKColor FromResource(string resourceKey, SKColor fallback) => (byte)System.Math.Round(brush.Color.A * brush.Opacity)) : fallback; + /// <summary> + /// Labels and names of the axes, text of a legend (<c>MahApps.Brushes.Gray5</c>). + /// </summary> + public static SKColor LabelColor => FromResource("MahApps.Brushes.Gray5", new SKColor(0x68, 0x68, 0x68)); + + /// <summary> + /// Labels and names of the axes. + /// </summary> + public static SolidColorPaint LabelPaint() => new(LabelColor); + + /// <summary> + /// Dashed grid lines (<c>Brushes.Surface.Border</c>, incl. the opacity of the brush). + /// </summary> + public static SolidColorPaint SeparatorPaint() => + new(FromResource("Brushes.Surface.Border", new SKColor(0x80, 0x80, 0x80, 0x40))) + { + StrokeThickness = 1, + PathEffect = new DashEffect([10f, 10f]) + }; + + /// <summary> + /// Line of a series. + /// </summary> + public static SolidColorPaint LineStroke(SKColor color) => new(color) { StrokeThickness = 1.5f }; + + /// <summary> + /// Sets the paints of an axis for the current theme: labels, name (if shown) and dashed grid lines (if shown). + /// </summary> + /// <param name="axis">Axis of a chart.</param> + public static void ApplyAxisColors(Axis axis) + { + axis.LabelsPaint = LabelPaint(); + + if (axis.NamePaint != null) + axis.NamePaint = LabelPaint(); + + if (axis.SeparatorsPaint != null) + axis.SeparatorsPaint = SeparatorPaint(); + } + /// <summary> /// <see cref="Primary"/> as WPF color (e.g. the traceroute map). /// </summary> diff --git a/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs b/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs index c49ec850c9..3c8c614950 100644 --- a/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs +++ b/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs @@ -2,6 +2,7 @@ using NETworkManager.Localization.Resources; using NETworkManager.Models.IPApi; using NETworkManager.Models.Network; +using NETworkManager.Settings; using System; using System.Collections; using System.Collections.Generic; @@ -81,8 +82,9 @@ public partial class TracerouteMapControl // Cities deliberately don't follow the accent: they use the main chart color (ChartColors.Primary, // like the speedtest download series, darker in the light theme) so they stay a consistent // "reference point" color that doesn't compete with the accent-colored traceroute path. - // Created with the map (theme of that moment). - private readonly Brush _cityBrush = FreezeBrush(ChartColors.PrimaryWpf); + // Not frozen: shared by all dots / labels, its color is set again after a theme change (see + // AppearanceManager_ThemeResourcesChanged). + private readonly SolidColorBrush _cityBrush = new(ChartColors.PrimaryWpf); // Shared by every label/dot so a single assignment (in ApplyTransform) keeps their on-screen // size constant while the map itself is scaled by the parent Canvas' zoom transform. Elements @@ -141,6 +143,7 @@ public TracerouteMapControl() InitializeComponent(); Loaded += TracerouteMapControl_Loaded; + Unloaded += TracerouteMapControl_Unloaded; } #region Dependency properties @@ -231,6 +234,12 @@ private static void OnIsExpandedChanged(DependencyObject d, DependencyPropertyCh private void TracerouteMapControl_Loaded(object sender, RoutedEventArgs e) { + // Color of the cities: also if the theme was changed while the control was unloaded (e.g. tab dragged out) + _cityBrush.Color = ChartColors.PrimaryWpf; + + AppearanceManager.ThemeResourcesChanged -= AppearanceManager_ThemeResourcesChanged; + AppearanceManager.ThemeResourcesChanged += AppearanceManager_ThemeResourcesChanged; + // TracerouteView binds this control's Visibility to ShowMap, which is false whenever IP // geolocation checking is disabled - the map can then never show anything (no hop has a // location to plot), so building ~900 city/country WPF elements for it here would be pure @@ -241,6 +250,17 @@ private void TracerouteMapControl_Loaded(object sender, RoutedEventArgs e) IsVisibleChanged += TracerouteMapControl_IsVisibleChanged; } + private void TracerouteMapControl_Unloaded(object sender, RoutedEventArgs e) + { + // The static event would keep the control (and the map) alive + AppearanceManager.ThemeResourcesChanged -= AppearanceManager_ThemeResourcesChanged; + } + + private void AppearanceManager_ThemeResourcesChanged(object sender, EventArgs e) + { + _cityBrush.Color = ChartColors.PrimaryWpf; + } + private void TracerouteMapControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { if (!IsVisible) @@ -1563,14 +1583,6 @@ private void ButtonResetView_Click(object sender, RoutedEventArgs e) #region Country data - private static Brush FreezeBrush(Color color) - { - var brush = new SolidColorBrush(color); - brush.Freeze(); - - return brush; - } - private static StreamGeometry BuildCountriesGeometry() { var geometry = new StreamGeometry(); diff --git a/Source/NETworkManager/Controls/WiFiChannelChart.cs b/Source/NETworkManager/Controls/WiFiChannelChart.cs index a83b2cf7fb..a2ce62d950 100644 --- a/Source/NETworkManager/Controls/WiFiChannelChart.cs +++ b/Source/NETworkManager/Controls/WiFiChannelChart.cs @@ -73,4 +73,5 @@ public void Clear() /// <param name="Color">Color of the series of the network.</param> /// <param name="Ssid">Shown SSID ("Hidden Network" for a hidden network).</param> /// <param name="Bssid">BSSID of the network.</param> -public record WiFiChannelLegendEntry(SolidColorBrush Color, string Ssid, string Bssid); +/// <param name="ColorIndex">Index of the color in the palette (to set the color again after a theme change).</param> +public record WiFiChannelLegendEntry(SolidColorBrush Color, string Ssid, string Bssid, int ColorIndex); diff --git a/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs b/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs index a15bfe04a0..13119109b1 100644 --- a/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs +++ b/Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs @@ -3,7 +3,6 @@ using LiveChartsCore.Kernel; using LiveChartsCore.SkiaSharpView; using LiveChartsCore.SkiaSharpView.Painting; -using LiveChartsCore.SkiaSharpView.Painting.Effects; using log4net; using MahApps.Metro.SimpleChildWindow; using NETworkManager.Controls; @@ -537,9 +536,34 @@ public NetworkInterfaceViewModel() // React to settings changes (e.g. the configurable bandwidth chart time window) SettingsManager.Current.PropertyChanged += SettingsManager_PropertyChanged; + // Colors of the bandwidth chart for the new theme (the paints don't follow the theme) + AppearanceManager.ThemeResourcesChanged += (_, _) => ApplyBandwidthChartColors(); + _isLoading = false; } + /// <summary> + /// Sets the colors of the bandwidth chart (series, axes, legend) for the current theme. + /// </summary> + private void ApplyBandwidthChartColors() + { + var colors = new[] { ChartColors.Primary, ChartColors.Secondary }; + + for (var i = 0; i < Series.Length && i < colors.Length; i++) + { + if (Series[i] is not LineSeries<LvlChartsDefaultInfo> series) + continue; + + series.Stroke = ChartColors.LineStroke(colors[i]); + series.Fill = ChartColors.AreaFill(colors[i]); + } + + ChartColors.ApplyAxisColors(BandwidthXAxes[0]); + ChartColors.ApplyAxisColors(BandwidthYAxes[0]); + + BandwidthLegendTextPaint = new SolidColorPaint(ChartColors.LabelColor) { SKTypeface = SKTypeface.Default }; + } + /// <summary> /// The visible chart time window in seconds, configurable via the settings. /// </summary> @@ -578,11 +602,6 @@ private void InitialBandwidthChart() var downloadColor = ChartColors.Primary; var uploadColor = ChartColors.Secondary; - var labelColor = ChartColors.FromResource("MahApps.Brushes.Gray5", new SKColor(0x68, 0x68, 0x68)); - - // Incl. the opacity of the brush (10 %) - var separatorColor = ChartColors.FromResource("Brushes.Surface.Border", new SKColor(0x80, 0x80, 0x80, 0x40)); - Series = [ new LineSeries<LvlChartsDefaultInfo> @@ -595,7 +614,7 @@ private void InitialBandwidthChart() GeometrySize = 0, LineSmoothness = 0.3, DataPadding = new LvcPoint(0, 0), - Stroke = new SolidColorPaint(downloadColor) { StrokeThickness = 1.5f }, + Stroke = ChartColors.LineStroke(downloadColor), Fill = ChartColors.AreaFill(downloadColor) }, new LineSeries<LvlChartsDefaultInfo> @@ -608,7 +627,7 @@ private void InitialBandwidthChart() GeometrySize = 0, LineSmoothness = 0.3, DataPadding = new LvcPoint(0, 0), - Stroke = new SolidColorPaint(uploadColor) { StrokeThickness = 1.5f }, + Stroke = ChartColors.LineStroke(uploadColor), Fill = ChartColors.AreaFill(uploadColor) } ]; @@ -621,12 +640,8 @@ private void InitialBandwidthChart() _bandwidthSessionStartTime.AddSeconds(value)), TextSize = 10, Padding = new Padding(0, 4, 0, 0), - LabelsPaint = new SolidColorPaint(labelColor), - SeparatorsPaint = new SolidColorPaint(separatorColor) - { - StrokeThickness = 1, - PathEffect = new DashEffect([10f, 10f]) - }, + LabelsPaint = ChartColors.LabelPaint(), + SeparatorsPaint = ChartColors.SeparatorPaint(), MinStep = BandwidthChartWindowSeconds / 4.0, ForceStepToMin = true } @@ -640,16 +655,12 @@ private void InitialBandwidthChart() Labeler = value => $"{FileSizeConverter.GetBytesReadable((long)value * 8)}it/s", TextSize = 11, Padding = new Padding(4, 0), - LabelsPaint = new SolidColorPaint(labelColor), - SeparatorsPaint = new SolidColorPaint(separatorColor) - { - StrokeThickness = 1, - PathEffect = new DashEffect([10f, 10f]) - } + LabelsPaint = ChartColors.LabelPaint(), + SeparatorsPaint = ChartColors.SeparatorPaint() } ]; - BandwidthLegendTextPaint = new SolidColorPaint(labelColor) { SKTypeface = SKTypeface.Default }; + BandwidthLegendTextPaint = new SolidColorPaint(ChartColors.LabelColor) { SKTypeface = SKTypeface.Default }; BandwidthXAxes[0].PropertyChanged += (_, args) => { @@ -691,7 +702,18 @@ private void InitialBandwidthChart() /// <summary> /// Gets the themed paint used for the chart legend text. /// </summary> - public SolidColorPaint BandwidthLegendTextPaint { get; private set; } + public SolidColorPaint BandwidthLegendTextPaint + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } /// <summary> /// Gets a value indicating whether the bandwidth chart is in live (auto-scrolling) mode. diff --git a/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs b/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs index 0f6aeccfbf..5ea49d17c2 100644 --- a/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs +++ b/Source/NETworkManager/ViewModels/PingMonitorViewModel.cs @@ -2,8 +2,6 @@ using LiveChartsCore.Drawing; using LiveChartsCore.Kernel; using LiveChartsCore.SkiaSharpView; -using LiveChartsCore.SkiaSharpView.Painting; -using LiveChartsCore.SkiaSharpView.Painting.Effects; using log4net; using MahApps.Metro.SimpleChildWindow; using NETworkManager.Localization.Resources; @@ -13,7 +11,6 @@ using NETworkManager.Settings; using NETworkManager.Utilities; using NETworkManager.Views; -using SkiaSharp; using System; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -60,6 +57,7 @@ public PingMonitorViewModel(Guid hostId, Action<Guid> removeHostByGuid, ExpandHostView = SettingsManager.Current.PingMonitor_ExpandHostView; SettingsManager.Current.PropertyChanged += SettingsManager_PropertyChanged; + AppearanceManager.ThemeResourcesChanged += AppearanceManager_ThemeResourcesChanged; } #endregion @@ -307,11 +305,6 @@ private void InitialTimeChart() var chartColor = ChartColors.Primary; - var labelColor = ChartColors.FromResource("MahApps.Brushes.Gray5", new SKColor(0x68, 0x68, 0x68)); - - // Incl. the opacity of the brush (10 %) - var separatorColor = ChartColors.FromResource("Brushes.Surface.Border", new SKColor(0x80, 0x80, 0x80, 0x40)); - Series = [ new LineSeries<LvlChartsDefaultInfo> @@ -324,7 +317,7 @@ private void InitialTimeChart() GeometrySize = 0, LineSmoothness = 0.3, DataPadding = new LvcPoint(0, 0), - Stroke = new SolidColorPaint(chartColor) { StrokeThickness = 1.5f }, + Stroke = ChartColors.LineStroke(chartColor), Fill = ChartColors.AreaFill(chartColor) } ]; @@ -337,12 +330,8 @@ private void InitialTimeChart() _sessionStartTime.AddSeconds(value)), TextSize = 10, Padding = new Padding(0, 4, 0, 0), - LabelsPaint = new SolidColorPaint(labelColor), - SeparatorsPaint = new SolidColorPaint(separatorColor) - { - StrokeThickness = 1, - PathEffect = new DashEffect([10f, 10f]) - }, + LabelsPaint = ChartColors.LabelPaint(), + SeparatorsPaint = ChartColors.SeparatorPaint(), MinStep = SettingsManager.Current.PingMonitor_ChartTime / 4.0, ForceStepToMin = true } @@ -358,12 +347,8 @@ private void InitialTimeChart() Labeler = value => $"{value} ms", TextSize = 11, Padding = new Padding(4, 0), - LabelsPaint = new SolidColorPaint(labelColor), - SeparatorsPaint = new SolidColorPaint(separatorColor) - { - StrokeThickness = 1, - PathEffect = new DashEffect([10f, 10f]) - } + LabelsPaint = ChartColors.LabelPaint(), + SeparatorsPaint = ChartColors.SeparatorPaint() } ]; @@ -821,12 +806,30 @@ private void Ping_PingException(object sender, PingExceptionArgs e) } /// <summary> - /// Unsubscribes from global settings changes. Must be called when the host is removed, + /// Unsubscribes from global settings and theme changes. Must be called when the host is removed, /// so this transient view model is not kept alive by the long-lived settings singleton. /// </summary> public void Cleanup() { SettingsManager.Current.PropertyChanged -= SettingsManager_PropertyChanged; + AppearanceManager.ThemeResourcesChanged -= AppearanceManager_ThemeResourcesChanged; + } + + /// <summary> + /// Colors of the chart for the new theme (the paints don't follow the theme). + /// </summary> + private void AppearanceManager_ThemeResourcesChanged(object sender, EventArgs e) + { + var chartColor = ChartColors.Primary; + + if (Series[0] is LineSeries<LvlChartsDefaultInfo> series) + { + series.Stroke = ChartColors.LineStroke(chartColor); + series.Fill = ChartColors.AreaFill(chartColor); + } + + ChartColors.ApplyAxisColors(PingXAxes[0]); + ChartColors.ApplyAxisColors(PingYAxes[0]); } private void SettingsManager_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) diff --git a/Source/NETworkManager/ViewModels/SpeedTestWidgetViewModel.cs b/Source/NETworkManager/ViewModels/SpeedTestWidgetViewModel.cs index e2c7baf8e5..87d8b6da8c 100644 --- a/Source/NETworkManager/ViewModels/SpeedTestWidgetViewModel.cs +++ b/Source/NETworkManager/ViewModels/SpeedTestWidgetViewModel.cs @@ -7,12 +7,11 @@ using LiveChartsCore.Drawing; using LiveChartsCore.Kernel.Sketches; using LiveChartsCore.SkiaSharpView; -using LiveChartsCore.SkiaSharpView.Painting; using log4net; using NETworkManager.Localization.Resources; using NETworkManager.Models.Cloudflare; +using NETworkManager.Settings; using NETworkManager.Utilities; -using SkiaSharp; namespace NETworkManager.ViewModels; @@ -180,7 +179,7 @@ public SpeedTestWidgetViewModel() GeometrySize = 1.5f, LineSmoothness = 0.3, DataPadding = new LvcPoint(0, 0), - Stroke = new SolidColorPaint(downloadColor) { StrokeThickness = 1.5f }, + Stroke = ChartColors.LineStroke(downloadColor), Fill = ChartColors.AreaFill(downloadColor) } ]; @@ -195,10 +194,31 @@ public SpeedTestWidgetViewModel() GeometrySize = 1.5f, LineSmoothness = 0.3, DataPadding = new LvcPoint(0, 0), - Stroke = new SolidColorPaint(uploadColor) { StrokeThickness = 1.5f }, + Stroke = ChartColors.LineStroke(uploadColor), Fill = ChartColors.AreaFill(uploadColor) } ]; + + // Colors of the sparklines for the new theme (the paints don't follow the theme) + AppearanceManager.ThemeResourcesChanged += (_, _) => ApplyChartColors(); + } + + /// <summary> + /// Sets the colors of the download / upload sparklines for the current theme. + /// </summary> + private void ApplyChartColors() + { + if (DownloadSeries[0] is LineSeries<double> download) + { + download.Stroke = ChartColors.LineStroke(ChartColors.Primary); + download.Fill = ChartColors.AreaFill(ChartColors.Primary); + } + + if (UploadSeries[0] is LineSeries<double> upload) + { + upload.Stroke = ChartColors.LineStroke(ChartColors.Secondary); + upload.Fill = ChartColors.AreaFill(ChartColors.Secondary); + } } private void RunAction() diff --git a/Source/NETworkManager/ViewModels/WiFiViewModel.cs b/Source/NETworkManager/ViewModels/WiFiViewModel.cs index c6452e2dd6..4dabdc89b9 100644 --- a/Source/NETworkManager/ViewModels/WiFiViewModel.cs +++ b/Source/NETworkManager/ViewModels/WiFiViewModel.cs @@ -3,7 +3,6 @@ using LiveChartsCore.Kernel; using LiveChartsCore.SkiaSharpView; using LiveChartsCore.SkiaSharpView.Painting; -using LiveChartsCore.SkiaSharpView.Painting.Effects; using log4net; using MahApps.Metro.SimpleChildWindow; using NETworkManager.Controls; @@ -512,6 +511,9 @@ public WiFiViewModel() // bindings are never null - also if the WiFi API is not available or the access is denied (yet) InitializeCharts(); + // Colors of the charts for the new theme (the paints don't follow the theme) + AppearanceManager.ThemeResourcesChanged += (_, _) => ApplyChartColors(); + // Result view + search NetworksView = CollectionViewSource.GetDefaultView(Networks); NetworksView.SortDescriptions.Add(new SortDescription( @@ -1008,22 +1010,17 @@ private static HashSet<int> BuildChannelSet(int first, int last, int step) /// </summary> private void InitializeCharts() { - var labelColor = ChartColors.FromResource("MahApps.Brushes.Gray5", new SKColor(0x68, 0x68, 0x68)); - - // Incl. the opacity of the brush (10 %) - var separatorColor = ChartColors.FromResource("Brushes.Surface.Border", new SKColor(0x80, 0x80, 0x80, 0x40)); - // (min, max) in display space. The lower bound is extended below the first channel so the // left flank of its trapezoid reaches the baseline instead of being clipped. The 5 GHz // upper bound is reduced because the 64..100 dead zone is compressed. - Chart2Dot4GHz = new WiFiChannelChart(BuildXAxes(-2, 16, ValidChannels2Dot4GHz, WiFiRadio.GHz2dot4, labelColor), - BuildYAxes(labelColor, separatorColor), BuildSections()); - Chart5GHz = new WiFiChannelChart(BuildXAxes(30, 160, ValidChannels5GHz, WiFiRadio.GHz5, labelColor), - BuildYAxes(labelColor, separatorColor), BuildSections()); - Chart6GHzLower = new WiFiChannelChart(BuildXAxes(-6, 128, ValidChannels6GHz, WiFiRadio.GHz6, labelColor), - BuildYAxes(labelColor, separatorColor), BuildSections()); - Chart6GHzUpper = new WiFiChannelChart(BuildXAxes(126, 236, ValidChannels6GHz, WiFiRadio.GHz6, labelColor), - BuildYAxes(labelColor, separatorColor), BuildSections()); + Chart2Dot4GHz = new WiFiChannelChart(BuildXAxes(-2, 16, ValidChannels2Dot4GHz, WiFiRadio.GHz2dot4), + BuildYAxes(), BuildSections()); + Chart5GHz = new WiFiChannelChart(BuildXAxes(30, 160, ValidChannels5GHz, WiFiRadio.GHz5), + BuildYAxes(), BuildSections()); + Chart6GHzLower = new WiFiChannelChart(BuildXAxes(-6, 128, ValidChannels6GHz, WiFiRadio.GHz6), + BuildYAxes(), BuildSections()); + Chart6GHzUpper = new WiFiChannelChart(BuildXAxes(126, 236, ValidChannels6GHz, WiFiRadio.GHz6), + BuildYAxes(), BuildSections()); } /// <summary> @@ -1031,15 +1028,14 @@ private void InitializeCharts() /// Only channels contained in <paramref name="validChannels" /> are labeled; all other tick /// positions stay blank (see <see cref="WiFiChannelAxis" />). /// </summary> - private static Axis[] BuildXAxes(double min, double max, HashSet<int> validChannels, WiFiRadio radio, - SKColor labelColor) + private static Axis[] BuildXAxes(double min, double max, HashSet<int> validChannels, WiFiRadio radio) { return [ new Axis { Name = Strings.Channel, - NamePaint = new SolidColorPaint(labelColor), + NamePaint = ChartColors.LabelPaint(), NameTextSize = 11, MinLimit = min, MaxLimit = max, @@ -1053,7 +1049,7 @@ private static Axis[] BuildXAxes(double min, double max, HashSet<int> validChann }, TextSize = 10, Padding = new Padding(0, 4, 0, 0), - LabelsPaint = new SolidColorPaint(labelColor), + LabelsPaint = ChartColors.LabelPaint(), // No vertical grid lines (matches the legacy chart). SeparatorsPaint = null } @@ -1063,14 +1059,14 @@ private static Axis[] BuildXAxes(double min, double max, HashSet<int> validChann /// <summary> /// Builds the Y-axis (signal strength in dBm, -100..0) shared by all three channel charts. /// </summary> - private static Axis[] BuildYAxes(SKColor labelColor, SKColor separatorColor) + private static Axis[] BuildYAxes() { return [ new Axis { Name = Strings.SignalStrength, - NamePaint = new SolidColorPaint(labelColor), + NamePaint = ChartColors.LabelPaint(), NameTextSize = 11, MinLimit = 0, MaxLimit = 100, @@ -1080,12 +1076,8 @@ private static Axis[] BuildYAxes(SKColor labelColor, SKColor separatorColor) Labeler = value => $"{(int)Math.Round(value) - (int)SignalOffset} dBm", TextSize = 11, Padding = new Padding(4, 0), - LabelsPaint = new SolidColorPaint(labelColor), - SeparatorsPaint = new SolidColorPaint(separatorColor) - { - StrokeThickness = 1, - PathEffect = new DashEffect([10f, 10f]) - } + LabelsPaint = ChartColors.LabelPaint(), + SeparatorsPaint = ChartColors.SeparatorPaint() } ]; } @@ -1173,16 +1165,56 @@ private static (LineSeries<WiFiChannelPoint> Series, WiFiChannelLegendEntry Lege Mapping = (point, _) => new Coordinate(point.ChannelAxis, point.Dbm + SignalOffset), GeometrySize = 0, LineSmoothness = 0, - Stroke = new SolidColorPaint(color) { StrokeThickness = 1.5f }, - Fill = new SolidColorPaint(color.WithAlpha(0x33)) + Stroke = ChartColors.LineStroke(color), + Fill = NetworkFill(color) }; - var wpfColor = Color.FromArgb(color.Alpha, color.Red, color.Green, color.Blue); - var legend = new WiFiChannelLegendEntry(new SolidColorBrush(wpfColor), ssid, network.Bssid); + var legend = new WiFiChannelLegendEntry(ToBrush(color), ssid, network.Bssid, colorIndex); return (series, legend); } + /// <summary> + /// Area of a network (trapezoid). + /// </summary> + private static SolidColorPaint NetworkFill(SKColor color) => new(color.WithAlpha(0x33)); + + /// <summary> + /// Color of a network in the legend. + /// </summary> + private static SolidColorBrush ToBrush(SKColor color) => + new(Color.FromArgb(color.Alpha, color.Red, color.Green, color.Blue)); + + /// <summary> + /// Sets the colors of the channel charts (axes, networks, legend) for the current theme. + /// </summary> + private void ApplyChartColors() + { + foreach (var chart in new[] { Chart2Dot4GHz, Chart5GHz, Chart6GHzLower, Chart6GHzUpper }) + { + foreach (var axis in chart.XAxes.Concat(chart.YAxes)) + ChartColors.ApplyAxisColors(axis); + + var legend = new List<WiFiChannelLegendEntry>(); + + for (var i = 0; i < chart.Legend.Length; i++) + { + var entry = chart.Legend[i]; + var color = ChartColors.GetPaletteColor(entry.ColorIndex); + + if (i < chart.Series.Length && chart.Series[i] is LineSeries<WiFiChannelPoint> series) + { + series.Stroke = ChartColors.LineStroke(color); + series.Fill = NetworkFill(color); + } + + legend.Add(entry with { Color = ToBrush(color) }); + } + + chart.Update(chart.Series, legend); + } + } + /// <summary> /// Compares the networks of a scan with the previous scan of the same adapter: marks new and changed networks, /// adds the networks that are gone (shown until the next scan). The scan becomes the one the next scan is From 8f115369c9cd0c718e3bf9494ef7847910ff9a5f Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:14:46 +0100 Subject: [PATCH 199/232] Design: status messages of Traceroute, SNTP Lookup, Ping Monitor and Web Console settings with level (review 2 #4) The last StatusMessageTextBlock places (D12 missed them, three of them still in the accent color) use StatusMessageText with StatusMessageLevel like the other tools: - Traceroute: errors red; rate limit, maximum hops reached yellow; canceled info - SNTP Lookup: errors red - Ping Monitor: hostnames not resolved red, all excluded yellow, canceled info (like IP / Port Scanner) - Web Console settings: browsing data deleted green, error red Unused StatusMessageTextBlock style removed, conventions updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../feature-review/references/conventions.md | 4 ++- .../Resources/Styles/TextBlockStyles.xaml | 2 -- .../ViewModels/PingMonitorHostViewModel.cs | 27 ++++++++++++++-- .../ViewModels/SNTPLookupViewModel.cs | 18 +++++++++++ .../ViewModels/TracerouteViewModel.cs | 32 ++++++++++++++++--- .../ViewModels/WebConsoleSettingsViewModel.cs | 19 +++++++++++ .../Views/PingMonitorHostView.xaml | 4 +-- .../NETworkManager/Views/SNTPLookupView.xaml | 4 +-- .../NETworkManager/Views/TracerouteView.xaml | 4 +-- .../Views/WebConsoleSettingsView.xaml | 7 ++-- 10 files changed, 101 insertions(+), 20 deletions(-) diff --git a/.claude/skills/feature-review/references/conventions.md b/.claude/skills/feature-review/references/conventions.md index 0424c000cf..218eaab5ce 100644 --- a/.claude/skills/feature-review/references/conventions.md +++ b/.claude/skills/feature-review/references/conventions.md @@ -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/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml index 2a07c97aaf..5d36e9292a 100644 --- a/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml @@ -96,8 +96,6 @@ <Setter Property="TextWrapping" Value="Wrap" /> </Style> - <Style x:Key="StatusMessageTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource WrapTextBlock}" /> - <!-- Status message of a tool (icons:StatusMessageText): icon (16) + text in the color of the level - info gray, success green, warning yellow, error red. Implicit style --> <Style x:Key="DefaultStatusMessageText" TargetType="{x:Type icons:StatusMessageText}"> diff --git a/Source/NETworkManager/ViewModels/PingMonitorHostViewModel.cs b/Source/NETworkManager/ViewModels/PingMonitorHostViewModel.cs index 625abfbdb3..8409ed640a 100644 --- a/Source/NETworkManager/ViewModels/PingMonitorHostViewModel.cs +++ b/Source/NETworkManager/ViewModels/PingMonitorHostViewModel.cs @@ -1,3 +1,4 @@ +using NETworkManager.Controls; using NETworkManager.Converters; using NETworkManager.Localization.Resources; using NETworkManager.Models; @@ -118,6 +119,22 @@ private set } } + /// <summary> + /// Gets the level of the status message (icon and color, the most severe of the added messages). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + /// <summary> /// Gets or sets the list of ping monitor views. /// </summary> @@ -309,9 +326,11 @@ public bool SetHost(string host, string group = null) /// resolved). The messages are cleared when a scan starts. /// </summary> /// <param name="message">Message to show.</param> - private void AddStatusMessage(string message) + /// <param name="level">Level of the message; the most severe of the shown messages is used.</param> + private void AddStatusMessage(string message, StatusLevel level) { StatusMessage = IsStatusMessageDisplayed ? StatusMessage + Environment.NewLine + message : message; + StatusMessageLevel = IsStatusMessageDisplayed ? StatusMessageLevel.MostSevere(level) : level; IsStatusMessageDisplayed = true; } @@ -345,11 +364,12 @@ public async Task Start() // Show error message if (some) hostnames could not be resolved if (hosts.hostnamesNotResolved.Count > 0) AddStatusMessage( - $"{Strings.TheFollowingHostnamesCouldNotBeResolved} {string.Join(", ", hosts.hostnamesNotResolved)}"); + $"{Strings.TheFollowingHostnamesCouldNotBeResolved} {string.Join(", ", hosts.hostnamesNotResolved)}", + StatusLevel.Error); // The exclusions removed every host (also if hostnames could not be resolved, keep their message) if (hosts.hosts.Count == 0 && hosts.excludedCount > 0) - AddStatusMessage(Strings.AllIPAddressesAreExcludedMessage); + AddStatusMessage(Strings.AllIPAddressesAreExcludedMessage, StatusLevel.Warning); // No host left (hostnames that could not be resolved, everything excluded): nothing to add, the input is kept // to correct it @@ -436,6 +456,7 @@ private void RemoveHostByGuid(Guid hostId) private void UserHasCanceled() { StatusMessage = Strings.CanceledByUserMessage; + StatusMessageLevel = StatusLevel.None; IsStatusMessageDisplayed = true; IsCanceling = false; diff --git a/Source/NETworkManager/ViewModels/SNTPLookupViewModel.cs b/Source/NETworkManager/ViewModels/SNTPLookupViewModel.cs index b69cd859c8..5f586f04a1 100644 --- a/Source/NETworkManager/ViewModels/SNTPLookupViewModel.cs +++ b/Source/NETworkManager/ViewModels/SNTPLookupViewModel.cs @@ -128,6 +128,22 @@ private set } } + /// <summary> + /// Gets the level of the status message (icon and color). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + #endregion #region Contructor, load settings @@ -194,6 +210,7 @@ private void Query() { IsStatusMessageDisplayed = false; StatusMessage = string.Empty; + StatusMessageLevel = StatusLevel.None; IsRunning = true; @@ -289,6 +306,7 @@ private void Lookup_LookupError(object sender, SNTPLookupErrorArgs e) StatusMessage += Environment.NewLine; StatusMessage += e.IsDNSError ? e.ErrorMessage : $"{e.Server} ({e.IPEndPoint}) ==> {e.ErrorMessage}"; + StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } diff --git a/Source/NETworkManager/ViewModels/TracerouteViewModel.cs b/Source/NETworkManager/ViewModels/TracerouteViewModel.cs index f4429f0ac6..58a06ddba3 100644 --- a/Source/NETworkManager/ViewModels/TracerouteViewModel.cs +++ b/Source/NETworkManager/ViewModels/TracerouteViewModel.cs @@ -180,6 +180,22 @@ private set OnPropertyChanged(); } } + + /// <summary> + /// Gets the level of the status message (icon and color, the most severe of the appended messages). + /// </summary> + public StatusLevel StatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } public bool ExpandMapView { @@ -386,6 +402,7 @@ private async Task StartTrace() { _ipGeolocationRateLimitIsReached = false; StatusMessage = string.Empty; + StatusMessageLevel = StatusLevel.None; IsStatusMessageDisplayed = false; IsRunning = true; @@ -537,7 +554,8 @@ private void Traceroute_HopReceived(object sender, TracerouteHopReceivedArgs e) $"ip-api.com rate limit reached. Try again in {e.Args.IPGeolocationResult.RateLimitRemainingTime} seconds."); DisplayStatusMessage( - $"ip-api.com {string.Format(Strings.RateLimitReachedTryAgainInXSeconds, e.Args.IPGeolocationResult.RateLimitRemainingTime)}"); + $"ip-api.com {string.Format(Strings.RateLimitReachedTryAgainInXSeconds, e.Args.IPGeolocationResult.RateLimitRemainingTime)}", + StatusLevel.Warning); } Results.Add(e.Args); @@ -546,13 +564,13 @@ private void Traceroute_HopReceived(object sender, TracerouteHopReceivedArgs e) private void Traceroute_MaximumHopsReached(object sender, MaximumHopsReachedArgs e) { - DisplayStatusMessage(string.Format(Strings.MaximumNumberOfHopsReached, e.Hops)); + DisplayStatusMessage(string.Format(Strings.MaximumNumberOfHopsReached, e.Hops), StatusLevel.Warning); IsRunning = false; } private void Traceroute_UserHasCanceled(object sender, EventArgs e) { - DisplayStatusMessage(Strings.CanceledByUserMessage); + DisplayStatusMessage(Strings.CanceledByUserMessage, StatusLevel.None); CancelTrace = false; IsRunning = false; } @@ -568,12 +586,18 @@ private void Traceroute_TraceComplete(object sender, EventArgs e) IsRunning = false; } - private void DisplayStatusMessage(string message) + /// <summary> + /// Appends a message to the status message; the level is the most severe of the appended messages. + /// </summary> + /// <param name="message">Message to append.</param> + /// <param name="level">Level of the message.</param> + private void DisplayStatusMessage(string message, StatusLevel level = StatusLevel.Error) { if (!string.IsNullOrEmpty(StatusMessage)) StatusMessage += Environment.NewLine; StatusMessage += message; + StatusMessageLevel = StatusMessageLevel.MostSevere(level); IsStatusMessageDisplayed = true; } diff --git a/Source/NETworkManager/ViewModels/WebConsoleSettingsViewModel.cs b/Source/NETworkManager/ViewModels/WebConsoleSettingsViewModel.cs index 45753fe5e2..2cc7ee0cf7 100644 --- a/Source/NETworkManager/ViewModels/WebConsoleSettingsViewModel.cs +++ b/Source/NETworkManager/ViewModels/WebConsoleSettingsViewModel.cs @@ -1,6 +1,7 @@ using log4net; using MahApps.Metro.SimpleChildWindow; using Microsoft.Web.WebView2.Core; +using NETworkManager.Controls; using NETworkManager.Localization.Resources; using NETworkManager.Settings; using NETworkManager.Utilities; @@ -53,6 +54,22 @@ private set } } + /// <summary> + /// Gets the level of the result of deleting the browsing data (icon and color). + /// </summary> + public StatusLevel DeleteBrowsingDataStatusMessageLevel + { + get; + private set + { + if (value == field) + return; + + field = value; + OnPropertyChanged(); + } + } + public bool ShowAddressBar { get; @@ -164,6 +181,7 @@ private async Task DeleteBrowsingData() await webView2Controller.CoreWebView2.Profile.ClearBrowsingDataAsync(); DeleteBrowsingDataStatusMessage = Strings.BrowsingDataSuccessfullyDeletedMessage; + DeleteBrowsingDataStatusMessageLevel = StatusLevel.Success; } catch (Exception ex) { @@ -171,6 +189,7 @@ private async Task DeleteBrowsingData() Log.Error("Error while deleting the browsing data of the WebView2 profile.", ex); DeleteBrowsingDataStatusMessage = Strings.BrowsingDataErrorMessage; + DeleteBrowsingDataStatusMessageLevel = StatusLevel.Error; } finally { diff --git a/Source/NETworkManager/Views/PingMonitorHostView.xaml b/Source/NETworkManager/Views/PingMonitorHostView.xaml index b632eb9ba5..c7fc8f83c3 100644 --- a/Source/NETworkManager/Views/PingMonitorHostView.xaml +++ b/Source/NETworkManager/Views/PingMonitorHostView.xaml @@ -195,10 +195,10 @@ </Style> </mahAppsControls:MetroProgressBar.Style> </mahAppsControls:MetroProgressBar> - <TextBlock Grid.Row="2" Foreground="{DynamicResource ResourceKey=MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Row="2" Text="{Binding Path=StatusMessage}" Visibility="{Binding Path=IsStatusMessageDisplayed, Converter={StaticResource ResourceKey=BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource ResourceKey=StatusMessageTextBlock}" Margin="0,10,0,0" /> + Margin="0,10,0,0" /> </Grid> <ScrollViewer Grid.Column="0" Grid.Row="2" HorizontalScrollBarVisibility="Auto"> diff --git a/Source/NETworkManager/Views/SNTPLookupView.xaml b/Source/NETworkManager/Views/SNTPLookupView.xaml index 127e46a423..ab1cb518d9 100644 --- a/Source/NETworkManager/Views/SNTPLookupView.xaml +++ b/Source/NETworkManager/Views/SNTPLookupView.xaml @@ -104,11 +104,9 @@ </Style> </mahAppsControls:MetroProgressBar.Style> </mahAppsControls:MetroProgressBar> - <TextBlock Grid.Column="0" Grid.Row="2" - Foreground="{DynamicResource ResourceKey=MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Column="0" Grid.Row="2" Text="{Binding Path=StatusMessage}" Visibility="{Binding Path=IsStatusMessageDisplayed, Converter={StaticResource ResourceKey=BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource ResourceKey=StatusMessageTextBlock}" Margin="0,10,0,0" /> </Grid> <TextBlock Grid.Column="0" Grid.Row="2" diff --git a/Source/NETworkManager/Views/TracerouteView.xaml b/Source/NETworkManager/Views/TracerouteView.xaml index c7072cd95f..dd5d47a2b1 100644 --- a/Source/NETworkManager/Views/TracerouteView.xaml +++ b/Source/NETworkManager/Views/TracerouteView.xaml @@ -145,10 +145,10 @@ <mahAppsControls:MetroProgressBar Grid.Row="1" Margin="0,10,0,0" Visibility="{Binding IsRunning, Converter={StaticResource ResourceKey=BooleanToVisibilityCollapsedConverter}}" IsIndeterminate="True" /> - <TextBlock Grid.Row="2" Foreground="{DynamicResource ResourceKey=MahApps.Brushes.Accent}" + <icons:StatusMessageText Level="{Binding StatusMessageLevel}" Grid.Row="2" Text="{Binding Path=StatusMessage}" Visibility="{Binding IsStatusMessageDisplayed, Converter={StaticResource ResourceKey=BooleanToVisibilityCollapsedConverter}}" - Style="{DynamicResource ResourceKey=StatusMessageTextBlock}" Margin="0,10,0,0" /> + Margin="0,10,0,0" /> </Grid> <TextBlock Grid.Row="2" Margin="10,0,10,0" Text="{x:Static Member=localization:Strings.Route}" Style="{StaticResource ResourceKey=HeaderTextBlock}" /> diff --git a/Source/NETworkManager/Views/WebConsoleSettingsView.xaml b/Source/NETworkManager/Views/WebConsoleSettingsView.xaml index 9eb3ebba38..35b916222f 100644 --- a/Source/NETworkManager/Views/WebConsoleSettingsView.xaml +++ b/Source/NETworkManager/Views/WebConsoleSettingsView.xaml @@ -6,6 +6,7 @@ xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters" + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:WebConsoleSettingsViewModel}"> <UserControl.Resources> @@ -43,9 +44,9 @@ Margin="0,0,0,10" /> <Button Content="{x:Static localization:Strings.DeleteBrowsingData}" Command="{Binding Path=DeleteBrowsingDataCommand}" Style="{StaticResource DefaultButton}" HorizontalAlignment="Left" /> - <TextBlock Text="{Binding DeleteBrowsingDataStatusMessage}" + <icons:StatusMessageText Level="{Binding DeleteBrowsingDataStatusMessageLevel}" + Text="{Binding DeleteBrowsingDataStatusMessage}" Visibility="{Binding IsDeleteBrowsingDataStatusMessageDisplayed, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" - Margin="0,10,0,0" - Style="{StaticResource StatusMessageTextBlock}" /> + Margin="0,10,0,0" /> </StackPanel> </UserControl> From d3090b7fb2fbf750cf5b99400d17c9ad412789c0 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:15:16 +0100 Subject: [PATCH 200/232] Fix: notification slides its content in instead of the window (review 2 #7) The window started 40 px right of the work area and was briefly visible on a monitor to the right. Now the window is placed at its position and the content slides in (TranslateTransform) and fades in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager/NotificationWindow.xaml | 2 +- .../NETworkManager/NotificationWindow.xaml.cs | 27 +++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/Source/NETworkManager/NotificationWindow.xaml b/Source/NETworkManager/NotificationWindow.xaml index ab1242ba7d..2fec098aa4 100644 --- a/Source/NETworkManager/NotificationWindow.xaml +++ b/Source/NETworkManager/NotificationWindow.xaml @@ -24,7 +24,7 @@ Closing="MetroWindow_Closing"> <!-- Clicking anywhere on the popup (except the close button) opens the main window. Background="Transparent" makes the empty areas hit-test visible. --> - <Grid Background="Transparent" Cursor="Hand" + <Grid x:Name="Root" Background="Transparent" Cursor="Hand" ToolTip="{x:Static localization:Strings.Show}" MouseLeftButtonUp="Root_MouseLeftButtonUp"> <Grid.RowDefinitions> diff --git a/Source/NETworkManager/NotificationWindow.xaml.cs b/Source/NETworkManager/NotificationWindow.xaml.cs index 32332498fb..8c348d7851 100644 --- a/Source/NETworkManager/NotificationWindow.xaml.cs +++ b/Source/NETworkManager/NotificationWindow.xaml.cs @@ -222,28 +222,27 @@ private void ApplyPosition() } /// <summary> - /// Slides the popup in from the right edge of the screen (40 px, 200 ms, quadratic ease-out). Only the position: - /// the window is not transparent (rounded corners, shadow), so it can't fade. The animation is removed when it - /// ends, so <see cref="ApplyPosition"/> (stack changes) keeps working. Not without animations - /// (<see cref="AppearanceManager.AnimationsEnabled"/>). + /// Slides the content of the popup in from the right (40 px) and fades it in (200 ms, quadratic ease-out). The + /// content, not the window: the window would start outside the work area and could show up on a monitor to the + /// right, and it can't fade (not transparent: rounded corners, shadow). The window stays where + /// <see cref="ApplyPosition"/> puts it. Not without animations (<see cref="AppearanceManager.AnimationsEnabled"/>). /// </summary> private void SlideIn() { if (!AppearanceManager.AnimationsEnabled) return; - var animation = new System.Windows.Media.Animation.DoubleAnimation(Left + SlideInOffset, Left, - new Duration(TimeSpan.FromMilliseconds(200))) - { - EasingFunction = new System.Windows.Media.Animation.QuadraticEase - { EasingMode = System.Windows.Media.Animation.EasingMode.EaseOut }, - FillBehavior = System.Windows.Media.Animation.FillBehavior.Stop - }; + var duration = new Duration(TimeSpan.FromMilliseconds(200)); + var easing = new System.Windows.Media.Animation.QuadraticEase + { EasingMode = System.Windows.Media.Animation.EasingMode.EaseOut }; - // The local value (set by ApplyPosition, also if the stack changed during the animation) applies again - animation.Completed += (_, _) => BeginAnimation(LeftProperty, null); + var translate = new TranslateTransform(SlideInOffset, 0); + Root.RenderTransform = translate; - BeginAnimation(LeftProperty, animation); + translate.BeginAnimation(TranslateTransform.XProperty, + new System.Windows.Media.Animation.DoubleAnimation(SlideInOffset, 0, duration) { EasingFunction = easing }); + Root.BeginAnimation(OpacityProperty, + new System.Windows.Media.Animation.DoubleAnimation(0, 1, duration) { EasingFunction = easing }); } private const double SlideInOffset = 40; From 4cab6d49e476c71009557a43e3d0613633e5728f Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:15:28 +0100 Subject: [PATCH 201/232] Refactor: DNS Lookup error appended with AppendStatusMessage (review 2 #8) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../ViewModels/DNSLookupViewModel.cs | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs b/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs index 55a54a4130..d6a6845bdf 100644 --- a/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs +++ b/Source/NETworkManager/ViewModels/DNSLookupViewModel.cs @@ -624,25 +624,8 @@ private void DNSLookup_RecordReceived(object sender, DNSLookupRecordReceivedArgs /// </summary> private void DNSLookup_LookupError(object sender, DNSLookupErrorArgs e) { - Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(delegate - { - // Build the message based on the information in the DNSLookupErrorArgs - var statusMessage = $"{e.Query} @ {e.IPEndPoint} ==> {e.ErrorMessage}"; - - // Show the message - if (!IsStatusMessageDisplayed) - { - StatusMessage = statusMessage; - StatusMessageLevel = StatusMessageLevel.MostSevere(StatusLevel.Error); - IsStatusMessageDisplayed = true; - - return; - } - - // Append the message - StatusMessage += Environment.NewLine + statusMessage; - StatusMessageLevel = StatusMessageLevel.MostSevere(StatusLevel.Error); - })); + Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, + new Action(() => AppendStatusMessage($"{e.Query} @ {e.IPEndPoint} ==> {e.ErrorMessage}"))); } /// <summary> From 74828e7ccba8b07f085165fbbab9fbf0548a20fa Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:28:29 +0100 Subject: [PATCH 202/232] Fix: console colors notified after the whole theme is applied, PuTTY profile write guarded (review 3 #1) ConsoleColorsChanged was raised in the middle of ApplyControlStateBrushes and the PuTTY handler had no try/catch: a registry error aborted the rest of the theme (data grid / status brushes, light / dark override, charts), and the same theme was not applied again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager.Settings/AppearanceManager.cs | 6 ++++-- .../NETworkManager/ViewModels/PuTTYHostViewModel.cs | 12 ++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 36cb48f247..34fe27a74c 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -115,7 +115,8 @@ public static class AppearanceManager public static (byte R, byte G, byte B) ConsoleBoldForeground { get; private set; } = (0xFF, 0xFF, 0xFF); /// <summary> - /// Raised after a theme change when the console colors are set (to update the profiles of PuTTY / PowerShell). + /// Raised after a theme change, when all resources and the console colors are set (to update the profiles of + /// PuTTY / PowerShell). /// </summary> public static event EventHandler ConsoleColorsChanged; @@ -260,7 +261,9 @@ private static void ApplyThemeResources(Theme 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); + ConsoleColorsChanged?.Invoke(null, EventArgs.Empty); } /// <summary> @@ -425,7 +428,6 @@ private static void ApplyControlStateBrushes(Theme theme) ConsoleBackground = ToRgb(background); ConsoleForeground = ToRgb(Blend(background, foreground, ThemeVariants.IsDark(theme) ? 0.75 : 0.88)); ConsoleBoldForeground = ToRgb(foreground); - ConsoleColorsChanged?.Invoke(null, EventArgs.Empty); ApplyDataGridBrushes(theme, foreground); ApplyToggleSwitchDisabledBrushes(theme); diff --git a/Source/NETworkManager/ViewModels/PuTTYHostViewModel.cs b/Source/NETworkManager/ViewModels/PuTTYHostViewModel.cs index cf45661327..31dd0864c2 100644 --- a/Source/NETworkManager/ViewModels/PuTTYHostViewModel.cs +++ b/Source/NETworkManager/ViewModels/PuTTYHostViewModel.cs @@ -461,8 +461,16 @@ private void WriteDefaultProfileToRegistry() Log.Debug("Write PuTTY profile to registry..."); - PuTTY.WriteDefaultProfileToRegistry(AppearanceManager.ConsoleBackground, AppearanceManager.ConsoleForeground, - AppearanceManager.ConsoleBoldForeground); + // Also called on a theme change: an error (e.g. access denied) must not break it + try + { + PuTTY.WriteDefaultProfileToRegistry(AppearanceManager.ConsoleBackground, + AppearanceManager.ConsoleForeground, AppearanceManager.ConsoleBoldForeground); + } + catch (Exception ex) + { + Log.Error("Could not write the PuTTY profile to the registry.", ex); + } } #endregion From 50d47eba4a860512453004cd5a6a8fdf5fe7d823 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:28:35 +0100 Subject: [PATCH 203/232] Fix: LucideIcon froze its Foreground brush with the pen (review 3 #2) Pen.Freeze() also freezes the brush: a shared brush was frozen as a side effect, and an animated or bound brush made the render throw. The pen is frozen only if the brush is frozen already. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager.Controls/LucideIcon.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/NETworkManager.Controls/LucideIcon.cs b/Source/NETworkManager.Controls/LucideIcon.cs index 1a164d26d0..9bb2cfe692 100644 --- a/Source/NETworkManager.Controls/LucideIcon.cs +++ b/Source/NETworkManager.Controls/LucideIcon.cs @@ -135,7 +135,10 @@ protected override void OnRender(DrawingContext drawingContext) LineJoin = PenLineJoin.Round }; - pen.Freeze(); + // 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); } From ba6271c7097acec512166cee51dc0d77f8edeba3 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:28:45 +0100 Subject: [PATCH 204/232] Fix: help window (--help) without window background and button brushes (review 3 #3) The brushes computed from the theme (Brushes.Surface.Window, Brushes.Button.*, ...) are created by AppearanceManager.Load(), which only the main window called. Load the appearance before the help window is shown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager/App.xaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/NETworkManager/App.xaml.cs b/Source/NETworkManager/App.xaml.cs index d041c1c105..5389036e1a 100644 --- a/Source/NETworkManager/App.xaml.cs +++ b/Source/NETworkManager/App.xaml.cs @@ -112,6 +112,10 @@ by BornToBeRoot // Show help window if (CommandLineManager.Current.Help) { + // Theme and the brushes computed from it (window background, buttons, borders), otherwise loaded by the + // main window + AppearanceManager.Load(); + Log.Info("Set StartupUri to CommandLineWindow.xaml..."); StartupUri = new Uri("CommandLineWindow.xaml", UriKind.Relative); From 10752558fbb57d830bfa00e613431e1ea0e7601a Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:28:54 +0100 Subject: [PATCH 205/232] Fix: console profiles only written if the console colors changed (review 3 #4) Every theme / accent change rewrote the PuTTY and PowerShell profiles in the registry (and queued another alias resolve, retried after a failed one), also when only the accent changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager.Settings/AppearanceManager.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 34fe27a74c..856e6b8c2e 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -115,8 +115,8 @@ public static class AppearanceManager public static (byte R, byte G, byte B) ConsoleBoldForeground { get; private set; } = (0xFF, 0xFF, 0xFF); /// <summary> - /// Raised after a theme change, when all resources and the console colors are set (to update the profiles of - /// PuTTY / PowerShell). + /// Raised after a theme change that changed the console colors, when all resources are set (to update the + /// profiles of PuTTY / PowerShell). /// </summary> public static event EventHandler ConsoleColorsChanged; @@ -257,13 +257,18 @@ private static void ApplyThemeResources(Theme theme) _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); - ConsoleColorsChanged?.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); } /// <summary> From a18c30bd441e5ecb01ba64e0f90980b3bd6a3de5 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:29:05 +0100 Subject: [PATCH 206/232] Fix: PowerShell alias profile written with a color snapshot (review 3 #5) The background task read the console color tuples while the UI thread could write them (not atomic) - a mixed color could be written. The UI thread sets one snapshot, the task reads the latest one in the lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../ViewModels/PowerShellHostViewModel.cs | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs b/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs index 91b6daffea..b7ae3933da 100644 --- a/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs +++ b/Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs @@ -512,6 +512,14 @@ public override void OnViewVisible() /// </summary> private static readonly object AliasProfileWriteLock = new(); + /// <summary> + /// Console colors for the background write (see <see cref="WriteDefaultProfileToRegistry" />): set on the UI + /// thread, read by the task as one reference (the color tuples could be read half written otherwise). + /// </summary> + private sealed record AliasProfileColors((byte R, byte G, byte B) Background, (byte R, byte G, byte B) Foreground); + + private static volatile AliasProfileColors _aliasProfileColors; + private void WriteDefaultProfileToRegistry() { if (!SettingsManager.Current.Appearance_PowerShellModifyGlobalProfile) @@ -541,6 +549,9 @@ private void WriteDefaultProfileToRegistry() // App Execution Alias (Microsoft Store): the alias is started once to resolve the real path, in the background. // One write at a time with the current colors, so the last write always has the latest values (e.g. after // several theme changes) - not the values of a task that was started earlier + _aliasProfileColors = new AliasProfileColors(AppearanceManager.ConsoleBackground, + AppearanceManager.ConsoleForeground); + Task.Run(() => { try @@ -549,9 +560,12 @@ private void WriteDefaultProfileToRegistry() { var realPath = PowerShell.ResolveAppExecutionAlias(powerShellPath); - if (realPath != null) - PowerShell.WriteDefaultProfileToRegistry(AppearanceManager.ConsoleBackground, - AppearanceManager.ConsoleForeground, realPath); + if (realPath == null) + return; + + var colors = _aliasProfileColors; + + PowerShell.WriteDefaultProfileToRegistry(colors.Background, colors.Foreground, realPath); } } catch (Exception ex) From 40acb70838515e3ad67749d2f5136ca6e43a92bd Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:29:22 +0100 Subject: [PATCH 207/232] Refactor: traceroute map cities keep a frozen brush, replaced on a theme change (review 3 #6) The unfrozen city brush (review 2 #3) was shared by ~1,800 dots and labels, each subscribed to its changes. Now a new frozen brush is set on the dots and labels when the color changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../Controls/TracerouteMapControl.xaml.cs | 37 ++++++++++++++++--- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs b/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs index 3c8c614950..b1ad1d8bb8 100644 --- a/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs +++ b/Source/NETworkManager/Controls/TracerouteMapControl.xaml.cs @@ -82,9 +82,9 @@ public partial class TracerouteMapControl // Cities deliberately don't follow the accent: they use the main chart color (ChartColors.Primary, // like the speedtest download series, darker in the light theme) so they stay a consistent // "reference point" color that doesn't compete with the accent-colored traceroute path. - // Not frozen: shared by all dots / labels, its color is set again after a theme change (see - // AppearanceManager_ThemeResourcesChanged). - private readonly SolidColorBrush _cityBrush = new(ChartColors.PrimaryWpf); + // Frozen (shared by ~900 dots and ~900 labels), replaced on the dots / labels after a theme + // change (see ApplyCityBrush). + private Brush _cityBrush = FreezeBrush(ChartColors.PrimaryWpf); // Shared by every label/dot so a single assignment (in ApplyTransform) keeps their on-screen // size constant while the map itself is scaled by the parent Canvas' zoom transform. Elements @@ -235,7 +235,7 @@ private static void OnIsExpandedChanged(DependencyObject d, DependencyPropertyCh private void TracerouteMapControl_Loaded(object sender, RoutedEventArgs e) { // Color of the cities: also if the theme was changed while the control was unloaded (e.g. tab dragged out) - _cityBrush.Color = ChartColors.PrimaryWpf; + ApplyCityBrush(); AppearanceManager.ThemeResourcesChanged -= AppearanceManager_ThemeResourcesChanged; AppearanceManager.ThemeResourcesChanged += AppearanceManager_ThemeResourcesChanged; @@ -258,7 +258,26 @@ private void TracerouteMapControl_Unloaded(object sender, RoutedEventArgs e) private void AppearanceManager_ThemeResourcesChanged(object sender, EventArgs e) { - _cityBrush.Color = ChartColors.PrimaryWpf; + ApplyCityBrush(); + } + + /// <summary> + /// Sets the color of the cities for the current theme (a new frozen brush on all dots and labels), if it changed. + /// </summary> + private void ApplyCityBrush() + { + var color = ChartColors.PrimaryWpf; + + if (_cityBrush is SolidColorBrush current && current.Color == color) + return; + + _cityBrush = FreezeBrush(color); + + foreach (var dot in CitiesCanvas.Children.OfType<Ellipse>()) + dot.Fill = _cityBrush; + + foreach (var label in _cityLabels) + label.Foreground = _cityBrush; } private void TracerouteMapControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) @@ -1583,6 +1602,14 @@ private void ButtonResetView_Click(object sender, RoutedEventArgs e) #region Country data + private static Brush FreezeBrush(Color color) + { + var brush = new SolidColorBrush(color); + brush.Freeze(); + + return brush; + } + private static StreamGeometry BuildCountriesGeometry() { var geometry = new StreamGeometry(); From 9df0ae2c3bcdfcf6e91fdd90ff0278fa3b17bacf Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:29:36 +0100 Subject: [PATCH 208/232] Refactor: one Blend for the theme colors (review 3 #7) AppearanceManager.Blend was a copy of ThemeVariants.Blend (now internal). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../AppearanceManager.cs | 24 ++++--------------- .../NETworkManager.Settings/ThemeVariants.cs | 8 ++++++- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 856e6b8c2e..82058de537 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -338,7 +338,7 @@ private static Brush CreateWindowBrush(double amount) RadiusY = 500 }; - gradient.GradientStops.Add(new GradientStop(Blend(_frameColor, _accentColor, amount), 0)); + gradient.GradientStops.Add(new GradientStop(ThemeVariants.Blend(_frameColor, _accentColor, amount), 0)); gradient.GradientStops.Add(new GradientStop(_frameColor, 1)); gradient.Freeze(); @@ -408,8 +408,8 @@ private static void ApplyControlStateBrushes(Theme theme) // Additional themes can have an own frame (e.g. the light blue-gray of Mist) var frame = ThemeVariants.GetFrame(theme) ?? (ThemeVariants.IsDark(theme) - ? Blend(background, Colors.Black, 0.25) - : Blend(background, foreground, 0.04)); + ? ThemeVariants.Blend(background, Colors.Black, 0.25) + : ThemeVariants.Blend(background, foreground, 0.04)); appResources[SurfaceFrameBrushKey] = CreateFrozenBrush(frame, 1); @@ -431,7 +431,8 @@ private static void ApplyControlStateBrushes(Theme theme) // 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(Blend(background, foreground, ThemeVariants.IsDark(theme) ? 0.75 : 0.88)); + ConsoleForeground = + ToRgb(ThemeVariants.Blend(background, foreground, ThemeVariants.IsDark(theme) ? 0.75 : 0.88)); ConsoleBoldForeground = ToRgb(foreground); ApplyDataGridBrushes(theme, foreground); @@ -514,21 +515,6 @@ private static void ApplyStatusBrushes(Theme theme) appResources[StatusErrorBrushKey] = CreateFrozenBrush(isDark ? "#e5605a" : "#b95353"); } - /// <summary> - /// Blend two colors (opaque result), e.g. a tint of the foreground on the background. - /// </summary> - /// <param name="background">Background color.</param> - /// <param name="foreground">Foreground color.</param> - /// <param name="amount">Amount of the foreground (0 - 1).</param> - /// <returns>Blended color.</returns> - private static Color Blend(Color background, Color foreground, double amount) - { - return Color.FromRgb( - (byte)Math.Round(background.R + (foreground.R - background.R) * amount), - (byte)Math.Round(background.G + (foreground.G - background.G) * amount), - (byte)Math.Round(background.B + (foreground.B - background.B) * amount)); - } - /// <summary> /// Create a frozen brush from a color string (e.g. "#badc58"). /// </summary> diff --git a/Source/NETworkManager.Settings/ThemeVariants.cs b/Source/NETworkManager.Settings/ThemeVariants.cs index e34f1e442a..cbf29ffeb8 100644 --- a/Source/NETworkManager.Settings/ThemeVariants.cs +++ b/Source/NETworkManager.Settings/ThemeVariants.cs @@ -264,7 +264,13 @@ private static byte Shift(byte value, int delta, double weight) => /// </summary> public static double Luminance(Color color) => 0.2126 * color.R + 0.7152 * color.G + 0.0722 * color.B; - private static Color Blend(Color color, Color target, double amount) => Color.FromRgb( + /// <summary> + /// Mixes a color with a target color. + /// </summary> + /// <param name="color">Color to start from.</param> + /// <param name="target">Color to mix in.</param> + /// <param name="amount">Share of the target color (0 - 1).</param> + internal static Color Blend(Color color, Color target, double amount) => Color.FromRgb( (byte)Math.Round(color.R + (target.R - color.R) * amount), (byte)Math.Round(color.G + (target.G - color.G) * amount), (byte)Math.Round(color.B + (target.B - color.B) * amount)); From 786ef1ae32754cb984b97f92146bc0b55cac7fcd Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:42:32 +0100 Subject: [PATCH 209/232] Docs: what the Animations setting turns off (final review #1) Short color fades (button / navigation hover, tooltips, dialog overlay) are always shown, the setting covers the movements (dialog zoom, run command, navigation indicator, expanders, notifications, scanner progress). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 4 +++- Website/docs/settings/appearance.md | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 89633fafb3..04f45e3f0d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -587,7 +587,9 @@ see `.claude/skills/feature-review/references/conventions.md`. 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`, tooltip fade, notification slide-in. Native windows (Remote Desktop, PuTTY, PowerShell, TigerVNC, +`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. diff --git a/Website/docs/settings/appearance.md b/Website/docs/settings/appearance.md index 4c8844303e..c2c669bde4 100644 --- a/Website/docs/settings/appearance.md +++ b/Website/docs/settings/appearance.md @@ -110,7 +110,12 @@ Custom themes override the [`Accent`](#accent) and [`Theme`](#theme) settings. ### Animations -Animations of the application, e.g. when a dialog is opened or closed (short zoom and fade). +Animations of the application: dialogs zoom and fade in when they are opened (the run command slides down), the +indicator of the selected tool in the navigation grows in, expanders rotate their arrow and fade in their content, +notifications slide in and the progress of the scanners moves smoothly. + +Short fades of colors (e.g. the mouse over background of buttons and the navigation, tooltips, the darkened background +behind a dialog) are always shown - they don't move anything. **Type:** `NETworkManager.Models.Appearance.AnimationMode` @@ -120,7 +125,7 @@ Animations of the application, e.g. when a dialog is opened or closed (short zoo - `System` - Follow the Windows setting **Animation effects** (Windows 11: Settings > Accessibility > Visual effects, Windows 10: Settings > Ease of Access > Display > **Show animations in Windows**). It is often turned off on terminal servers, in virtual machines and in Remote Desktop sessions. - `On` - Always show animations. -- `Off` - Never show animations. +- `Off` - Don't show animations. <details className="alert alert--info"> <summary>System-Wide Policy</summary> From a3446167b0f168feda61b217e702f281f44196c9 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:42:43 +0100 Subject: [PATCH 210/232] Design: status / close icons in the error color instead of Red (final review #2) Ping Monitor host unreachable icon and the close / stop icons (Ping Monitor, speed test, Web Console, run command, profile dialog) on mouse over used a hard-coded Red - now Brushes.Status.Error like the tab close icon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager/Controls/WebConsoleControl.xaml | 2 +- Source/NETworkManager/Views/PingMonitorView.xaml | 4 ++-- Source/NETworkManager/Views/ProfileChildWindow.xaml | 2 +- Source/NETworkManager/Views/RunCommandChildWindow.xaml | 2 +- Source/NETworkManager/Views/SpeedTestWidgetView.xaml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/NETworkManager/Controls/WebConsoleControl.xaml b/Source/NETworkManager/Controls/WebConsoleControl.xaml index 22dfd3fc6e..2d0314ab1f 100644 --- a/Source/NETworkManager/Controls/WebConsoleControl.xaml +++ b/Source/NETworkManager/Controls/WebConsoleControl.xaml @@ -158,7 +158,7 @@ <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Button}}, Path=IsMouseOver}" Value="True"> - <Setter Property="Fill" Value="Red" /> + <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> </DataTrigger> </Style.Triggers> </Style> diff --git a/Source/NETworkManager/Views/PingMonitorView.xaml b/Source/NETworkManager/Views/PingMonitorView.xaml index a8263995f7..da70cd1c42 100644 --- a/Source/NETworkManager/Views/PingMonitorView.xaml +++ b/Source/NETworkManager/Views/PingMonitorView.xaml @@ -128,7 +128,7 @@ </MultiDataTrigger.Conditions> <MultiDataTrigger.Setters> <Setter Property="OpacityMask" Value="{StaticResource VisualDisconnected}" /> - <Setter Property="Fill" Value="Red" /> + <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> </MultiDataTrigger.Setters> </MultiDataTrigger> </Style.Triggers> @@ -214,7 +214,7 @@ <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Button}}, Path=IsMouseOver}" Value="True"> - <Setter Property="Fill" Value="Red" /> + <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> </DataTrigger> </Style.Triggers> </Style> diff --git a/Source/NETworkManager/Views/ProfileChildWindow.xaml b/Source/NETworkManager/Views/ProfileChildWindow.xaml index f4b29749c8..4d62e947a1 100644 --- a/Source/NETworkManager/Views/ProfileChildWindow.xaml +++ b/Source/NETworkManager/Views/ProfileChildWindow.xaml @@ -1423,7 +1423,7 @@ <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Button}}, Path=IsMouseOver}" Value="True"> - <Setter Property="Fill" Value="Red" /> + <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> </DataTrigger> </Style.Triggers> </Style> diff --git a/Source/NETworkManager/Views/RunCommandChildWindow.xaml b/Source/NETworkManager/Views/RunCommandChildWindow.xaml index d807d5c222..17985879b5 100644 --- a/Source/NETworkManager/Views/RunCommandChildWindow.xaml +++ b/Source/NETworkManager/Views/RunCommandChildWindow.xaml @@ -387,7 +387,7 @@ <DataTrigger Binding="{Binding IsMouseOver, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" Value="True"> - <Setter Property="Fill" Value="Red" /> + <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> </DataTrigger> </Style.Triggers> </Style> diff --git a/Source/NETworkManager/Views/SpeedTestWidgetView.xaml b/Source/NETworkManager/Views/SpeedTestWidgetView.xaml index 2ca3596004..b1b9cfb2e7 100644 --- a/Source/NETworkManager/Views/SpeedTestWidgetView.xaml +++ b/Source/NETworkManager/Views/SpeedTestWidgetView.xaml @@ -105,7 +105,7 @@ <Condition Binding="{Binding IsRunning}" Value="True" /> <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Button}}, Path=IsMouseOver}" Value="True" /> </MultiDataTrigger.Conditions> - <Setter Property="Fill" Value="Red" /> + <Setter Property="Fill" Value="{DynamicResource Brushes.Status.Error}" /> </MultiDataTrigger> </Style.Triggers> </Style> From 866d20384c4e199708523bf4735466369c61d53f Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:43:06 +0100 Subject: [PATCH 211/232] Design: drop-down items of Network Interface and WiFi like the other drop-downs (final review #5) The own item templates used MahApps Gray9 / Gray10 (light gray in the dark theme) for selected / mouse over and a Foreground of the MahApps 1.x key AccentSelectedColorBrush that doesn't exist anymore. Now Brushes.Control. Pressed / MouseOver like DefaultComboBox, dead setter removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../Views/NetworkInterfaceView.xaml | 18 ++++++------------ Source/NETworkManager/Views/WiFiView.xaml | 6 ++---- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/Source/NETworkManager/Views/NetworkInterfaceView.xaml b/Source/NETworkManager/Views/NetworkInterfaceView.xaml index 973da62e42..0d3d96a733 100644 --- a/Source/NETworkManager/Views/NetworkInterfaceView.xaml +++ b/Source/NETworkManager/Views/NetworkInterfaceView.xaml @@ -171,10 +171,8 @@ </Grid> <ControlTemplate.Triggers> <Trigger Property="IsSelected" Value="True"> - <Setter Property="Foreground" - Value="{DynamicResource AccentSelectedColorBrush}" /> <Setter TargetName="Border" Property="Background" - Value="{DynamicResource MahApps.Brushes.Gray9}" /> + Value="{DynamicResource Brushes.Control.Pressed}" /> </Trigger> <MultiTrigger> <MultiTrigger.Conditions> @@ -182,7 +180,7 @@ <Condition Property="IsMouseOver" Value="True" /> </MultiTrigger.Conditions> <Setter TargetName="Border" Property="Background" - Value="{DynamicResource MahApps.Brushes.Gray10}" /> + Value="{DynamicResource Brushes.Control.MouseOver}" /> </MultiTrigger> <Trigger Property="IsEnabled" Value="False"> <Setter TargetName="contentPresenter" @@ -749,10 +747,8 @@ </Grid> <ControlTemplate.Triggers> <Trigger Property="IsSelected" Value="True"> - <Setter Property="Foreground" - Value="{DynamicResource AccentSelectedColorBrush}" /> <Setter TargetName="Border" Property="Background" - Value="{DynamicResource MahApps.Brushes.Gray9}" /> + Value="{DynamicResource Brushes.Control.Pressed}" /> </Trigger> <MultiTrigger> <MultiTrigger.Conditions> @@ -760,7 +756,7 @@ <Condition Property="IsMouseOver" Value="True" /> </MultiTrigger.Conditions> <Setter TargetName="Border" Property="Background" - Value="{DynamicResource MahApps.Brushes.Gray10}" /> + Value="{DynamicResource Brushes.Control.MouseOver}" /> </MultiTrigger> <Trigger Property="IsEnabled" Value="False"> <Setter TargetName="contentPresenter" @@ -1030,10 +1026,8 @@ </Grid> <ControlTemplate.Triggers> <Trigger Property="IsSelected" Value="True"> - <Setter Property="Foreground" - Value="{DynamicResource AccentSelectedColorBrush}" /> <Setter TargetName="Border" Property="Background" - Value="{DynamicResource MahApps.Brushes.Gray9}" /> + Value="{DynamicResource Brushes.Control.Pressed}" /> </Trigger> <MultiTrigger> <MultiTrigger.Conditions> @@ -1041,7 +1035,7 @@ <Condition Property="IsMouseOver" Value="True" /> </MultiTrigger.Conditions> <Setter TargetName="Border" Property="Background" - Value="{DynamicResource MahApps.Brushes.Gray10}" /> + Value="{DynamicResource Brushes.Control.MouseOver}" /> </MultiTrigger> <Trigger Property="IsEnabled" Value="False"> <Setter TargetName="contentPresenter" diff --git a/Source/NETworkManager/Views/WiFiView.xaml b/Source/NETworkManager/Views/WiFiView.xaml index 9e87b3ab3a..8a2846434c 100644 --- a/Source/NETworkManager/Views/WiFiView.xaml +++ b/Source/NETworkManager/Views/WiFiView.xaml @@ -178,11 +178,9 @@ </Grid> <ControlTemplate.Triggers> <Trigger Property="IsSelected" Value="True"> - <Setter Property="Foreground" - Value="{DynamicResource ResourceKey=AccentSelectedColorBrush}" /> <Setter TargetName="Border" Property="Background" - Value="{DynamicResource ResourceKey=MahApps.Brushes.Gray9}" /> + Value="{DynamicResource ResourceKey=Brushes.Control.Pressed}" /> </Trigger> <MultiTrigger> <MultiTrigger.Conditions> @@ -193,7 +191,7 @@ </MultiTrigger.Conditions> <Setter TargetName="Border" Property="Background" - Value="{DynamicResource ResourceKey=MahApps.Brushes.Gray10}" /> + Value="{DynamicResource ResourceKey=Brushes.Control.MouseOver}" /> </MultiTrigger> <Trigger Property="IsEnabled" Value="False"> <Setter TargetName="contentPresenter" From ca0830b4398cca4896ee003521bea2f2784ade72 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:43:43 +0100 Subject: [PATCH 212/232] Fix: light theme override keeps the tint of Mist / Soft / Paper (final review #6) The light override (darker Gray3 / 5 / 8 for contrast, review 1 #4) replaced the tinted grays of the additional light themes with neutral grays. The override is now tinted like the other grays of the theme (ThemeVariants. TintGray, the mapping of RecolorBase). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../AppearanceManager.cs | 28 +++++++--- .../NETworkManager.Settings/ThemeVariants.cs | 56 +++++++++++++------ 2 files changed, 60 insertions(+), 24 deletions(-) diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 82058de537..2772f65c90 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)), }; + /// <summary> + /// Overrides of the applied theme (copy of <see cref="LightThemeOverrideDictionary" /> / + /// <see cref="DarkThemeOverrideDictionary" />, tinted for an additional theme). + /// </summary> + private static ResourceDictionary _themeOverrideDictionary; + /// <summary> /// Dictionary to override some brushes for the dark theme. /// </summary> @@ -552,15 +558,23 @@ private static void ApplyCustomThemeFixes(Theme theme) // 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; + _themeOverrideDictionary = new ResourceDictionary(); + + foreach (var key in source.Keys) + { + if (source[key] is SolidColorBrush brush) + _themeOverrideDictionary[key] = CreateFrozenBrush(ThemeVariants.TintGray(brush.Color, theme), 1); + } - // Light or dark by the background (also the additional themes, e.g. Mist, Midnight), not by the name - appResources.MergedDictionaries.Add(ThemeVariants.IsDark(theme) - ? DarkThemeOverrideDictionary - : LightThemeOverrideDictionary); + appResources.MergedDictionaries.Add(_themeOverrideDictionary); // Refresh UI foreach (Window window in System.Windows.Application.Current.Windows) diff --git a/Source/NETworkManager.Settings/ThemeVariants.cs b/Source/NETworkManager.Settings/ThemeVariants.cs index cbf29ffeb8..b0c732d840 100644 --- a/Source/NETworkManager.Settings/ThemeVariants.cs +++ b/Source/NETworkManager.Settings/ThemeVariants.cs @@ -197,29 +197,51 @@ 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)); + } + + /// <summary> + /// 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. + /// </summary> + 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); - Recolor(resources, color => - { - 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 weight = luminance <= sourceLuminance + ? sourceLuminance <= 0 ? 1 : luminance / sourceLuminance + : Math.Clamp(1 - (luminance - sourceLuminance) / (TintEndLuminance - sourceLuminance), 0, 1); - var luminance = Luminance(color); + 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)); + } - // Weight of the tint: full at the background, less for darker (black stays black) and lighter grays - var weight = luminance <= sourceLuminance - ? sourceLuminance <= 0 ? 1 : luminance / sourceLuminance - : Math.Clamp(1 - (luminance - sourceLuminance) / (TintEndLuminance - sourceLuminance), 0, 1); + /// <summary> + /// A neutral gray (e.g. of the light / dark overrides of <see cref="AppearanceManager" />) tinted like the grays of + /// the theme, if it is an additional theme (e.g. Mist); otherwise the color itself. + /// </summary> + /// <param name="color">Neutral gray for the theme of MahApps the theme is based on.</param> + /// <param name="theme">Theme that is applied.</param> + internal static Color TintGray(Color color, Theme theme) + { + var variant = Themes.FirstOrDefault(x => x.Name == theme.BaseColorScheme); - if (weight <= 0) - return color; + if (variant == null || + ThemeManager.Current.GetTheme($"{variant.SourceBaseColorScheme}.{SourceColorScheme}")?.Resources[ + "MahApps.Colors.ThemeBackground"] is not Color sourceBackground) + 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)); - }); + return TintGray(color, sourceBackground, variant.Background); } /// <summary> From 50c83f95f50a031237b53d93434afd9042d8f92b Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:44:32 +0100 Subject: [PATCH 213/232] Fix: drop-down opened above the ComboBox overlapped it (final review #7) Near the bottom of the screen WPF flips the popup above the ComboBox: the VerticalOffset of 2 pushed it onto the ComboBox and the space for the shadow was between them. Custom placement: below with a gap, or above with a gap (the shadow space overlaps the ComboBox). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../ComboBoxPopupBehavior.cs | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/Source/NETworkManager.Controls/ComboBoxPopupBehavior.cs b/Source/NETworkManager.Controls/ComboBoxPopupBehavior.cs index a58841bec0..f156a1b201 100644 --- a/Source/NETworkManager.Controls/ComboBoxPopupBehavior.cs +++ b/Source/NETworkManager.Controls/ComboBoxPopupBehavior.cs @@ -6,7 +6,8 @@ namespace NETworkManager.Controls; /// <summary> /// Attached property that shows the drop-down of a <see cref="ComboBox"/> like the context menu: rounded corners, a -/// soft shadow, a small padding around the items and a small gap below the ComboBox. +/// 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 (<c>PART_Popup</c> with the <c>PopupBorder</c>, 2.4.11). It is /// changed when the drop-down is opened instead of copying the whole ComboBox template (~400 lines, which would have @@ -19,6 +20,11 @@ public static class ComboBoxPopupBehavior /// </summary> private const double ShadowSize = 6; + /// <summary> + /// Gap between the ComboBox and the drop-down. + /// </summary> + private const double Gap = 2; + public static readonly DependencyProperty IsRoundedProperty = DependencyProperty.RegisterAttached( "IsRounded", @@ -95,7 +101,23 @@ private static void ComboBox_DropDownOpened(object sender, System.EventArgs e) popupBorder.Padding = new Thickness(3); popupBorder.SetResourceReference(Border.BorderBrushProperty, "Brushes.Surface.Border"); - // Small gap below the ComboBox (the popup of MahApps already allows transparency for the rounded corners) - popup.VerticalOffset = 2; + // 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) + ]; + }; } } From 403f838f64e5152614081deb8801ff92dc8ad986 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:44:45 +0100 Subject: [PATCH 214/232] Fix: accent glow repainted with an offset in the navigation (final review #8) The navigation bound its background to the window background, an absolute mapped RadialGradientBrush, which was drawn again relative to the navigation (offset glow, possible seam). Transparent shows the window background. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager/MainWindow.xaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index f6560c7c95..205d1ad2fc 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -357,11 +357,12 @@ <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> - <!-- Navigation: part of the window (background of the window incl. the optional accent glow, no border, like - the side bar of VS Code), the main view and the profiles are the boxes. Same margins as the boxes + <!-- Navigation: part of the window (transparent: the background of the window incl. the optional accent glow + shows through - the glow brush is mapped to the window, not repainted here; no border, like the side + bar of VS Code), the main view and the profiles are the boxes. Same margins as the boxes (aligned header / tab lines). --> <mah:ClipBorder Grid.Column="0" Grid.Row="0" Margin="6,6,0,6" Style="{StaticResource ViewBox}" - Background="{Binding Background, RelativeSource={RelativeSource AncestorType={x:Type Window}}}" + Background="Transparent" BorderThickness="0"> <Grid x:Name="ApplicationViewGrid"> <Grid.RowDefinitions> From 96525daba1443da117fd3ead705da2c5c1685ef5 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:44:59 +0100 Subject: [PATCH 215/232] Cleanup: dead MahApps 1.x brush in DefaultToggleSwitch (final review #9) MahApps 2 doesn't read MahApps.Metro.Brushes.ToggleSwitchButton.OffBorderBrush. Win10 and the key Gray8 it referenced doesn't exist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../NETworkManager/Resources/Styles/ToogleSwitchStyles.xaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/ToogleSwitchStyles.xaml b/Source/NETworkManager/Resources/Styles/ToogleSwitchStyles.xaml index d62e65fe2f..2b75098472 100644 --- a/Source/NETworkManager/Resources/Styles/ToogleSwitchStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ToogleSwitchStyles.xaml @@ -9,10 +9,6 @@ <!--<Setter Property="ThumbIndicatorBrush" Value="{DynamicResource MahApps.Brushes.Gray3}" />--> <Setter Property="OffContent" Value="{x:Static localization:Strings.Off}" /> <Setter Property="OnContent" Value="{x:Static localization:Strings.On}" /> - <Style.Resources> - <SolidColorBrush x:Key="MahApps.Metro.Brushes.ToggleSwitchButton.OffBorderBrush.Win10" - Color="{DynamicResource Gray8}" /> - </Style.Resources> <!-- Disabled: the normal colors (see AppearanceManager.ApplyToggleSwitchDisabledBrushes), dimmed like the inputs and buttons --> <Style.Triggers> From fc5f1245af41e1b2515e75da1e3cbe99b3904acd Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:45:25 +0100 Subject: [PATCH 216/232] Cleanup: one BooleanToVisibilityConverter for the style templates (final review #10) ComboBoxStyles and ChildWindowStyles each added an identical converter under an own key; now Converters.BooleanToVisibility in Theme.xaml (merged first). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../Resources/Styles/ChildWindowStyles.xaml | 9 ++++----- .../NETworkManager/Resources/Styles/ComboBoxStyles.xaml | 3 +-- Source/NETworkManager/Resources/Styles/Theme.xaml | 3 +++ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml b/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml index 5d56172967..93cc3f6057 100644 --- a/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ChildWindowStyles.xaml @@ -4,7 +4,6 @@ xmlns:mahConverters="http://metro.mahapps.com/winfx/xaml/shared" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" xmlns:networkManager="clr-namespace:NETworkManager"> - <BooleanToVisibilityConverter x:Key="ChildWindowBooleanToVisibilityConverter" /> <!-- Template of MahApps.Metro.SimpleChildWindow 2.2.1 (Themes/ChildWindow.xaml, MahApps.Templates.ChildWindow) with: @@ -63,7 +62,7 @@ FocusVisualStyle="{x:Null}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" UseLayoutRounding="True" - Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=EnableDropShadow, Mode=OneWay, Converter={StaticResource ChildWindowBooleanToVisibilityConverter}}" /> + Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=EnableDropShadow, Mode=OneWay, Converter={StaticResource Converters.BooleanToVisibility}}" /> <mahControls:ClipBorder x:Name="PART_Border" Background="{TemplateBinding Background}" @@ -90,14 +89,14 @@ Fill="{TemplateBinding TitleBarBackground}" Focusable="False" StrokeThickness="0" - Visibility="{TemplateBinding ShowTitleBar, Converter={StaticResource ChildWindowBooleanToVisibilityConverter}}" /> + Visibility="{TemplateBinding ShowTitleBar, Converter={StaticResource Converters.BooleanToVisibility}}" /> <Grid x:Name="PART_Header" Grid.Row="0" Grid.Column="0" Height="{Binding TitleBarHeight, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" Focusable="False" - Visibility="{TemplateBinding ShowTitleBar, Converter={StaticResource ChildWindowBooleanToVisibilityConverter}}"> + Visibility="{TemplateBinding ShowTitleBar, Converter={StaticResource Converters.BooleanToVisibility}}"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> @@ -151,7 +150,7 @@ IsTabStop="True" Style="{TemplateBinding CloseButtonStyle}" ToolTip="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type simpleChildWindow:ChildWindow}}, Path=CloseButtonToolTip, Mode=OneWay}" - Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ShowCloseButton, Mode=OneWay, Converter={StaticResource ChildWindowBooleanToVisibilityConverter}}"> + Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ShowCloseButton, Mode=OneWay, Converter={StaticResource Converters.BooleanToVisibility}}"> <Path Data="M 10.009,1.704 L 8.331,0.026 5.03,3.327 1.703,0 0,1.704 3.326,5.031 0.025,8.332 1.703,10.009 5.004,6.708 8.305,10.009 10.009,8.305 6.708,5.005" Fill="{TemplateBinding TitleForeground}" SnapsToDevicePixels="True" /> diff --git a/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml b/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml index 11ad3055ac..db2d7bf639 100644 --- a/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/ComboBoxStyles.xaml @@ -3,7 +3,6 @@ xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters"> - <BooleanToVisibilityConverter x:Key="ComboBoxBooleanToVisibilityConverter" /> <Style x:Key="DefaultComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource MahApps.Styles.ComboBox}"> <Style.Resources> @@ -37,7 +36,7 @@ Foreground="{TemplateBinding Foreground}" IsTabStop="False" Style="{DynamicResource MahApps.Styles.Button.Chromeless}" - Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}, Path=(mah:TextBoxHelper.ClearTextButton), Converter={StaticResource ComboBoxBooleanToVisibilityConverter}}" /> + Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}, Path=(mah:TextBoxHelper.ClearTextButton), Converter={StaticResource Converters.BooleanToVisibility}}" /> <!-- Border instead of Grid (MahApps): the mouse over background follows the rounded corners of the ComboBox on the right --> <Border x:Name="BtnArrowBackground" diff --git a/Source/NETworkManager/Resources/Styles/Theme.xaml b/Source/NETworkManager/Resources/Styles/Theme.xaml index afdf2dcbc2..8ba743b13f 100644 --- a/Source/NETworkManager/Resources/Styles/Theme.xaml +++ b/Source/NETworkManager/Resources/Styles/Theme.xaml @@ -9,6 +9,9 @@ Windows 10 falls back to Consolas. --> <FontFamily x:Key="Fonts.Family.Mono">Cascadia Mono, Consolas</FontFamily> + <!-- Converter for the templates in the style dictionaries (merged after this one, StaticResource) --> + <BooleanToVisibilityConverter x:Key="Converters.BooleanToVisibility" /> + <!-- Font of the controls and texts: Segoe UI Variable (Windows 11, named instance "Text" for small sizes), Segoe UI on Windows 10. Overrides the fonts of MahApps (Fonts.xaml, 2.4.11), the window title and the header font (Segoe UI Light, no longer used by the text styles) stay. --> From 14d79319b2f5c062bb564f35f8952e4dbb22371a Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:52:50 +0100 Subject: [PATCH 217/232] Design: default accent Mint for new installations User decision. Existing settings keep their accent. Mint is an additional accent (created when it is used): if neither the theme nor the default can be created, ChangeTheme falls back to the MahApps theme Dark.Teal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 2 +- .../AppearanceManager.cs | 21 +++++++++++++++++-- .../GlobalStaticConfiguration.cs | 6 +++--- Website/docs/changelog/next-release.md | 2 +- Website/docs/settings/appearance.md | 2 +- 5 files changed, 25 insertions(+), 8 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 04f45e3f0d..34ff4ae746 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -506,7 +506,7 @@ of local colors, sizes or templates; theme-dependent brushes always with `Dynami Graphite (copies of `<theme>.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: Teal. Custom themes (`Appearance_UseCustomTheme`) keep working. +- 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). diff --git a/Source/NETworkManager.Settings/AppearanceManager.cs b/Source/NETworkManager.Settings/AppearanceManager.cs index 2772f65c90..4565cca5ce 100644 --- a/Source/NETworkManager.Settings/AppearanceManager.cs +++ b/Source/NETworkManager.Settings/AppearanceManager.cs @@ -351,6 +351,17 @@ private static Brush CreateWindowBrush(double amount) return gradient; } + /// <summary> + /// Theme of MahApps (always available) if neither the theme nor the default theme can be applied. + /// </summary> + private const string FallbackTheme = "Dark.Teal"; + + /// <summary> + /// <see langword="true" /> if the theme exists or could be created (additional themes / accents). + /// </summary> + private static bool IsAvailable(string name) => + ThemeVariants.EnsureTheme(name) && ThemeManager.Current.GetTheme(name) != null; + /// <summary> /// Method to change the application theme (and accent). /// </summary> @@ -358,10 +369,16 @@ private static Brush CreateWindowBrush(double amount) public static void ChangeTheme(string 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 - if (!ThemeVariants.EnsureTheme(name) || ThemeManager.Current.GetTheme(name) == null) + // 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) diff --git a/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs b/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs index 010b77e84d..c44628327f 100644 --- a/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs +++ b/Source/NETworkManager.Settings/GlobalStaticConfiguration.cs @@ -87,9 +87,9 @@ public static class GlobalStaticConfiguration // Settings: Appearance public static string Appearance_Theme => "Dark"; - // Teal: calmer than Lime, better contrast on light backgrounds, not confused with the green status color. - // Only for new installations, the accent is saved in the settings. - public static string Appearance_Accent => "Teal"; + // 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 diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 113d301365..2cb8c8e423 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -79,7 +79,7 @@ Release date: **xx.xx.2026** - Dialogs (e.g. add / edit profile, settings) open with a short zoom and fade and close faster; the run command slides down from the top. The indicator of the selected tool in the navigation grows in, buttons and the navigation fade their mouse over / pressed background, expanders rotate their arrow and fade in their content, tooltips appear faster, notifications slide in from the right and the progress of the **IP Scanner** and **Port Scanner** moves smoothly (at most 10 updates per second of the bar, also for large scans). New setting **Animations** in [Settings > Appearance](../settings/appearance.md#animations): `System` (default, follows the Windows setting **Animation effects**), `On` or `Off`; can be turned on or off for all users with the system-wide policy `Appearance_Animations` (e.g. on a terminal server). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Progress bars and loading indicators look the same in all tools: progress bars in the accent color on a subtle track (also readable in the light theme), one kind of spinner in three sizes instead of three different loading animations. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Clearer text: section headers (e.g. in the settings and the profile dialog) are 16 semibold instead of 18 light gray, the tools in the navigation 14 like the tabs, messages in empty areas 16. On Windows 11 the application uses **Segoe UI Variable** (Segoe UI on Windows 10). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- Colors: in the dark theme the boxes (tool, profiles) are raised on a darker window frame, the borders are softer, the selected tool in the navigation has a light tint of the accent color. The charts (**Ping Monitor**, bandwidth of the **Network Interface**, speed test, **WiFi** channels, **Traceroute** map) use colors with a good contrast in the light and dark theme and a fill below the lines that fades out. New installations use the accent color **Teal** (existing settings keep their accent). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Colors: in the dark theme the boxes (tool, profiles) are raised on a darker window frame, the borders are softer, the selected tool in the navigation has a light tint of the accent color. The charts (**Ping Monitor**, bandwidth of the **Network Interface**, speed test, **WiFi** channels, **Traceroute** map) use colors with a good contrast in the light and dark theme and a fill below the lines that fades out. New installations use the accent color **Mint** (existing settings keep their accent). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - While a tab is dragged (e.g. to another window or to split the view), **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show the icon of the tool and the title of the tab instead of an empty area. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - New icons: all icons (navigation, toolbars, context menus, messages, status) come from one icon family, [Lucide](https://lucide.dev), instead of five different icon packs. They are drawn as thin lines (calmer, especially at small sizes) and have the same size and position everywhere. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Empty areas (e.g. no firewall rules or Wi-Fi networks found, the path of PuTTY not configured) show a large gray icon above the message; the notices to restart as administrator show a shield. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) diff --git a/Website/docs/settings/appearance.md b/Website/docs/settings/appearance.md index c2c669bde4..c949314a5c 100644 --- a/Website/docs/settings/appearance.md +++ b/Website/docs/settings/appearance.md @@ -34,7 +34,7 @@ Accent of the application which is based on [`MahApps.Metro themes`](https://mah **Type:** `String` -**Default:** `Teal` (`Lime` before version 2026.x.x - existing settings keep their accent) +**Default:** `Mint` (`Lime` before version 2026.x.x - existing settings keep their accent) **Possible values:** From 72419a7b7e4d8c9e1c78fe1fe37aeb15257d158c Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:53:41 +0100 Subject: [PATCH 218/232] Update GlobalAssemblyInfo.cs --- Source/GlobalAssemblyInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")] From a47553886157b1a5396adff8a7b18fba11e91992 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 13:41:31 +0100 Subject: [PATCH 219/232] Chore: update Dragablz (merge hint, larger merge area for dragged tabs) 5045038..5415e71 of BornToBeRoot/Dragablz: MergeTargetArea (HeaderPanel), ShowMergeHint / MergeHintProximity / MergeHintTemplate, IsMergeTarget- Participating / IsMergeTargetOffered, fixes for .NET 10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/3rdparty/Dragablz | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 7b26700ad2c0f7e5aec40cd6a93832e503235480 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 13:42:30 +0100 Subject: [PATCH 220/232] Feature: dragged-out tabs can be dropped on the whole tab bar, with a hint DefaultTabablzControl uses the new Dragablz features: MergeTargetArea HeaderPanel (the empty area right of the tabs accepts the tab too) and a merge hint while a tab is dragged: a slot after the last tab (accent tint, dashed accent border, stronger when the tab is near), no icon - the "+" next to it opens a new tab. Changelog, AGENTS.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 4 ++- .../Resources/Styles/DragablzStyles.xaml | 32 +++++++++++++++++++ Website/docs/changelog/next-release.md | 1 + 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 34ff4ae746..40b97d5ba3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -550,7 +550,9 @@ SemiBold (section headers), `MessageTextBlock` 16 gray (messages in empty areas) 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. + 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). diff --git a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml index 27de66f764..95e7cfab28 100644 --- a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml @@ -151,6 +151,38 @@ dockablz:Layout --> <Setter Property="Background" Value="{DynamicResource MahApps.Brushes.ThemeBackground}" /> <Setter Property="EmptyHeaderSizingHint" Value="PreviousTab" /> + <!-- A tab dragged out (as a window) can be dropped anywhere on the tab bar of another window of the same tool, + not only over the tabs. While it is dragged, the tab bars it can be dropped into show a slot after the last + tab (stronger when the cursor is near), like the drop zones of the layout. No icon: the "+" next to it + opens a new tab. --> + <Setter Property="MergeTargetArea" Value="HeaderPanel" /> + <Setter Property="ShowMergeHint" Value="True" /> + <Setter Property="MergeHintTemplate"> + <Setter.Value> + <DataTemplate> + <Grid Width="120" HorizontalAlignment="Left" Margin="4,4,0,4"> + <Rectangle RadiusX="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" + RadiusY="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" + Fill="{DynamicResource MahApps.Brushes.Accent}"> + <Rectangle.Style> + <Style TargetType="{x:Type Rectangle}"> + <Setter Property="Opacity" Value="0.15" /> + <Style.Triggers> + <DataTrigger Binding="{Binding Path=IsMergeTargetOffered, RelativeSource={RelativeSource AncestorType={x:Type dragablz:TabablzControl}}}" Value="True"> + <Setter Property="Opacity" Value="0.3" /> + </DataTrigger> + </Style.Triggers> + </Style> + </Rectangle.Style> + </Rectangle> + <Rectangle RadiusX="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" + RadiusY="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" + Stroke="{DynamicResource MahApps.Brushes.Accent}" StrokeThickness="1" + StrokeDashArray="4 3" SnapsToDevicePixels="True" /> + </Grid> + </DataTemplate> + </Setter.Value> + </Setter> <Setter Property="ContentTemplateSelector" Value="{x:Null}" /> <Setter Property="HeaderItemTemplate"> <Setter.Value> diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 2cb8c8e423..6b7413af8e 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -36,6 +36,7 @@ Release date: **xx.xx.2026** ## What's new? - New setting **Dynamic tab width** in [Settings > Window](../settings/window.md#dynamic-tab-width): the tabs of the tools (e.g. **IP Scanner**, **Remote Desktop**, **PuTTY**) are as wide as their title, up to a configurable maximum width (default `300`), instead of a fixed width of `150`. Long titles (e.g. hostnames) are shortened with `...`, the tooltip shows the full title. [#3055](https://github.com/BornToBeRoot/NETworkManager/issues/3055) +- A dragged-out tab (e.g. **Remote Desktop**, **PuTTY**, **PowerShell**) can be dropped back anywhere on the tab bar of another window of the same tool, also on the empty area right of the tabs (before only over the existing tabs). While the tab is dragged, the tab bars it can be dropped into show a highlighted slot after the last tab, stronger when the tab is near. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - New setting **Accent glow** in [Settings > Appearance](../settings/appearance.md#accent-glow): a glow of the accent color in the top left corner of the windows (main window, window of dragged-out tabs, status window), weaker while a window is inactive. Intensity `Off`, `Subtle`, `Medium` (default for new installations) or `Strong`. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - New themes **Black**, **Midnight**, **Steel**, **Indigo** (dark) and **Mist** (light blue-gray like the Blue theme of Visual Studio), **Soft**, **Paper** (dimmed light) and new accent colors **Sky**, **Ocean**, **Mint**, **Rose**, **Coral**, **Gold**, **Lavender**, **Slate** and **Graphite** (neutral gray) in [Settings > Appearance](../settings/appearance.md#theme). All accents can be used with every theme. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - ARM64 builds are now available. [#3538](https://github.com/BornToBeRoot/NETworkManager/issues/3538) From a1ad26a2e82609cc68056d87c6e97cb84ca8e37a Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 13:48:26 +0100 Subject: [PATCH 221/232] Fix: merge hint and layout drop zones look the same The drop zones of the layout (top / right / bottom / left) were drawn in the text color, the merge hint in the tab bar with an accent tint and a dashed border. Now both in the accent color with the opacity of the drop zones (0.25, 0.5 while offered / near), the hint without border. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../Resources/Styles/DragablzStyles.xaml | 48 ++++++++++--------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml index 95e7cfab28..25396892dd 100644 --- a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml @@ -153,33 +153,28 @@ <Setter Property="EmptyHeaderSizingHint" Value="PreviousTab" /> <!-- A tab dragged out (as a window) can be dropped anywhere on the tab bar of another window of the same tool, not only over the tabs. While it is dragged, the tab bars it can be dropped into show a slot after the last - tab (stronger when the cursor is near), like the drop zones of the layout. No icon: the "+" next to it - opens a new tab. --> + tab (stronger when the cursor is near), like the drop zones of the layout (same color and opacity, see the + DropZone style). No icon: the "+" next to it opens a new tab. --> <Setter Property="MergeTargetArea" Value="HeaderPanel" /> <Setter Property="ShowMergeHint" Value="True" /> <Setter Property="MergeHintTemplate"> <Setter.Value> <DataTemplate> - <Grid Width="120" HorizontalAlignment="Left" Margin="4,4,0,4"> - <Rectangle RadiusX="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" - RadiusY="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" - Fill="{DynamicResource MahApps.Brushes.Accent}"> - <Rectangle.Style> - <Style TargetType="{x:Type Rectangle}"> - <Setter Property="Opacity" Value="0.15" /> - <Style.Triggers> - <DataTrigger Binding="{Binding Path=IsMergeTargetOffered, RelativeSource={RelativeSource AncestorType={x:Type dragablz:TabablzControl}}}" Value="True"> - <Setter Property="Opacity" Value="0.3" /> - </DataTrigger> - </Style.Triggers> - </Style> - </Rectangle.Style> - </Rectangle> - <Rectangle RadiusX="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" - RadiusY="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" - Stroke="{DynamicResource MahApps.Brushes.Accent}" StrokeThickness="1" - StrokeDashArray="4 3" SnapsToDevicePixels="True" /> - </Grid> + <Rectangle Width="120" HorizontalAlignment="Left" Margin="4,4,0,4" + RadiusX="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" + RadiusY="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" + Fill="{DynamicResource MahApps.Brushes.Accent}"> + <Rectangle.Style> + <Style TargetType="{x:Type Rectangle}"> + <Setter Property="Opacity" Value="0.25" /> + <Style.Triggers> + <DataTrigger Binding="{Binding Path=IsMergeTargetOffered, RelativeSource={RelativeSource AncestorType={x:Type dragablz:TabablzControl}}}" Value="True"> + <Setter Property="Opacity" Value="0.5" /> + </DataTrigger> + </Style.Triggers> + </Style> + </Rectangle.Style> + </Rectangle> </DataTemplate> </Setter.Value> </Setter> @@ -234,4 +229,13 @@ <Style TargetType="{x:Type dockablz:Layout}"> <Setter Property="Background" Value="{DynamicResource Brushes.Surface.Frame}" /> </Style> + + <!-- + Drop zones of the layout (split the tabs: top / right / bottom / left) in the accent color like the merge hint + in the tab bar (see DefaultTabablzControl), instead of the text color. The template of Dragablz draws the shapes + in the Foreground (opacity 0.25, 0.5 while offered). + --> + <Style TargetType="{x:Type dockablz:DropZone}"> + <Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Accent}" /> + </Style> </ResourceDictionary> \ No newline at end of file From 4ccc48e5ae163fa49e7e02fade87c644ee1f704c Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 13:48:33 +0100 Subject: [PATCH 222/232] Fix: merge hint offset by one tab in an empty tab bar With EmptyHeaderSizingHint PreviousTab, Dragablz keeps the width (and height) of the last tab when all tabs are dragged out, so the hint started after an empty tab. Collapse: the empty tab bar keeps its height through the "+" of the host views (36), other windows close when they are empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager/Resources/Styles/DragablzStyles.xaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml index 25396892dd..855e2a5747 100644 --- a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml @@ -150,7 +150,10 @@ <!-- Page (content) in the background of the box, the tab bar above it shows the frame color of the dockablz:Layout --> <Setter Property="Background" Value="{DynamicResource MahApps.Brushes.ThemeBackground}" /> - <Setter Property="EmptyHeaderSizingHint" Value="PreviousTab" /> + <!-- Collapse (not PreviousTab, which keeps the width of the last tab): an empty tab bar (all tabs dragged out, + only in the main window - other windows close) would keep an empty tab and the merge hint would start after + it. The height of the bar stays: the "+" (HeaderSuffixContent of the host views) is 36 high. --> + <Setter Property="EmptyHeaderSizingHint" Value="Collapse" /> <!-- A tab dragged out (as a window) can be dropped anywhere on the tab bar of another window of the same tool, not only over the tabs. While it is dragged, the tab bars it can be dropped into show a slot after the last tab (stronger when the cursor is near), like the drop zones of the layout (same color and opacity, see the From c6df673a5f3998124c22b8de1a39153e27e10db2 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 13:50:16 +0100 Subject: [PATCH 223/232] Design: merge hint and drop zones in gray instead of the accent color User: the accent doesn't look good for the hints. Both use the foreground of the theme (gray at opacity 0.25 / 0.5 when near), set explicitly so the drop zones and the merge hint always match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../Resources/Styles/DragablzStyles.xaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml index 855e2a5747..b60496a887 100644 --- a/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/DragablzStyles.xaml @@ -156,7 +156,7 @@ <Setter Property="EmptyHeaderSizingHint" Value="Collapse" /> <!-- A tab dragged out (as a window) can be dropped anywhere on the tab bar of another window of the same tool, not only over the tabs. While it is dragged, the tab bars it can be dropped into show a slot after the last - tab (stronger when the cursor is near), like the drop zones of the layout (same color and opacity, see the + tab (stronger when the cursor is near), like the drop zones of the layout (same gray and opacity, see the DropZone style). No icon: the "+" next to it opens a new tab. --> <Setter Property="MergeTargetArea" Value="HeaderPanel" /> <Setter Property="ShowMergeHint" Value="True" /> @@ -166,7 +166,7 @@ <Rectangle Width="120" HorizontalAlignment="Left" Margin="4,4,0,4" RadiusX="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" RadiusY="{Binding Source={StaticResource CornerRadius.Control}, Path=TopLeft}" - Fill="{DynamicResource MahApps.Brushes.Accent}"> + Fill="{DynamicResource MahApps.Brushes.ThemeForeground}"> <Rectangle.Style> <Style TargetType="{x:Type Rectangle}"> <Setter Property="Opacity" Value="0.25" /> @@ -234,11 +234,11 @@ </Style> <!-- - Drop zones of the layout (split the tabs: top / right / bottom / left) in the accent color like the merge hint - in the tab bar (see DefaultTabablzControl), instead of the text color. The template of Dragablz draws the shapes - in the Foreground (opacity 0.25, 0.5 while offered). + Drop zones of the layout (split the tabs: top / right / bottom / left) in the same neutral gray as the merge hint + in the tab bar (see DefaultTabablzControl): the template of Dragablz draws the shapes in the Foreground (opacity + 0.25, 0.5 while offered) - the foreground of the theme, set explicitly so both always match. No accent (user). --> <Style TargetType="{x:Type dockablz:DropZone}"> - <Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Accent}" /> + <Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.ThemeForeground}" /> </Style> </ResourceDictionary> \ No newline at end of file From d4fadd328d935b5ea359f1c3d67231b08d87691d Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 14:49:52 +0100 Subject: [PATCH 224/232] Fix: warning icon without text behind the profiles (settings, profile panel) The profile manager error message (ProfilesView, ProfileExpanderPanel) was shown whenever the profile file didn't need to be unlocked, also without an error: since D10.2 (EmptyStateMessage instead of a TextBlock) its icon was visible with an empty text. EmptyStateMessage now shows nothing without a text (template trigger, works with a Visibility set on the control). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../Resources/Styles/TextBlockStyles.xaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml index 5d36e9292a..aad3fcc7bb 100644 --- a/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml @@ -55,7 +55,8 @@ </Style> <!-- Message in an empty area with an icon above (e.g. no rules found, restart as administrator): gray icon - (IconSize, default 40) + the text like MessageTextBlock. Implicit style for icons:EmptyStateMessage --> + (IconSize, default 40) + the text like MessageTextBlock. Nothing is shown without a text (e.g. a bound error + message that is empty), also if the Visibility is set on the control. Implicit style for icons:EmptyStateMessage --> <Style x:Key="DefaultEmptyStateMessage" TargetType="{x:Type icons:EmptyStateMessage}"> <Setter Property="Focusable" Value="False" /> <Setter Property="IsTabStop" Value="False" /> @@ -64,7 +65,7 @@ <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type icons:EmptyStateMessage}"> - <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> + <StackPanel x:Name="Root" VerticalAlignment="Center" HorizontalAlignment="Center"> <icons:LucideIcon x:Name="Icon" Kind="{TemplateBinding Icon}" Width="{TemplateBinding IconSize}" @@ -80,6 +81,12 @@ <Trigger Property="Icon" Value="None"> <Setter TargetName="Icon" Property="Visibility" Value="Collapsed" /> </Trigger> + <Trigger Property="Text" Value="{x:Null}"> + <Setter TargetName="Root" Property="Visibility" Value="Collapsed" /> + </Trigger> + <Trigger Property="Text" Value=""> + <Setter TargetName="Root" Property="Visibility" Value="Collapsed" /> + </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> From 95fcbf87b0edc018373ca578b236ba107fef9dba Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 14:57:38 +0100 Subject: [PATCH 225/232] Fix: Appearance_Animations policy not written to the log The other policies are logged when config.json is loaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Source/NETworkManager.Settings/PolicyManager.cs | 1 + 1 file changed, 1 insertion(+) 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"}"); From c5110afd99fd59bea2d97057fcbaab59fe81d335 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:04:50 +0100 Subject: [PATCH 226/232] Design: restart as administrator notice in one row The notice below the list (Hosts File Editor, Firewall, Neighbor Table, Discovery Protocol, Network Interface) took ~115 px: shield above the message, button below. New AdminNotice control (one row like an info bar: shield + message, wraps if narrow; "Restart as Administrator" on the right, ~44 px) instead of five copies of the box. Docs, conventions, changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .../feature-review/references/conventions.md | 4 +- AGENTS.md | 5 ++- Source/NETworkManager.Controls/AdminNotice.cs | 38 +++++++++++++++++ .../EmptyStateMessage.cs | 4 +- .../Resources/Styles/TextBlockStyles.xaml | 40 +++++++++++++++++- .../Views/DiscoveryProtocolView.xaml | 40 +++--------------- Source/NETworkManager/Views/FirewallView.xaml | 40 +++--------------- .../Views/HostsFileEditorView.xaml | 41 +++---------------- .../Views/NeighborTableView.xaml | 41 +++---------------- .../Views/NetworkInterfaceView.xaml | 40 +++--------------- Website/docs/changelog/next-release.md | 2 +- 11 files changed, 112 insertions(+), 183 deletions(-) create mode 100644 Source/NETworkManager.Controls/AdminNotice.cs diff --git a/.claude/skills/feature-review/references/conventions.md b/.claude/skills/feature-review/references/conventions.md index 218eaab5ce..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 diff --git a/AGENTS.md b/AGENTS.md index 40b97d5ba3..59dc96ede7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -570,8 +570,9 @@ SemiBold (section headers), `MessageTextBlock` 16 gray (messages in empty areas) - 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, restart as administrator): `EmptyStateMessage` (`Icon`, `Text`, - `IconSize` 40, 24 for notices below a list) instead of a bare `MessageTextBlock`; loading texts stay `MessageTextBlock`. +- 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 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; + +/// <summary> +/// Notice below a list that a tool needs elevated rights (e.g. read-only mode of the Firewall): one row with a +/// shield, the <see cref="Text" /> and the button "Restart as Administrator" (<see cref="Command" />) on the right. +/// The look (template) is defined by the style <c>DefaultAdminNotice</c> of the application (TextBlockStyles.xaml, +/// implicit style). +/// </summary> +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)); + + /// <summary> + /// Message (e.g. why the tool is read-only). + /// </summary> + public string Text + { + get => (string)GetValue(TextProperty); + set => SetValue(TextProperty, value); + } + + /// <summary> + /// Command of the button "Restart as Administrator". + /// </summary> + public ICommand Command + { + get => (ICommand)GetValue(CommandProperty); + set => SetValue(CommandProperty, value); + } +} diff --git a/Source/NETworkManager.Controls/EmptyStateMessage.cs b/Source/NETworkManager.Controls/EmptyStateMessage.cs index 9e8d60b9cb..b635f96930 100644 --- a/Source/NETworkManager.Controls/EmptyStateMessage.cs +++ b/Source/NETworkManager.Controls/EmptyStateMessage.cs @@ -4,14 +4,14 @@ namespace NETworkManager.Controls; /// <summary> -/// Message in an empty area (e.g. no rules found, restart as administrator, configure the path): a gray +/// Message in an empty area (e.g. no rules found, configure the path): a gray /// <see cref="Icon" /> above the <see cref="Text" />. The look (template, text style) is defined by the style /// <c>DefaultEmptyStateMessage</c> of the application (TextBlockStyles.xaml, implicit style). /// </summary> public class EmptyStateMessage : Control { /// <summary> - /// Default size of the icon (empty area). Notices (e.g. restart as administrator below a list) use 24. + /// Default size of the icon (empty area). /// </summary> public const double DefaultIconSize = 40; diff --git a/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml index aad3fcc7bb..99173589e1 100644 --- a/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml +++ b/Source/NETworkManager/Resources/Styles/TextBlockStyles.xaml @@ -1,6 +1,7 @@ <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"> + xmlns:icons="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls" + xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"> <Style x:Key="DefaultTextBlock" TargetType="{x:Type TextBlock}"> <Setter Property="FontSize" Value="14" /> <Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Text}" /> @@ -95,6 +96,43 @@ <Style TargetType="{x:Type icons:EmptyStateMessage}" BasedOn="{StaticResource DefaultEmptyStateMessage}" /> + <!-- Notice below a list that a tool needs elevated rights (Hosts File Editor, Firewall, Neighbor Table, Discovery + Protocol, Network Interface): one row like an info bar - shield + message (wraps if the window is narrow) on + the left, "Restart as Administrator" on the right. Implicit style for icons:AdminNotice --> + <Style x:Key="DefaultAdminNotice" TargetType="{x:Type icons:AdminNotice}"> + <Setter Property="Focusable" Value="False" /> + <Setter Property="IsTabStop" Value="False" /> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type icons:AdminNotice}"> + <Border Background="{DynamicResource MahApps.Brushes.Gray10}" + CornerRadius="{StaticResource CornerRadius.Card}" + Padding="10,6,6,6"> + <Grid> + <Grid.ColumnDefinitions> + <ColumnDefinition Width="Auto" /> + <ColumnDefinition Width="*" /> + <ColumnDefinition Width="Auto" /> + </Grid.ColumnDefinitions> + <icons:LucideIcon Grid.Column="0" Kind="Shield" Width="16" Height="16" + Foreground="{DynamicResource MahApps.Brushes.Gray3}" + VerticalAlignment="Center" Margin="0,0,10,0" /> + <TextBlock Grid.Column="1" Text="{TemplateBinding Text}" + Style="{StaticResource DefaultTextBlock}" TextWrapping="Wrap" + VerticalAlignment="Center" /> + <Button Grid.Column="2" Command="{TemplateBinding Command}" + Content="{x:Static localization:Strings.RestartAsAdmin}" + Style="{StaticResource DefaultButton}" + VerticalAlignment="Center" Margin="10,0,0,0" /> + </Grid> + </Border> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> + + <Style TargetType="{x:Type icons:AdminNotice}" BasedOn="{StaticResource DefaultAdminNotice}" /> + <Style x:Key="BoldTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource DefaultTextBlock}"> <Setter Property="FontWeight" Value="Bold" /> </Style> diff --git a/Source/NETworkManager/Views/DiscoveryProtocolView.xaml b/Source/NETworkManager/Views/DiscoveryProtocolView.xaml index f08b29cd2d..2532e4f3e5 100644 --- a/Source/NETworkManager/Views/DiscoveryProtocolView.xaml +++ b/Source/NETworkManager/Views/DiscoveryProtocolView.xaml @@ -264,41 +264,11 @@ </StackPanel> <!-- Row 7: Admin note --> - <Border Grid.Row="7" - Background="{DynamicResource MahApps.Brushes.Gray10}" - CornerRadius="{StaticResource CornerRadius.Card}" - Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" - Margin="0,10,0,0"> - <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" - Margin="10"> - <icons:EmptyStateMessage Icon="Shield" IconSize="24" Text="{x:Static localization:Strings.NetworkPacketsCaptureAdminMessage}" - Margin="0,0,0,10" /> - <Button Command="{Binding RestartAsAdminCommand}" - HorizontalAlignment="Center" - Style="{StaticResource ImageWithTextButton}"> - <Button.Content> - <Grid> - <Grid.ColumnDefinitions> - <ColumnDefinition Width="Auto" /> - <ColumnDefinition Width="*" /> - </Grid.ColumnDefinitions> - <Rectangle Width="20" Height="20" - Margin="10,5,0,5" - Fill="{DynamicResource MahApps.Brushes.Gray3}"> - <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Shield}" /> - </Rectangle.OpacityMask> - </Rectangle> - <TextBlock Grid.Column="1" - Text="{x:Static localization:Strings.RestartAsAdmin}" - FontSize="14" - Margin="10,5" - TextAlignment="Center" /> - </Grid> - </Button.Content> - </Button> - </StackPanel> - </Border> + <icons:AdminNotice Text="{x:Static localization:Strings.NetworkPacketsCaptureAdminMessage}" + Command="{Binding RestartAsAdminCommand}" + Grid.Row="7" + Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" + Margin="0,10,0,0" /> </Grid> </Grid> </TabItem> diff --git a/Source/NETworkManager/Views/FirewallView.xaml b/Source/NETworkManager/Views/FirewallView.xaml index fd33dadd67..7aa4ffd3f5 100644 --- a/Source/NETworkManager/Views/FirewallView.xaml +++ b/Source/NETworkManager/Views/FirewallView.xaml @@ -821,41 +821,11 @@ </Grid> <!-- Row 7: Admin note --> - <Border Grid.Row="7" - Background="{DynamicResource MahApps.Brushes.Gray10}" - CornerRadius="{StaticResource CornerRadius.Card}" - Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" - Margin="0,10,0,0"> - <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" - Margin="10"> - <icons:EmptyStateMessage Icon="Shield" IconSize="24" Text="{x:Static localization:Strings.FirewallAdminMessage}" - Margin="0,0,0,10" /> - <Button Command="{Binding RestartAsAdminCommand}" - HorizontalAlignment="Center" - Style="{StaticResource ImageWithTextButton}"> - <Button.Content> - <Grid> - <Grid.ColumnDefinitions> - <ColumnDefinition Width="Auto" /> - <ColumnDefinition Width="*" /> - </Grid.ColumnDefinitions> - <Rectangle Width="20" Height="20" - Margin="10,5,0,5" - Fill="{DynamicResource MahApps.Brushes.Gray3}"> - <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Shield}" /> - </Rectangle.OpacityMask> - </Rectangle> - <TextBlock Grid.Column="1" - Text="{x:Static localization:Strings.RestartAsAdmin}" - FontSize="14" - Margin="10,5" - TextAlignment="Center" /> - </Grid> - </Button.Content> - </Button> - </StackPanel> - </Border> + <icons:AdminNotice Text="{x:Static localization:Strings.FirewallAdminMessage}" + Command="{Binding RestartAsAdminCommand}" + Grid.Row="7" + Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" + Margin="0,10,0,0" /> </Grid> </TabItem> </TabControl> diff --git a/Source/NETworkManager/Views/HostsFileEditorView.xaml b/Source/NETworkManager/Views/HostsFileEditorView.xaml index 12708a88d3..1c0c781527 100644 --- a/Source/NETworkManager/Views/HostsFileEditorView.xaml +++ b/Source/NETworkManager/Views/HostsFileEditorView.xaml @@ -369,41 +369,12 @@ </WrapPanel> </Grid> <!-- Row 7: Admin note --> - <Border Grid.Column="0" Grid.Row="7" - Background="{DynamicResource MahApps.Brushes.Gray10}" - CornerRadius="{StaticResource CornerRadius.Card}" - Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" - Margin="0,10,0,0"> - <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" - Margin="10"> - <icons:EmptyStateMessage Icon="Shield" IconSize="24" Text="{x:Static localization:Strings.HostsFileEditorAdminMessage}" - Margin="0,0,0,10" /> - <Button Command="{Binding RestartAsAdminCommand}" - HorizontalAlignment="Center" - Style="{StaticResource ImageWithTextButton}"> - <Button.Content> - <Grid> - <Grid.ColumnDefinitions> - <ColumnDefinition Width="Auto" /> - <ColumnDefinition Width="*" /> - </Grid.ColumnDefinitions> - <Rectangle Width="20" Height="20" - Margin="10,5,0,5" - Fill="{DynamicResource MahApps.Brushes.Gray3}"> - <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Shield}" /> - </Rectangle.OpacityMask> - </Rectangle> - <TextBlock Grid.Column="1" Grid.Row="0" - Text="{x:Static localization:Strings.RestartAsAdmin}" - FontSize="14" - Margin="10,5" - TextAlignment="Center" /> - </Grid> - </Button.Content> - </Button> - </StackPanel> - </Border> + <icons:AdminNotice Text="{x:Static localization:Strings.HostsFileEditorAdminMessage}" + Command="{Binding RestartAsAdminCommand}" + Grid.Column="0" + Grid.Row="7" + Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" + Margin="0,10,0,0" /> </Grid> </TabItem> </TabControl> diff --git a/Source/NETworkManager/Views/NeighborTableView.xaml b/Source/NETworkManager/Views/NeighborTableView.xaml index 18bd3d85c6..0fa9b3c020 100644 --- a/Source/NETworkManager/Views/NeighborTableView.xaml +++ b/Source/NETworkManager/Views/NeighborTableView.xaml @@ -278,41 +278,12 @@ </WrapPanel> </Grid> <!-- Row 7: Admin note --> - <Border Grid.Column="0" Grid.Row="7" - Background="{DynamicResource MahApps.Brushes.Gray10}" - CornerRadius="{StaticResource CornerRadius.Card}" - Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" - Margin="0,10,0,0"> - <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" - Margin="10"> - <icons:EmptyStateMessage Icon="Shield" IconSize="24" Text="{x:Static localization:Strings.NeighborTableAdminMessage}" - Margin="0,0,0,10" /> - <Button Command="{Binding RestartAsAdminCommand}" - HorizontalAlignment="Center" - Style="{StaticResource ImageWithTextButton}"> - <Button.Content> - <Grid> - <Grid.ColumnDefinitions> - <ColumnDefinition Width="Auto" /> - <ColumnDefinition Width="*" /> - </Grid.ColumnDefinitions> - <Rectangle Width="20" Height="20" - Margin="10,5,0,5" - Fill="{DynamicResource MahApps.Brushes.Gray3}"> - <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Shield}" /> - </Rectangle.OpacityMask> - </Rectangle> - <TextBlock Grid.Column="1" Grid.Row="0" - Text="{x:Static localization:Strings.RestartAsAdmin}" - FontSize="14" - Margin="10,5" - TextAlignment="Center" /> - </Grid> - </Button.Content> - </Button> - </StackPanel> - </Border> + <icons:AdminNotice Text="{x:Static localization:Strings.NeighborTableAdminMessage}" + Command="{Binding RestartAsAdminCommand}" + Grid.Column="0" + Grid.Row="7" + Visibility="{Binding Source={x:Static settings:ConfigurationManager.Current}, Path=IsAdmin, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" + Margin="0,10,0,0" /> </Grid> </TabItem> </TabControl> diff --git a/Source/NETworkManager/Views/NetworkInterfaceView.xaml b/Source/NETworkManager/Views/NetworkInterfaceView.xaml index 0d3d96a733..753aa22229 100644 --- a/Source/NETworkManager/Views/NetworkInterfaceView.xaml +++ b/Source/NETworkManager/Views/NetworkInterfaceView.xaml @@ -1477,41 +1477,11 @@ </Button.Style> </Button> </Grid> - <Border Grid.Row="5" - Background="{DynamicResource MahApps.Brushes.Gray10}" - CornerRadius="{StaticResource CornerRadius.Card}" - Visibility="{Binding HasPermissionToConfigure, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" - Margin="0,10,0,0"> - <StackPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" - Margin="10"> - <icons:EmptyStateMessage Icon="Shield" IconSize="24" Text="{x:Static localization:Strings.NetworkInterfaceConfigureAdminMessage}" - Margin="0,0,0,10" /> - <Button Command="{Binding RestartAsAdminCommand}" - HorizontalAlignment="Center" - Style="{StaticResource ImageWithTextButton}"> - <Button.Content> - <Grid> - <Grid.ColumnDefinitions> - <ColumnDefinition Width="Auto" /> - <ColumnDefinition Width="*" /> - </Grid.ColumnDefinitions> - <Rectangle Width="20" Height="20" - Margin="10,5,0,5" - Fill="{DynamicResource MahApps.Brushes.Gray3}"> - <Rectangle.OpacityMask> - <VisualBrush Stretch="Uniform" Visual="{icons:Lucide Kind=Shield}" /> - </Rectangle.OpacityMask> - </Rectangle> - <TextBlock Grid.Column="1" - Text="{x:Static localization:Strings.RestartAsAdmin}" - FontSize="14" - Margin="10,5" - TextAlignment="Center" /> - </Grid> - </Button.Content> - </Button> - </StackPanel> - </Border> + <icons:AdminNotice Text="{x:Static localization:Strings.NetworkInterfaceConfigureAdminMessage}" + Command="{Binding RestartAsAdminCommand}" + Grid.Row="5" + Visibility="{Binding HasPermissionToConfigure, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" + Margin="0,10,0,0" /> </Grid> </TabItem> </TabControl> diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 6b7413af8e..71e053b07c 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -83,7 +83,7 @@ Release date: **xx.xx.2026** - Colors: in the dark theme the boxes (tool, profiles) are raised on a darker window frame, the borders are softer, the selected tool in the navigation has a light tint of the accent color. The charts (**Ping Monitor**, bandwidth of the **Network Interface**, speed test, **WiFi** channels, **Traceroute** map) use colors with a good contrast in the light and dark theme and a fill below the lines that fades out. New installations use the accent color **Mint** (existing settings keep their accent). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - While a tab is dragged (e.g. to another window or to split the view), **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show the icon of the tool and the title of the tab instead of an empty area. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - New icons: all icons (navigation, toolbars, context menus, messages, status) come from one icon family, [Lucide](https://lucide.dev), instead of five different icon packs. They are drawn as thin lines (calmer, especially at small sizes) and have the same size and position everywhere. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- Empty areas (e.g. no firewall rules or Wi-Fi networks found, the path of PuTTY not configured) show a large gray icon above the message; the notices to restart as administrator show a shield. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Empty areas (e.g. no firewall rules or Wi-Fi networks found, the path of PuTTY not configured) show a large gray icon above the message. The notices to restart as administrator (e.g. **Firewall**, **Hosts File Editor**, **Neighbor Table**) take only one row: a shield and the message, the button on the right. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Status messages below the input (e.g. **IP Scanner**, **Port Scanner**, **DNS Lookup**, **Whois**, **SNMP**, **Wake on LAN**, **Network Interface**) show an icon and the color of the message: errors red, warnings yellow, success green (e.g. `Magic packet sent`), info gray (e.g. `Canceled by user`) - instead of the accent color for all messages. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **Profiles** From 7aa9bebc439340496b7ad8db71f53c18dfb3ddfe Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:10:16 +0100 Subject: [PATCH 227/232] Changelog: design refresh entries shortened 22 of the 30 entries of #3702 shortened to what users notice (e.g. the layout entry from ~960 to ~330 characters); the short per-tool entries (headings, status dots) are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Website/docs/changelog/next-release.md | 44 +++++++++++++------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index 71e053b07c..a50244a06f 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -36,9 +36,9 @@ Release date: **xx.xx.2026** ## What's new? - New setting **Dynamic tab width** in [Settings > Window](../settings/window.md#dynamic-tab-width): the tabs of the tools (e.g. **IP Scanner**, **Remote Desktop**, **PuTTY**) are as wide as their title, up to a configurable maximum width (default `300`), instead of a fixed width of `150`. Long titles (e.g. hostnames) are shortened with `...`, the tooltip shows the full title. [#3055](https://github.com/BornToBeRoot/NETworkManager/issues/3055) -- A dragged-out tab (e.g. **Remote Desktop**, **PuTTY**, **PowerShell**) can be dropped back anywhere on the tab bar of another window of the same tool, also on the empty area right of the tabs (before only over the existing tabs). While the tab is dragged, the tab bars it can be dropped into show a highlighted slot after the last tab, stronger when the tab is near. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- New setting **Accent glow** in [Settings > Appearance](../settings/appearance.md#accent-glow): a glow of the accent color in the top left corner of the windows (main window, window of dragged-out tabs, status window), weaker while a window is inactive. Intensity `Off`, `Subtle`, `Medium` (default for new installations) or `Strong`. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- New themes **Black**, **Midnight**, **Steel**, **Indigo** (dark) and **Mist** (light blue-gray like the Blue theme of Visual Studio), **Soft**, **Paper** (dimmed light) and new accent colors **Sky**, **Ocean**, **Mint**, **Rose**, **Coral**, **Gold**, **Lavender**, **Slate** and **Graphite** (neutral gray) in [Settings > Appearance](../settings/appearance.md#theme). All accents can be used with every theme. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- A dragged-out tab (e.g. **Remote Desktop**, **PuTTY**) can be dropped anywhere on the tab bar of another window of the same tool, not only over the existing tabs. While dragging, a highlighted slot shows where it can be dropped. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- New setting **Accent glow** in [Settings > Appearance](../settings/appearance.md#accent-glow): a subtle glow of the accent color in the top left corner of the windows (`Off`, `Subtle`, `Medium` (default), `Strong`). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- New themes **Black**, **Midnight**, **Steel**, **Indigo**, **Mist**, **Soft** and **Paper** and new accent colors **Sky**, **Ocean**, **Mint**, **Rose**, **Coral**, **Gold**, **Lavender**, **Slate** and **Graphite** in [Settings > Appearance](../settings/appearance.md#theme). All accents work with every theme. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - ARM64 builds are now available. [#3538](https://github.com/BornToBeRoot/NETworkManager/issues/3538) **Run command** @@ -73,23 +73,23 @@ Release date: **xx.xx.2026** - Actions that require elevated rights now show a tooltip with the reason when they are disabled because the application is not running as administrator (e.g. **Apply**, **Flush DNS cache** and **Release & Renew** in **Network Interface**, the context menu and **Add entry...** in **Hosts File Editor**, **Firewall** and **Neighbor Table**, and **Capture** in **Discovery Protocol**). [#3626](https://github.com/BornToBeRoot/NETworkManager/pull/3626) - The collapsed/expanded state of profile groups (e.g. **linux-server**) is now remembered per profile file and shared across all tools, instead of resetting every time you switch tools or restart the application. [#3539](https://github.com/BornToBeRoot/NETworkManager/pull/3539) - The **Experimental features** setting in **Settings > Update** is removed: features in testing are marked with a **Beta** label at their own setting instead (e.g. **Read Windows host information** of the **IP Scanner**). [#3691](https://github.com/BornToBeRoot/NETworkManager/pull/3691) -- Disabled inputs and buttons (e.g. while a scan or refresh is running) are dimmed instead of covered by a light gray overlay (especially visible in the dark theme); disabled buttons keep their color. Disabled check boxes, radio buttons and toggle switches are dimmed the same way instead of shown in gray. Buttons and drop-downs (e.g. the adapter in **WiFi**) use a subtle background when the mouse is over them or they are clicked instead of a light gray. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- The status colors (e.g. host up / down, port open / closed, changes since the last scan, warnings and errors) are darker in the light theme and easier to read on the white background. Monospace text uses **Cascadia Mono** on Windows 11 (Consolas on Windows 10): IP and MAC addresses, hostnames, ports, subnets and other technical values in the lists, inputs and details of all tools (e.g. **IP Scanner**, **Port Scanner**, **Network Interface**, **Subnet Calculator**), the run command and console output. Names, descriptions and labels keep the normal font. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- Buttons, inputs, tooltips and context menus have rounded corners. Buttons have a subtle background instead of a border and are narrower (min. width 100 instead of 150), icon buttons (e.g. next to the inputs) are transparent until the mouse is over them; the main action (e.g. **Scan**, **Connect**) keeps the accent color. Inputs show a gray border while they have the focus and a slightly stronger border when the mouse is over them. Drop-downs (e.g. the profile file in the title bar) are rounded with a shadow like the context menus and show the selected entry with a subtle background instead of the accent color. Keyboard navigation (`Tab`) shows a gray focus ring instead of a dotted rectangle. Scrollbars have a rounded thumb and are less bright when the mouse is over them. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- New layout: the navigation, the main view and the profiles are shown as rounded boxes on a slightly tinted window background (like Visual Studio); the selected application is shown with a rounded background over the whole row and a short accent indicator. The groups of the **Ping Monitor** are shown as sections with a line below the group name. Dialogs are rounded with a soft shadow and darken the window behind them. **Dashboard** widgets and **Ping Monitor** hosts are shown as rounded cards. Lists have taller rows, a subtle mouse over and a light accent-colored selection (instead of the full accent color). The window with dragged-out tabs and the status window use the same layout. Tabs look like in VS Code: the tab bar has the color of the window frame, the selected tab has the background of the page with an accent line on top. On Windows 11, the windows have rounded corners. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- Dialogs (e.g. add / edit profile, settings) open with a short zoom and fade and close faster; the run command slides down from the top. The indicator of the selected tool in the navigation grows in, buttons and the navigation fade their mouse over / pressed background, expanders rotate their arrow and fade in their content, tooltips appear faster, notifications slide in from the right and the progress of the **IP Scanner** and **Port Scanner** moves smoothly (at most 10 updates per second of the bar, also for large scans). New setting **Animations** in [Settings > Appearance](../settings/appearance.md#animations): `System` (default, follows the Windows setting **Animation effects**), `On` or `Off`; can be turned on or off for all users with the system-wide policy `Appearance_Animations` (e.g. on a terminal server). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- Progress bars and loading indicators look the same in all tools: progress bars in the accent color on a subtle track (also readable in the light theme), one kind of spinner in three sizes instead of three different loading animations. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- Clearer text: section headers (e.g. in the settings and the profile dialog) are 16 semibold instead of 18 light gray, the tools in the navigation 14 like the tabs, messages in empty areas 16. On Windows 11 the application uses **Segoe UI Variable** (Segoe UI on Windows 10). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- Colors: in the dark theme the boxes (tool, profiles) are raised on a darker window frame, the borders are softer, the selected tool in the navigation has a light tint of the accent color. The charts (**Ping Monitor**, bandwidth of the **Network Interface**, speed test, **WiFi** channels, **Traceroute** map) use colors with a good contrast in the light and dark theme and a fill below the lines that fades out. New installations use the accent color **Mint** (existing settings keep their accent). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- While a tab is dragged (e.g. to another window or to split the view), **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show the icon of the tool and the title of the tab instead of an empty area. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- New icons: all icons (navigation, toolbars, context menus, messages, status) come from one icon family, [Lucide](https://lucide.dev), instead of five different icon packs. They are drawn as thin lines (calmer, especially at small sizes) and have the same size and position everywhere. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- Empty areas (e.g. no firewall rules or Wi-Fi networks found, the path of PuTTY not configured) show a large gray icon above the message. The notices to restart as administrator (e.g. **Firewall**, **Hosts File Editor**, **Neighbor Table**) take only one row: a shield and the message, the button on the right. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- Status messages below the input (e.g. **IP Scanner**, **Port Scanner**, **DNS Lookup**, **Whois**, **SNMP**, **Wake on LAN**, **Network Interface**) show an icon and the color of the message: errors red, warnings yellow, success green (e.g. `Magic packet sent`), info gray (e.g. `Canceled by user`) - instead of the accent color for all messages. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Disabled controls (e.g. while a scan is running) are dimmed instead of covered by a light gray overlay. Mouse over and pressed use a subtle background instead of light gray. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Status colors (e.g. up / down, open / closed, warnings and errors) are easier to read in the light theme. Technical values (e.g. IP / MAC addresses, hostnames, ports, console output) use **Cascadia Mono** on Windows 11 (Consolas on Windows 10). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Rounded buttons, inputs, drop-downs, tooltips and context menus. Buttons have a subtle background instead of a border, icon buttons are transparent until the mouse is over them, the main action (e.g. **Scan**) keeps the accent color. Keyboard focus shows a gray ring instead of a dotted rectangle. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- New layout: navigation, tool and profiles as rounded boxes on a tinted window frame (like Visual Studio), tabs like in VS Code, rounded dialogs and cards (**Dashboard**, **Ping Monitor**), lists with taller rows and a light accent-colored selection. Rounded window corners on Windows 11. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Subtle animations: dialogs, navigation, expanders, tooltips, notifications and a smooth progress of the **IP Scanner** and **Port Scanner**. New setting **Animations** in [Settings > Appearance](../settings/appearance.md#animations): `System` (default, follows Windows), `On` or `Off`; also as system-wide policy `Appearance_Animations`. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Progress bars and loading indicators look the same in all tools. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Clearer text: semibold section headers, larger messages in empty areas and **Segoe UI Variable** on Windows 11. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- In the dark theme, the boxes are raised on a darker window frame. The charts (e.g. **Ping Monitor**, **WiFi**, **Traceroute** map) use colors with a good contrast in the light and dark theme. New installations use the accent color **Mint**. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- While a tab is dragged, **Remote Desktop**, **PowerShell**, **PuTTY**, **TigerVNC** and **Web Console** show the icon of the tool and the title of the tab instead of an empty area. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- New icons: one icon family ([Lucide](https://lucide.dev)) with thin lines instead of five different icon packs. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Empty areas (e.g. no firewall rules found) show a large gray icon above the message. The notices to restart as administrator take only one row. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Status messages below the input (e.g. **IP Scanner**, **DNS Lookup**, **Wake on LAN**) show an icon and the color of their type (error, warning, success, info) instead of the accent color. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **Profiles** - **Settings > Profiles**: `Enter` in the search box filters the profiles right away instead of after the delay while typing. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) -- The profile and group dialogs open faster: the error marker of each page in the list only checks the inputs of its page (instead of the checks of all pages for every page). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- The profile and group dialogs open faster. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **Dashboard** @@ -222,11 +222,11 @@ Release date: **xx.xx.2026** **PowerShell** -- The console uses the colors of the application theme (also the new and custom themes): the background of the box around it and a matching text color, updated when the theme is changed (with **Apply theme to PowerShell console**). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- The console uses the colors of the application theme (with **Apply theme to PowerShell console**). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **PuTTY** -- The terminal uses the colors of the application theme (also the new and custom themes): the background of the box around it and a matching text color, bold text readable in light themes; updated when the theme is changed. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- The terminal uses the colors of the application theme, updated when the theme is changed. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **SNMP** @@ -309,7 +309,7 @@ Release date: **xx.xx.2026** ## Bug Fixes -- Fixed that the input of a running tool (e.g. the host of the **IP Scanner**, **Port Scanner**, **Ping Monitor**, **Traceroute** or **DNS Lookup**, the version / mode of **SNMP**) could still be changed by selecting an entry of the history (drop-down, `Up`/`Down`, `F4`). The input stays read-only while the tool is running, the text can still be selected and copied. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Fixed that the input of a running tool (e.g. **IP Scanner**, **Port Scanner**, **DNS Lookup**) could still be changed via the history (drop-down, `Up`/`Down`, `F4`). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Fixed changes to lists in the settings (e.g. query histories, port profiles, custom commands) not being saved if no other setting was changed in the same session. This happened since the settings are stored as JSON. [#3607](https://github.com/BornToBeRoot/NETworkManager/pull/3607) - Fixed the profile search (profile list in the tools, **Profiles** settings and import result) filtering the profiles while still typing. The profiles are now filtered once after the user stopped typing, instead of every 750 ms after the first key press. [#3638](https://github.com/BornToBeRoot/NETworkManager/pull/3638) - Fixed the application list not scrolling to the selected application if it was opened from somewhere else (e.g. from the **Dashboard**, another application or the run command). [#3644](https://github.com/BornToBeRoot/NETworkManager/pull/3644) @@ -337,7 +337,7 @@ Release date: **xx.xx.2026** - Fixed `Enter` in the search box of the import result importing the profiles (default button). It filters the found profiles right away now, instead of after the delay while typing. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - Fixed columns that couldn't be made wider than the window (by dragging or double-clicking the gripper) in the groups (Settings > Profiles) and the import result. The grid scrolls horizontally now, the last (or main) column still fills the remaining width. [#3557](https://github.com/BornToBeRoot/NETworkManager/issues/3557) - Fixed the names of the features in the group dialog shown without spaces (e.g. `RemoteDesktop` instead of **Remote Desktop**). [#3667](https://github.com/BornToBeRoot/NETworkManager/pull/3667) -- Fixed closed dialogs (profile, group, import of Active Directory computers, import result, SNMP OID profiles) being kept in memory until the application was closed; resizing the main window also resized all of them. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Fixed closed dialogs (e.g. profile, group) being kept in memory until the application was closed. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Fixed the profiles of a group renamed only by case (e.g. `servers` → `Servers`) keeping the old group name. Opening them in a feature with group settings (e.g. **Remote Desktop**, **PuTTY**) failed, and editing one could create a second group with the old name. Profile files with such profiles are repaired when they are loaded. [#3667](https://github.com/BornToBeRoot/NETworkManager/pull/3667) **Dashboard** @@ -470,7 +470,7 @@ Release date: **xx.xx.2026** **PowerShell** -- Fixed **Apply theme to PowerShell console** not being applied to PowerShell from the Microsoft Store (path in `%LocalAppData%\Microsoft\WindowsApps\...`): the console profile is also written for the real path of the app. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- Fixed **Apply theme to PowerShell console** not working for PowerShell from the Microsoft Store. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) **SNMP** @@ -567,6 +567,6 @@ Release date: **xx.xx.2026** - Reworked the GitHub issue templates as forms (bug report, feature request, question) that ask for the relevant information (e.g. affected feature, version, installation, Windows version, log), with links to the documentation, discussions, translations and security advisories. Simplified the pull request template and removed the Copilot summary section. [#3660](https://github.com/BornToBeRoot/NETworkManager/pull/3660) - Faster CI: AppVeyor no longer builds a branch a second time when a PR is open, skips changes that only affect the documentation / website, builds ARM64 only for releases and now runs the unit tests. The website is only built for PRs that change it and builds about 3x faster (Docusaurus Faster). Dependabot also updates the GitHub Actions, and CodeQL also scans the workflows. Website changes are only merged automatically if the website builds. Dependabot major updates are no longer merged automatically. Removed the stale bot. [#3675](https://github.com/BornToBeRoot/NETworkManager/pull/3675) - The exports (CSV, XML, JSON) of all tools define their columns once and are written by one shared writer, so the three formats can't drift apart and every tool formats the same kind of value the same way (not translated), see [Export format](../faq/export-format.md). Added unit tests for the exports. [#3696](https://github.com/BornToBeRoot/NETworkManager/pull/3696) -- The icons are imported from the original SVG files of Lucide (`Scripts/Create-LucideIcons.ps1`, only the used icons) and drawn by an own control, the MahApps.Metro.IconPacks packages are removed. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- The icons are imported from the Lucide SVG files (`Scripts/Create-LucideIcons.ps1`), the MahApps.Metro.IconPacks packages are removed. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Language files updated via [#transifex](https://github.com/BornToBeRoot/NETworkManager/pulls?q=author%3Aapp%2Ftransifex-integration) - Dependencies updated via [#dependabot](https://github.com/BornToBeRoot/NETworkManager/pulls?q=author%3Aapp%2Fdependabot) From 17392ca4eb4856668aaf8a130157d276f7a33b48 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:11:41 +0100 Subject: [PATCH 228/232] Docs: README up to date 18 languages (was 16+), run command, light and dark themes; typos (Port Scanner, coffee, NETworkManager). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7fa33af139..8157794b12 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Streamline and simplify your network administration and troubleshooting with <strong>NETworkManager</strong>. 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 <a href="https://borntoberoot.net/NETworkManager/docs/introduction">many more</a> — all in a clean, unified interface. </p> <p> - 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. </p> <p> <a href="https://borntoberoot.net/NETworkManager/download" target="_blank"> @@ -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 <a href="https://borntoberoot.net/NETworkManager/docs/introduction">many more</a>. +- 🔍 **Analyze & Troubleshoot** - Deep network diagnostics with WiFi Analyzer, IP Scanner, Port Scanner, Ping Monitor, Traceroute, DNS Lookup, LLDP/CDP Capture, and <a href="https://borntoberoot.net/NETworkManager/docs/introduction">many more</a>. +- ⌨️ **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 | | --------------- | ---------------------------------------------- | @@ -245,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. From d69778589f61138a9650041766b8425d3541c5a1 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:11:41 +0100 Subject: [PATCH 229/232] Docs: AGENTS.md statistics and project tree up to date 900+ C# / 170+ XAML files, 15 projects (incl. tests and Dragablz), 70+ doc pages; NETworkManager.Tests in the tree, Dragablz as submodule of the fork. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 59dc96ede7..408cd8e165 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -33,7 +33,8 @@ 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 @@ -56,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 From 279a900903b36f14dddbd9542a3b0251f28966d0 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:12:48 +0100 Subject: [PATCH 230/232] Docs: no comparisons with other applications in the changelog and docs Layout / tabs (Visual Studio, VS Code), the run command box in the title bar (VS Code) and the theme Mist (Visual Studio). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Website/docs/changelog/next-release.md | 4 ++-- Website/docs/settings/appearance.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Website/docs/changelog/next-release.md b/Website/docs/changelog/next-release.md index a50244a06f..190c9e4325 100644 --- a/Website/docs/changelog/next-release.md +++ b/Website/docs/changelog/next-release.md @@ -47,7 +47,7 @@ Release date: **xx.xx.2026** - New run command targets for the **Subnet Calculator** (`subnet 10.0.0.0/24`, `subnet 10.0.0.0/16 /24` for subnetting, `subnet 10.0.0.0/24 10.0.1.0/24` for the wide subnet) and the **Lookup** (`lookup oui 00:11:22`, `lookup port 22; ssh`). [#3646](https://github.com/BornToBeRoot/NETworkManager/pull/3646) - New global hotkey to bring the window to the foreground and open the run command (default `Ctrl+Alt+P`, disabled by default), see [Settings > HotKeys](../settings/hotkeys.md). [#3646](https://github.com/BornToBeRoot/NETworkManager/pull/3646) - Run command: the **Port Scanner** needs ports, which can also be names of port profiles, also several and together with ports (e.g. `portscan 10.0.0.1 webserver` or `portscan 10.0.0.1 "DNS (via TCP)";webserver;22`, suggested after the host and after a `;`). Own history size for the run command (default 20, [Settings > General](../settings/general.md#number-of-stored-entries-run-command)). `Tab` also completes profiles and port profiles, `PageUp`/`PageDown` move the selection by 5 suggestions. [#3646](https://github.com/BornToBeRoot/NETworkManager/pull/3646) -- Run command dialog redesigned: the icon of the recognized feature, the syntax with the part being typed highlighted, the values as they were understood (e.g. `Hosts: borntoberoot.net`, `Type: AAAA`), validation while typing, grouped suggestions with the typed text highlighted, examples and key hints (can be hidden in the settings). The dialog uses more space in a large window. The title bar shows a **Run command...** box in the center (like the command center of VS Code) instead of the icon. Type only a target (e.g. `10.0.0.1`, `server-01`, `00:11:22:33:44:55`, `10.0.0.0/24`) to get the commands that accept it, recent commands are also suggested while typing (e.g. a host); optionally, a target in the clipboard is suggested ([Settings > General](../settings/general.md#suggest-the-clipboard-content-as-target)). `Ctrl+Enter` runs and keeps the dialog open, `Shift+Enter` fills in the input without starting, `Shift+Del` or the remove button removes a recent command. [#3646](https://github.com/BornToBeRoot/NETworkManager/pull/3646) +- Run command dialog redesigned: the icon of the recognized feature, the syntax with the part being typed highlighted, the values as they were understood (e.g. `Hosts: borntoberoot.net`, `Type: AAAA`), validation while typing, grouped suggestions with the typed text highlighted, examples and key hints (can be hidden in the settings). The dialog uses more space in a large window. The title bar shows a **Run command...** box in the center instead of the icon. Type only a target (e.g. `10.0.0.1`, `server-01`, `00:11:22:33:44:55`, `10.0.0.0/24`) to get the commands that accept it, recent commands are also suggested while typing (e.g. a host); optionally, a target in the clipboard is suggested ([Settings > General](../settings/general.md#suggest-the-clipboard-content-as-target)). `Ctrl+Enter` runs and keeps the dialog open, `Shift+Enter` fills in the input without starting, `Shift+Del` or the remove button removes a recent command. [#3646](https://github.com/BornToBeRoot/NETworkManager/pull/3646) **Settings** @@ -76,7 +76,7 @@ Release date: **xx.xx.2026** - Disabled controls (e.g. while a scan is running) are dimmed instead of covered by a light gray overlay. Mouse over and pressed use a subtle background instead of light gray. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Status colors (e.g. up / down, open / closed, warnings and errors) are easier to read in the light theme. Technical values (e.g. IP / MAC addresses, hostnames, ports, console output) use **Cascadia Mono** on Windows 11 (Consolas on Windows 10). [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Rounded buttons, inputs, drop-downs, tooltips and context menus. Buttons have a subtle background instead of a border, icon buttons are transparent until the mouse is over them, the main action (e.g. **Scan**) keeps the accent color. Keyboard focus shows a gray ring instead of a dotted rectangle. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) -- New layout: navigation, tool and profiles as rounded boxes on a tinted window frame (like Visual Studio), tabs like in VS Code, rounded dialogs and cards (**Dashboard**, **Ping Monitor**), lists with taller rows and a light accent-colored selection. Rounded window corners on Windows 11. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) +- New layout: navigation, tool and profiles as rounded boxes on a tinted window frame, new tabs with an accent line on the selected tab, rounded dialogs and cards (**Dashboard**, **Ping Monitor**), lists with taller rows and a light accent-colored selection. Rounded window corners on Windows 11. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Subtle animations: dialogs, navigation, expanders, tooltips, notifications and a smooth progress of the **IP Scanner** and **Port Scanner**. New setting **Animations** in [Settings > Appearance](../settings/appearance.md#animations): `System` (default, follows Windows), `On` or `Off`; also as system-wide policy `Appearance_Animations`. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Progress bars and loading indicators look the same in all tools. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) - Clearer text: semibold section headers, larger messages in empty areas and **Segoe UI Variable** on Windows 11. [#3702](https://github.com/BornToBeRoot/NETworkManager/pull/3702) diff --git a/Website/docs/settings/appearance.md b/Website/docs/settings/appearance.md index c949314a5c..1bda123822 100644 --- a/Website/docs/settings/appearance.md +++ b/Website/docs/settings/appearance.md @@ -22,7 +22,7 @@ Theme of the application which is based on [`MahApps.Metro themes`](https://maha - `Midnight` - dark blue - `Steel` - blue-gray - `Indigo` - dark violet-blue -- `Mist` - light blue-gray, like the Blue theme of Visual Studio +- `Mist` - light blue-gray - `Soft` - light gray, less bright than `Light` - `Paper` - warm, paper-like From b7dd51b242c42beb0808685c01391d69d5f5ea00 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:14:37 +0100 Subject: [PATCH 231/232] Docs: version of the new default accent (2026.11.14.0) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Website/docs/settings/appearance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/docs/settings/appearance.md b/Website/docs/settings/appearance.md index 1bda123822..354d0cccaa 100644 --- a/Website/docs/settings/appearance.md +++ b/Website/docs/settings/appearance.md @@ -34,7 +34,7 @@ Accent of the application which is based on [`MahApps.Metro themes`](https://mah **Type:** `String` -**Default:** `Mint` (`Lime` before version 2026.x.x - existing settings keep their accent) +**Default:** `Mint` (`Lime` before version 2026.11.14.0 - existing settings keep their accent) **Possible values:** From dc1bffe679612f46d1a80252eac41d79403471a7 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:15:20 +0100 Subject: [PATCH 232/232] Docs: only the current default accent Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- Website/docs/settings/appearance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/docs/settings/appearance.md b/Website/docs/settings/appearance.md index 354d0cccaa..6cbc7e50a7 100644 --- a/Website/docs/settings/appearance.md +++ b/Website/docs/settings/appearance.md @@ -34,7 +34,7 @@ Accent of the application which is based on [`MahApps.Metro themes`](https://mah **Type:** `String` -**Default:** `Mint` (`Lime` before version 2026.11.14.0 - existing settings keep their accent) +**Default:** `Mint` **Possible values:**