Skip to content

Commit 5180ca0

Browse files
committed
Chore: Minor color adjustments
1 parent 247c4c5 commit 5180ca0

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

Source/NETworkManager.Settings/PolicyInfo.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ namespace NETworkManager.Settings;
77
/// This configuration is loaded from a config.json file in the application directory.
88
/// </summary>
99
public class PolicyInfo
10-
{
11-
/// <summary>
12-
/// Controls the "Check for updates at startup" setting for all users.
13-
/// When set, this value overrides the user's "Update_CheckForUpdatesAtStartup" setting.
14-
/// Set to true to enable update checks, false to disable them.
15-
/// </summary>
10+
{
1611
[JsonPropertyName("Update_CheckForUpdatesAtStartup")]
1712
public bool? Update_CheckForUpdatesAtStartup { get; set; }
1813
}

Source/NETworkManager.Settings/PolicyManager.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,14 @@ public static void Load()
6666
try
6767
{
6868
Log.Info($"Loading system-wide policies from: {filePath}");
69-
69+
7070
var jsonString = File.ReadAllText(filePath);
7171
Current = JsonSerializer.Deserialize<PolicyInfo>(jsonString, JsonOptions);
72-
72+
7373
Log.Info("System-wide policies loaded successfully.");
74-
74+
7575
// Log enabled settings
76-
if (Current.Update_CheckForUpdatesAtStartup.HasValue)
77-
{
78-
Log.Info($"System-wide policy - Update_CheckForUpdatesAtStartup: {Current.Update_CheckForUpdatesAtStartup.Value}");
79-
}
76+
Log.Info($"System-wide policy - Update_CheckForUpdatesAtStartup: {Current.Update_CheckForUpdatesAtStartup?.ToString() ?? "Not set"}");
8077
}
8178
catch (Exception ex)
8279
{

Source/NETworkManager/Views/SettingsUpdateView.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
</StackPanel>
3434
<StackPanel Orientation="Horizontal" Margin="0,0,0,10"
3535
Visibility="{Binding IsUpdateCheckManagedByPolicy, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}">
36-
<Rectangle Width="16" Height="16" Fill="Orange" VerticalAlignment="Center" Margin="0,0,5,0">
36+
<Rectangle Width="24" Height="24" Fill="{DynamicResource MahApps.Brushes.Accent}" VerticalAlignment="Center" Margin="0,0,5,0">
3737
<Rectangle.OpacityMask>
3838
<VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=ShieldLock}" />
3939
</Rectangle.OpacityMask>
4040
</Rectangle>
41-
<TextBlock Text="{x:Static localization:Strings.SettingManagedByAdministrator}"
42-
Foreground="Orange"
41+
<TextBlock Text="{x:Static localization:Strings.SettingManagedByAdministrator}"
42+
Style="{StaticResource AccentTextBlock}"
4343
VerticalAlignment="Center" />
4444
</StackPanel>
4545
<mah:ToggleSwitch Header="{x:Static localization:Strings.CheckForPreReleases}"

0 commit comments

Comments
 (0)