Skip to content

Commit 9ed5c23

Browse files
CopilotBornToBeRoot
andcommitted
Improve accessibility with icon and add documentation to config example
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
1 parent 1b12a86 commit 9ed5c23

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

Source/NETworkManager/Views/SettingsUpdateView.xaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"
88
xmlns:viewModels="clr-namespace:NETworkManager.ViewModels"
99
xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters"
10+
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
1011
mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:SettingsUpdateViewModel}">
1112
<UserControl.Resources>
1213
<converters:BooleanReverseConverter x:Key="BooleanReverseConverter" />
@@ -30,10 +31,17 @@
3031
</Rectangle.Resources>
3132
</Rectangle>
3233
</StackPanel>
33-
<TextBlock Text="{x:Static localization:Strings.SettingManagedByAdministrator}"
34-
Foreground="Orange"
35-
Margin="0,0,0,10"
36-
Visibility="{Binding IsUpdateCheckManagedByPolicy, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" />
34+
<StackPanel Orientation="Horizontal" Margin="0,0,0,10"
35+
Visibility="{Binding IsUpdateCheckManagedByPolicy, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}">
36+
<Rectangle Width="16" Height="16" Fill="Orange" VerticalAlignment="Center" Margin="0,0,5,0">
37+
<Rectangle.OpacityMask>
38+
<VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ShieldLock}" />
39+
</Rectangle.OpacityMask>
40+
</Rectangle>
41+
<TextBlock Text="{x:Static localization:Strings.SettingManagedByAdministrator}"
42+
Foreground="Orange"
43+
VerticalAlignment="Center" />
44+
</StackPanel>
3745
<mah:ToggleSwitch Header="{x:Static localization:Strings.CheckForPreReleases}"
3846
IsOn="{Binding CheckForPreReleases}"
3947
Margin="0,0,0,20" />
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
{
22
"Update_DisableUpdateCheck": true
33
}
4+
5+
NOTE: This is an example configuration file for system-wide policies.
6+
To use it:
7+
1. Rename this file from config.json.example to config.json
8+
2. Adjust the settings as needed
9+
3. Place it in the same directory as NETworkManager.exe
10+
4. Restart NETworkManager
11+
12+
Setting "Update_DisableUpdateCheck" to true will disable the automatic update check
13+
at startup for all users on this machine. Users will see a message in the settings
14+
that this option is managed by the administrator.

0 commit comments

Comments
 (0)