Change comments to XML docs
This commit is contained in:
parent
b401425db0
commit
6c78193dae
2 changed files with 12 additions and 4 deletions
|
@ -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) =>
|
private ThemeVariant ConvertThemeVariant(PlatformThemeVariant platformThemeVariant) =>
|
||||||
platformThemeVariant switch
|
platformThemeVariant switch
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
private void OnPlatformColorValuesChanged(object sender, PlatformColorValues e)
|
||||||
{
|
{
|
||||||
if (Application.Current is App app)
|
if (Application.Current is App app)
|
||||||
|
@ -102,7 +104,9 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
base.OnClosed(e);
|
base.OnClosed(e);
|
||||||
if (PlatformSettings != null)
|
if (PlatformSettings != null)
|
||||||
{
|
{
|
||||||
// Unsubscribe to the ColorValuesChanged event
|
/// <summary>
|
||||||
|
/// Unsubscribe to the ColorValuesChanged event
|
||||||
|
/// </summary>
|
||||||
PlatformSettings.ColorValuesChanged -= OnPlatformColorValuesChanged;
|
PlatformSettings.ColorValuesChanged -= OnPlatformColorValuesChanged;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -390,7 +394,9 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
|
|
||||||
Initialize();
|
Initialize();
|
||||||
|
|
||||||
// Subscribe to the ColorValuesChanged event
|
/// <summary>
|
||||||
|
/// Subscribe to the ColorValuesChanged event
|
||||||
|
/// </summary>
|
||||||
PlatformSettings.ColorValuesChanged += OnPlatformColorValuesChanged;
|
PlatformSettings.ColorValuesChanged += OnPlatformColorValuesChanged;
|
||||||
|
|
||||||
ViewModel.Initialize(
|
ViewModel.Initialize(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue