feat: clean up warnings.
This commit is contained in:
@@ -3,8 +3,6 @@ using Avalonia.Controls;
|
||||
using Avalonia.Controls.Primitives;
|
||||
using Avalonia.LogicalTree;
|
||||
using Avalonia.Styling;
|
||||
using Ursa.Common;
|
||||
using System;
|
||||
|
||||
namespace Ursa.Controls;
|
||||
|
||||
@@ -61,7 +59,7 @@ public abstract class ThemeSelectorBase: TemplatedControl
|
||||
}
|
||||
}
|
||||
|
||||
private void OnScopeThemeChanged(object sender, System.EventArgs e)
|
||||
private void OnScopeThemeChanged(object? sender, System.EventArgs e)
|
||||
{
|
||||
_syncFromScope = true;
|
||||
if (this.TargetScope is { } target)
|
||||
@@ -149,7 +147,6 @@ public abstract class ThemeSelectorBase: TemplatedControl
|
||||
if (_application is not null)
|
||||
{
|
||||
_application.RequestedThemeVariant = newTheme;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,6 @@ using Avalonia.Controls.Primitives;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Styling;
|
||||
using Irihi.Avalonia.Shared.Helpers;
|
||||
using Ursa.Common;
|
||||
|
||||
namespace Ursa.Controls;
|
||||
|
||||
@@ -40,7 +39,7 @@ public class ThemeToggleButton: ThemeSelectorBase
|
||||
// ToggleButton.IsCheckedProperty.SetValue(_currentTheme == ThemeVariant.Light, _button);
|
||||
}
|
||||
|
||||
private void OnButtonClicked(object sender, RoutedEventArgs e)
|
||||
private void OnButtonClicked(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
bool? currentState = _state;
|
||||
if (IsThreeState)
|
||||
|
||||
Reference in New Issue
Block a user