Skip to content

Commit

Permalink
Removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
veler committed Aug 15, 2024
1 parent 3a3b9df commit 825b3e5
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ internal sealed class ThemeListener : IThemeListener
{
private readonly ISettingsProvider _settingsProvider;
private readonly Gtk.Settings _gtkSettings;
//private readonly StyleManager _adwStyleManager;

private Gtk.Window? _mainWindow;
private bool _ignoreOperatingSystemSettingChanged;
Expand All @@ -24,8 +23,6 @@ public ThemeListener(ISettingsProvider settingsProvider)
_settingsProvider = settingsProvider;
_settingsProvider.SettingChanged += SettingsProvider_SettingChanged;

//_adwStyleManager = StyleManager.GetDefault();

// Listen for operating system settings.
_gtkSettings = Gtk.Settings.GetDefault()!;
_gtkSettings.OnNotify += System_RequestedThemeChanged;
Expand Down Expand Up @@ -67,12 +64,10 @@ public void ApplyDesiredColorTheme()
if (theme == AvailableApplicationTheme.Dark)
{
ActualAppTheme = ApplicationTheme.Dark;
//_adwStyleManager.ColorScheme = ColorScheme.ForceDark;
}
else
{
ActualAppTheme = ApplicationTheme.Light;
//_adwStyleManager.ColorScheme = ColorScheme.ForceLight;
}

_ignoreOperatingSystemSettingChanged = false;
Expand Down

0 comments on commit 825b3e5

Please sign in to comment.