diff --git a/src/modules/poweraccent/PowerAccent.UI/App.xaml b/src/modules/poweraccent/PowerAccent.UI/App.xaml
index aabf3459afec..e67322f3718a 100644
--- a/src/modules/poweraccent/PowerAccent.UI/App.xaml
+++ b/src/modules/poweraccent/PowerAccent.UI/App.xaml
@@ -2,16 +2,5 @@
x:Class="PowerAccent.UI.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
- StartupUri="Selector.xaml">
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ StartupUri="Selector.xaml"
+ ThemeMode="System" />
\ No newline at end of file
diff --git a/src/modules/poweraccent/PowerAccent.UI/PowerAccent.UI.csproj b/src/modules/poweraccent/PowerAccent.UI/PowerAccent.UI.csproj
index 30111fbdf7b0..4af77946bba8 100644
--- a/src/modules/poweraccent/PowerAccent.UI/PowerAccent.UI.csproj
+++ b/src/modules/poweraccent/PowerAccent.UI/PowerAccent.UI.csproj
@@ -24,10 +24,6 @@
-
-
-
-
diff --git a/src/modules/poweraccent/PowerAccent.UI/Selector.xaml b/src/modules/poweraccent/PowerAccent.UI/Selector.xaml
index 6345a89fbdc8..792f4141e946 100644
--- a/src/modules/poweraccent/PowerAccent.UI/Selector.xaml
+++ b/src/modules/poweraccent/PowerAccent.UI/Selector.xaml
@@ -1,24 +1,22 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/modules/poweraccent/PowerAccent.UI/Selector.xaml.cs b/src/modules/poweraccent/PowerAccent.UI/Selector.xaml.cs
index 7eed6a9a1b13..4467571367f0 100644
--- a/src/modules/poweraccent/PowerAccent.UI/Selector.xaml.cs
+++ b/src/modules/poweraccent/PowerAccent.UI/Selector.xaml.cs
@@ -6,14 +6,12 @@
using System.ComponentModel;
using System.Windows;
-using Wpf.Ui.Controls;
-
using Point = PowerAccent.Core.Point;
using Size = PowerAccent.Core.Size;
namespace PowerAccent.UI;
-public partial class Selector : FluentWindow, IDisposable, INotifyPropertyChanged
+public partial class Selector : Window, IDisposable, INotifyPropertyChanged
{
private readonly Core.PowerAccent _powerAccent = new();
@@ -41,8 +39,6 @@ public Selector()
{
InitializeComponent();
- Wpf.Ui.Appearance.SystemThemeWatcher.Watch(this);
-
Application.Current.MainWindow.ShowActivated = false;
}
@@ -92,7 +88,7 @@ private void MenuExit_Click(object sender, RoutedEventArgs e)
private void SetWindowPosition()
{
- Size windowSize = new(((System.Windows.Controls.Panel)Application.Current.MainWindow.Content).ActualWidth, ((System.Windows.Controls.Panel)Application.Current.MainWindow.Content).ActualHeight);
+ Size windowSize = new(((FrameworkElement)Application.Current.MainWindow.Content).ActualWidth, ((FrameworkElement)Application.Current.MainWindow.Content).ActualHeight);
Point position = _powerAccent.GetDisplayCoordinates(windowSize);
this.Left = position.X;
this.Top = position.Y;