Change comments to XML docs

This commit is contained in:
yell0wsuit 2024-04-07 07:33:27 +07:00
parent b401425db0
commit 6c78193dae
No known key found for this signature in database
GPG key ID: 5B4F198A9800F6F4
2 changed files with 12 additions and 4 deletions

View file

@ -116,7 +116,9 @@ namespace Ryujinx.Ava
}
}
// Convert PlatformThemeVariant to the expected ThemeVariant type
/// <summary>
/// Converts a PlatformThemeVariant value to the corresponding ThemeVariant value.
/// </summary>
private ThemeVariant ConvertThemeVariant(PlatformThemeVariant platformThemeVariant) =>
platformThemeVariant switch
{

View file

@ -88,7 +88,9 @@ namespace Ryujinx.Ava.UI.Windows
}
}
// Event handler for detecting OS theme change when using "Follow OS theme" option
/// <summary>
/// Event handler for detecting OS theme change when using "Follow OS theme" option
/// </summary>
private void OnPlatformColorValuesChanged(object sender, PlatformColorValues e)
{
if (Application.Current is App app)
@ -102,7 +104,9 @@ namespace Ryujinx.Ava.UI.Windows
base.OnClosed(e);
if (PlatformSettings != null)
{
// Unsubscribe to the ColorValuesChanged event
/// <summary>
/// Unsubscribe to the ColorValuesChanged event
/// </summary>
PlatformSettings.ColorValuesChanged -= OnPlatformColorValuesChanged;
}
}
@ -390,7 +394,9 @@ namespace Ryujinx.Ava.UI.Windows
Initialize();
// Subscribe to the ColorValuesChanged event
/// <summary>
/// Subscribe to the ColorValuesChanged event
/// </summary>
PlatformSettings.ColorValuesChanged += OnPlatformColorValuesChanged;
ViewModel.Initialize(